summaryrefslogtreecommitdiffstats
path: root/drivers/base
diff options
context:
space:
mode:
authorOleg Nesterov2015-10-22 22:32:08 +0200
committerLinus Torvalds2015-10-23 10:55:10 +0200
commit5211613978cb7353a3237e4372958c0e7514683f (patch)
tree01fae404b1b576e032245ef68ee50f0a92ea8090 /drivers/base
parentMerge tag 'for-linus-20151021' of git://git.infradead.org/intel-iommu (diff)
downloadkernel-qcow2-linux-5211613978cb7353a3237e4372958c0e7514683f.tar.gz
kernel-qcow2-linux-5211613978cb7353a3237e4372958c0e7514683f.tar.xz
kernel-qcow2-linux-5211613978cb7353a3237e4372958c0e7514683f.zip
kmod: don't run async usermode helper as a child of kworker thread
call_usermodehelper_exec_sync() does fork() + wait() with "unignored" SIGCHLD. What we have missed is that this worker thread can have other children previously forked by call_usermodehelper_exec_work() without UMH_WAIT_PROC. If such a child exits in between it becomes a zombie because auto-reaping only works if SIGCHLD is ignored, and nobody can reap it (unless/until this worker thread exits too). Change the !UMH_WAIT_PROC case to use CLONE_PARENT. Note: this is only first step. All PF_KTHREAD tasks, even created by kernel_thread() should have ->parent == kthreadd by default. Fixes: bb304a5c6fc63d8506c ("kmod: handle UMH_WAIT_PROC from system unbound workqueue") Signed-off-by: Oleg Nesterov <oleg@redhat.com> Acked-by: Frederic Weisbecker <fweisbec@gmail.com> Cc: Rik van Riel <riel@redhat.com> Cc: Christoph Lameter <cl@linux.com> Cc: Tejun Heo <tj@kernel.org> Cc: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/base')
0 files changed, 0 insertions, 0 deletions