Deadlock in init

Denys Vlasenko vda.linux at googlemail.com
Fri Nov 21 19:12:48 UTC 2014


On Fri, Nov 21, 2014 at 12:37 AM, Seth Bollinger <seth.boll at gmail.com> wrote:
> Hello All,
>
> We recently ran into a deadlock in init.  The window is small, but I figured
> I would post to the list anyway.
>
> There are syslog messages in the signal handler for reboot and shutdown.
> Internally this function grabs a lock.  If the main loop is trying to grab
> this lock at exactly the same time (also posting a syslog message), then a
> deadlock is possible.

You are right. Init code was careless inside signal handlers.

Fixed in git (hopefully), thanks!


More information about the busybox mailing list