Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\ptrace.c Create Date:2022-07-28 09:13:09
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Ensure that nothing can wake it up, even SIGKILL

Proto:static bool ptrace_freeze_traced(struct task_struct *task)

Type:bool

Parameter:

TypeParameterName
struct task_struct *task
175  bool ret = false
178  If siglock protected & JOBCTL_LISTENING Then Return ret
181  spin_lock_irq( & siglock)
182  If task_is_traced(task) && Not __fatal_signal_pending(task) Then
183  run state = __TASK_TRACED
184  ret = true
186  spin_unlock_irq( & siglock)
188  Return ret
Caller
NameDescribe
ptrace_check_attachptrace_check_attach - check whether ptracee is ready for ptrace operation*@child: ptracee to check for*@ignore_state: don't check whether @child is currently %TASK_TRACED* Check whether @child is being ptraced by %current and ready for further