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:46
Last Modify:2022-05-22 06:23:02 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:sys_rt_sigreturn

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

Type:long

Parameter:Nothing

642  regs = current_pt_regs()
643  __user * frame
647  frame * __user = sp - sizeof(long)
648  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
650  If __copy_from_user( & set, & mask last for extensibility , size of set ) Then Go to badframe
652  If Get a simple variable from user space, with less checking(uc_flags, & uc_flags) Then Go to badframe
655  set_current_blocked( & set)
657  If restore_sigcontext(regs, & uc_mcontext, uc_flags) Then Go to badframe
660  If restore_altstack( & uc_stack) Then Go to badframe
663  Return ax
665  badframe :
666  signal_fault(regs, frame, "rt_sigreturn")
667  Return 0