Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Boot up with usermodehelper disabled
The core device layer sends tons of uevent notifications for each device it finds, and if the kernel has been built with a non-empty CONFIG_UEVENT_HELPER_PATH that will make us try to execute the usermode helper binary for all these events very early in the boot. Not only won't the root filesystem even be mounted at that point, we literally won't have necessarily even initialized all the process handling data structures at that point, which causes no end of silly problems even when the usermode helper doesn't actually succeed in executing. So just use our existing infrastructure to disable the usermodehelpers to make the kernel start out with them disabled. We enable them when we've at least initialized stuff a bit. Problems related to an uninitialized init_ipc_ns.ids[IPC_SHM_IDS].rw_mutex reported by various people. Reported-by: Manuel Lauss <[email protected]> Reported-by: Richard Weinberger <[email protected]> Reported-by: Marc Zyngier <[email protected]> Acked-by: Kay Sievers <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Vasiliy Kulikov <[email protected]> Cc: Greg KH <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information