From: Kay Sievers Date: Thu, 14 Jan 2010 21:49:39 +0000 (+0100) Subject: Driver-Core: disable /sbin/hotplug by default X-Git-Tag: v2.6.34-rc1~1^2~41 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7934779a69f1184f29d786b89e77dd14519bd226;p=platform%2Fkernel%2Flinux-stable.git Driver-Core: disable /sbin/hotplug by default No recent mainstream system uses the /sbin/hotplug fork-bomb any more. Disable it by default to reflect how it is used these days. Signed-off-by: Kay Sievers Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/base/Kconfig b/drivers/base/Kconfig index 8021e19..fd52c48 100644 --- a/drivers/base/Kconfig +++ b/drivers/base/Kconfig @@ -3,10 +3,18 @@ menu "Generic Driver Options" config UEVENT_HELPER_PATH string "path to uevent helper" depends on HOTPLUG - default "/sbin/hotplug" + default "" help Path to uevent helper program forked by the kernel for every uevent. + Before the switch to the netlink-based uevent source, this was + used to hook hotplug scripts into kernel device events. It + usually pointed to a shell script at /sbin/hotplug. + This should not be used today, because usual systems create + many events at bootup or device discovery in a very short time + frame. One forked process per event can create so many processes + that it creates a high system load, or on smaller systems + it is known to create out-of-memory situations during bootup. config DEVTMPFS bool "Maintain a devtmpfs filesystem to mount at /dev"