lkml.org 
[lkml]   [2022]   [Apr]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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't be NULL, release_task()
> + * does ptrace_unlink() before __exit_signal().
> + */
> + if (ignore_state || ptrace_freeze_traced(child))
> + ret = 0;

The comment above is no longer relevant, it should be removed.

Oleg.

\
 
 \ /
  Last update: 2022-04-27 17:20    [W:0.905 / U:0.264 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site