Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace_uprobe.c Create Date:2022-07-28 12:43:50
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:get_user_stack_nth

Proto:static unsigned long get_user_stack_nth(struct pt_regs *regs, unsigned int n)

Type:unsigned long

Parameter:

TypeParameterName
struct pt_regs *regs
unsigned intn
117  addr = user_stack_pointer(regs)
119  addr = adjust_stack_addr(addr, n)
121  If copy_from_user( & ret, (void__force__user * )addr, size of ret ) Then Return 0
124  Return ret
Caller
NameDescribe
process_fetch_insnNote that we don't verify it, since the code does not come from user space