[lkml]   [2010]   [Mar]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] wait_for_helper: SIGCHLD from user-space can lead to use-after-free
> Yes. kthreads run with all signal ignored, this is inherited from
> kthreadd() which does ignore_signal().


> I don't think this can work. SIG_DFL for SIGCHLD is OK because it is
> sig_kernel_ignore(). But, say, SIGHUP and other signals still should
> be ignored, otherwise we have the same problems with the unwanted
> signal_pending() this patch tries to avoid.

Yes, I see.

> But even if we could do this,
> > That should make it redundant in ____call_usermodehelper,
> > so it could be removed from there.
> Please note that __call_usermodehelper() forks ____call_usermodehelper() too.



 \ /
  Last update: 2010-03-10 22:31    [W:0.027 / U:3.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site