[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20110930140246.GA15556@redhat.com>
Date: Fri, 30 Sep 2011 16:02:46 +0200
From: Oleg Nesterov <oleg@...hat.com>
To: Stephen Wilson <wilsons@...rt.ca>
Cc: Al Viro <viro@...iv.linux.org.uk>,
Johannes Weiner <jweiner@...hat.com>,
linux-kernel@...r.kernel.org
Subject: Re: Q: proc: hold cred_guard_mutex in check_mem_permission()
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists