Re: [PATCH 8/9] ptrace: Use siglock instead of tasklist_lock in ptrace_check_attach
On 04/26, Eric W. Biederman wrote: > > + if (lock_task_sighand(child, &flags)) { > + if (child->ptrace && child->parent == current) { > + WARN_ON(READ_ONCE(child->__state) == __TASK_TRACED); > + /* > + * child->sighand can
[PATCH 8/9] ptrace: Use siglock instead of tasklist_lock in ptrace_check_attach
Now that siglock protects tsk->parent and tsk->ptrace there is no need to grab tasklist_lock in ptrace_check_attach. The siglock can handle all of the locking needs of ptrace_check_attach. Signed-off-by: "Eric W. Biederman" --- kernel/ptrace.c | 29 ++--- 1 file changed,