Skip to content
Commit 14d8c9f3 authored by Thomas Gleixner's avatar Thomas Gleixner
Browse files

signal: Fix racy access to __task_cred in kill_pid_info_as_uid()



kill_pid_info_as_uid() accesses __task_cred() without being in a RCU
read side critical section. tasklist_lock is not protecting that when
CONFIG_TREE_PREEMPT_RCU=y.

Convert the whole tasklist_lock section to rcu and use
lock_task_sighand to prevent the exit race.

Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
LKML-Reference: <20091210004703.232302055@linutronix.de>
Acked-by: default avatarOleg Nesterov <oleg@redhat.com>
parent ea5b41f9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment