OSDN Git Service

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)
commit876dcf2f3aaa0f68d437b368b93a4c4b81521191
tree839b76ae222a0ecd942d4af9a6099336b366d549
parentc94f026fb742b2d3199422751dbc4f6fc0e753d8
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: 449325b52b7a ("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