[PATCH 8/9] ptrace: Use siglock instead of tasklist_lock in ptrace_check_attach

Oleg Nesterov oleg at redhat.com
Wed Apr 27 08:20:18 PDT 2022


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.




More information about the linux-um mailing list