Function Report

Linux Kernel (v4.4)

Source File:arch\x86\kernel\step.c Create Date:2016-01-14 09:32:34
Last Modify:2016-01-11 07:01:32 Copyright©Brick
home page Tree
Annotate the kernelChinese

Function Name:user_disable_single_step

Function:void user_disable_single_step(struct task_struct *child)

Return Type:void

Parameter:

Type Parameter NameRemarks
struct task_struct * child

Function description:

225  If test_tsk_thread_flag(child, set when we want DEBUGCTLMSR_BTF) then set_task_blockstep(child, false)
229  clear_tsk_thread_flag(child, reenable singlestep on user return)
232  If test_and_clear_tsk_thread_flag(child, true if TF in eflags artificially) then TOP_OF_KERNEL_STACK_PADDING reserves 8 bytes on top of the ring0 stack-> per process flags, defined below &= ~X86_EFLAGS_TF
Caller
Function NameFunction description
handle_signal
ptrace_disableCalled by kernel/ptrace.c when detaching..
copy_processCreate a new process
ptrace_resume