Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\uprobes.c Create Date:2022-07-28 08:47:33
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:emulate_push_stack

Proto:static int emulate_push_stack(struct pt_regs *regs, unsigned long val)

Type:int

Parameter:

TypeParameterName
struct pt_regs *regs
unsigned longval
527  new_sp = sp - sizeof_long(regs)
529  If copy_to_user((void__user * )new_sp, & val, sizeof_long(regs)) Then Return -EFAULT
532  sp = new_sp
533  Return 0
Caller
NameDescribe
default_post_xol_opWe have to fix things up as follows:* Typically, the new ip is relative to the copied instruction
branch_emulate_op
push_emulate_op