[lkml]   [2009]   [Jul]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] selinux_bprm_committed_creds: use __wake_up_parent()
On 07/03, Andrew Morton wrote:
> On Fri, 3 Jul 2009 11:23:11 +0200 Oleg Nesterov <> wrote:
> > (depends on ptrace-__ptrace_detach-do-__wake_up_parent-if-we-reap-the-tracee.patch
> > which exports __wake_up_parent)
> >
> > Spotted by
> >
> > selinux_bprm_committed_creds() should not play with ->wait_chldexit, now
> > that __wake_up_parent() is exported change the code to use this helper.
> That's a bit vague. Why shouldn't it play with wait_chldexit? What
> changed to make that wrong?

The code was correct (btw, sorry if my message looked as if it is not).

But we should not play with "internal" structures outside of signal/exit
code. So this change is imho good regardless, __wake_up_parent() should
be used to notify threads sleeping in do_wait().

However, __wake_up_parent() was not exported, that is why _committed_creds()
does wake_up by hand.

> Is this a -mm fix? If so, which -mm patch introduced the problem?

Yes, my fault.


assumes that __wake_up_parent() should be always used.


 \ /
  Last update: 2009-07-04 10:21    [W:0.085 / U:13.556 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site