Re: Q: proc: hold cred_guard_mutex in check_mem_permission()
From: Oleg Nesterov
Date: Fri Sep 30 2011 - 10:06:28 EST
On 09/29, Stephen Wilson wrote:
>
> On Thu, Sep 29, 2011 at 01:48:27PM +0200, Oleg Nesterov wrote:
>
> > So I think we should simply remove ->cred_guard_mutex.
>
> Yes, I think that is right,
Great,
> together with removing the
> ptrace_may_access() check
Agreed, but this needs a separate patch.
Plus rcu_read_lock + ptrace_parent() should die, we simply need
task->ptrace && task->parent == current
And task_is_stopped_or_traced() should be task_is_traced(), starting
from 3.0 TASK_STOPPED && ptrace is not possible.
I'll send the patches tomorrow.
Thanks,
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/