Re: [patch 3/9] proc: Add missing rcu protection for __task_cred() in task_sig()

David Howells
2009-12-11T13:47:23Z

Thomas Gleixner <tglx@linutronix.de> wrote:

> task_sig() accesses __task_cred() without being in a RCU read side
> critical section. tasklist_lock is not protecting that when
> CONFIG_TREE_PREEMPT_RCU=y.
>
> Add a rcu_read_lock/unlock() section around the code which accesses
> __task_cred().
>
> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

Acked-by: David Howells <dhowells@redhat.com>