• Olivier Brunel's avatar
    umh: Add command line to user mode helpers · 876dcf2f
    Olivier Brunel authored
    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: 449325b5 ("umh: introduce fork_usermode_blob() helper")
    Signed-off-by: default avatarOlivier Brunel <jjk@jjacky.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    876dcf2f
umh.c 18.4 KB