[PATCH] init: Add handshake to poweroff/reboot for signal handler setup

Denys Vlasenko vda.linux at googlemail.com
Wed Feb 14 15:31:46 UTC 2018


On Wed, Feb 14, 2018 at 2:49 PM, Deb McLemore <debmc at linux.vnet.ibm.com> wrote:
> When PID=0 in early kernel_init, PID=1 has a skeleton running, this detection is not
>
> the Busybox /sbin/init, but a place holder for when the real Busybox /sbin/init is do_execve'd
>
> and then the kernel flushes all the old process table information on the place holder of PID=1,
>
> then the real Busybox /sbin/init starts its life all fresh from the do_execve, no state remains.

I would like to reproduce it. I use a tiny qemu environment for my tests,
see attached. Can you modify it so that a process is started before init?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testing_in_qemu.tar.gz
Type: application/x-gzip
Size: 1304 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20180214/bb6214c5/attachment.bin>


More information about the busybox mailing list