Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\rseq.c Create Date:2022-07-28 13:50:52
Last Modify:2022-05-20 08:09:32 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:This resume handler must always be executed between any of:* - preemption,* - signal delivery,* and return to user-space

Proto:void __rseq_handle_notify_resume(struct ksignal *ksig, struct pt_regs *regs)

Type:void

Parameter:

TypeParameterName
struct ksignal *ksig
struct pt_regs *regs
264  t = current process
267  If Value for the false possibility is greater at compile time( Per task flags (PF_*), defined further below: & Getting shut down ) Then Return
269  If Value for the false possibility is greater at compile time(!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.(rseq, size of rseq )) Then Go to error
271  ret = rseq_ip_fixup(regs)
272  If Value for the false possibility is greater at compile time(ret < 0) Then Go to error
274  If Value for the false possibility is greater at compile time(Restartable sequences are a lightweight interface that allows* user-level code to be executed atomically relative to scheduler* preemption and signal delivery) Then Go to error
276  Return
278  error :
279  sig = If ksig Then sig Else 0
280  When things go south during signal handling, we* will force a SIGSEGV. And if the signal that caused* the problem was already a SIGSEGV, we'll want to* make sure we don't even try to deliver the signal..