Re: [BUG] signal: sighand unprotected when accessed by /proc

Oleg Nesterov
2014-06-03T20:04:33Z

Damn, sorry for noise...

On 06/03, Oleg Nesterov wrote:
>
> I'll try to recheck rt_mutex_unlock() tomorrow. _Perhaps_ rcu_read_unlock()
> should be shifted from lock_task_sighand() to unlock_task_sighand() to
> ensure that rt_mutex_unlock() does nothihg with this memory after it
> makes another lock/unlock possible.

I meant, we need to ensure it does nothing with this memory, otherwise we
need to delay rcu_read_unlock() till unlock_task_sighand().

Oleg.