Re: [PATCH] reboot: disable usermodehelper to prevent fs access

From: Greg KH
Date: Thu May 05 2011 - 16:28:20 EST


On Thu, May 05, 2011 at 01:32:05PM +0200, Kay Sievers wrote:
> From: Kay Sievers <kay.sievers@xxxxxxxx>
> Subject: [PATCH] reboot: disable usermodehelper to prevent fs access
>
> In case CONFIG_UEVENT_HELPER_PATH is not set to "", which it
> should be on every system, the kernel forks processes during
> shutdown, which try to access the rootfs, even when the
> binary does not exist. It causes exceptions and long delays in
> the disk driver, which gets read requests at the time it tries
> to shut down the disk.
>
> This patch disables all kernel-forked processes during reboot to
> allow a clean poweroff.

Should this also be backported to the -stable kernels as people are
hitting this problem already today, right?

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/