Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\signal.c Create Date:2022-07-28 07:30:45
Last Modify:2022-05-22 06:23:02 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:sys_sigreturn

Proto:__attribute__((regparm(0))) long sys_sigreturn(void)

Type:long

Parameter:Nothing

610  regs = current_pt_regs()
611  __user * frame
614  frame * __user = sp - 8
616  If Not access_ok - Checks if a user space pointer is valid*@addr: User space pointer to start of block to check*@size: Size of block to check* Context: User context only. This function may sleep if pagefaults are* enabled.(frame, size of frame ) Then Go to badframe
618  If Get a simple variable from user space, with less checking(sig[0], & oldmask) || _NSIG_WORDS > 1 && __copy_from_user( & sig[1], & extramask, size of extramask ) Then Go to badframe
623  set_current_blocked( & set)
629  If restore_sigcontext(regs, & sc, 0) Then Go to badframe
631  Return ax
633  badframe :
634  signal_fault(regs, frame, "sigreturn")
636  Return 0