]> www.infradead.org Git - users/jedix/linux-maple.git/commit
yama: don't abuse rcu_read_lock/get_task_struct in yama_task_prctl()
authorOleg Nesterov <oleg@redhat.com>
Wed, 19 Feb 2025 16:14:17 +0000 (17:14 +0100)
committerKees Cook <kees@kernel.org>
Sat, 8 Mar 2025 03:58:05 +0000 (19:58 -0800)
commit71c769231ff73289c8f988453987af60f1d04da3
tree3e49e63247ab50446f35cf48df04d40c2522382b
parenta3aac126ca3a71b6612a817ef24db325618fd902
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: Oleg Nesterov <oleg@redhat.com>
Link: https://lore.kernel.org/r/20250219161417.GA20851@redhat.com
Signed-off-by: Kees Cook <kees@kernel.org>
security/yama/yama_lsm.c