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

From: Oleg Nesterov
Date: Tue Jun 03 2014 - 16:04:37 EST


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.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/