Commit 71c76923 authored by Oleg Nesterov's avatar Oleg Nesterov Committed by Kees Cook
Browse files

yama: don't abuse rcu_read_lock/get_task_struct in yama_task_prctl()



current->group_leader is stable, no need to take rcu_read_lock() and do
get/put_task_struct().

Signed-off-by: default avatarOleg Nesterov <oleg@redhat.com>
Link: https://lore.kernel.org/r/20250219161417.GA20851@redhat.com


Signed-off-by: default avatarKees Cook <kees@kernel.org>
parent a3aac126
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment