函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\signal.c Create Date:2022-07-27 08:30:02
Last Modify:2022-05-22 06:23:02 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:sys_sigreturn

函数原型:__attribute__((regparm(0))) long sys_sigreturn(void)

返回类型:long

参数:

610  regs等于current_pt_regs()
611  __userframe
614  frame__user等于sp减8
616  如果非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, frame的长度)则转到:badframe
618  如果__get_user - Get a simple variable from user space, with less checking(信号[0], & oldmask)或_NSIG_WORDS大于1且__copy_from_user( & 信号[1], & extramask, extramask的长度)则转到:badframe
623  set_current_blocked( & set)
629  如果restore_sigcontext(regs, & sc, 0)则转到:badframe
631  返回:ax
633  badframe :
634  signal_fault(regs, frame, "sigreturn")
636  返回:0