]> git.baikalelectronics.ru Git - kernel.git/commit
umh: Add command line to user mode helpers
authorOlivier Brunel <jjk@jjacky.com>
Sat, 20 Oct 2018 17:39:56 +0000 (19:39 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Oct 2018 02:37:36 +0000 (19:37 -0700)
commit88d8790c7dc5b45fe9b71cdf3af2fa16dfd381a2
tree839b76ae222a0ecd942d4af9a6099336b366d549
parentbb898bac8e749290d99dc8edeccdba68acd21544
umh: Add command line to user mode helpers

User mode helpers were spawned without a command line, and because
an empty command line is used by many tools to identify processes as
kernel threads, this could cause some issues.

Notably during killing spree on shutdown, since such helper would then
be skipped (i.e. not killed) which would result in the process remaining
alive, and thus preventing unmouting of the rootfs (as experienced with
the bpfilter umh).

Fixes: 13d1457c0287 ("umh: introduce fork_usermode_blob() helper")
Signed-off-by: Olivier Brunel <jjk@jjacky.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/umh.h
kernel/umh.c