From: Stephen Rothwell <sfr@canb•auug.org.au>
To: Linux Kernel Mailing List <linux-kernel@vger•kernel.org>
Cc: Linux Next Mailing List <linux-next@vger•kernel.org>,
Christoph Hellwig <hch@lst•de>, Al Viro <viro@zeniv•linux.org.uk>
Subject: linux-next: panic on boot
Date: Mon, 3 Aug 2020 21:44:33 +1000 [thread overview]
Message-ID: <20200803214433.4c1b08cb@canb.auug.org.au> (raw)
[-- Attachment #1: Type: text/plain, Size: 2057 bytes --]
Hi all,
As part of my testing of linux-next, I do a qemu boot of a powerpc
pseries_le_defconfig build. Today it paniced after reaching user mode
(but before the console login prompt):
[ 2.286787][ T1] Run /init as init process
[ 2.557885][ T50] mount (50) used greatest stack depth: 10880 bytes left
[ 2.574629][ T1] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000200
[ 2.575079][ T1] CPU: 0 PID: 1 Comm: init Not tainted 5.8.0 #2
[ 2.575421][ T1] Call Trace:
[ 2.576197][ T1] [c00000007e3a3b90] [c0000000006f5de0] dump_stack+0xc4/0x114 (unreliable)
[ 2.576450][ T1] [c00000007e3a3be0] [c000000000122318] panic+0x16c/0x404
[ 2.576540][ T1] [c00000007e3a3c80] [c00000000012a690] do_exit+0xc70/0xd10
[ 2.576613][ T1] [c00000007e3a3d60] [c00000000012a804] do_group_exit+0x64/0x110
[ 2.576812][ T1] [c00000007e3a3da0] [c00000000012a8d4] sys_exit_group+0x24/0x30
[ 2.576891][ T1] [c00000007e3a3dc0] [c000000000032cbc] system_call_exception+0x14c/0x230
[ 2.576969][ T1] [c00000007e3a3e20] [c00000000000d740] system_call_common+0xf0/0x27c
This boot is of a simple initramfs whose only purpose is to shutdown.
/init is a shell script:
#!/bin/sh
# devtmpfs does not get automounted for initramfs
/bin/mount -t devtmpfs devtmpfs /dev
exec 0</dev/console
exec 1>/dev/console
exec 2>/dev/console
exec /sbin/init $*
/sbin/init is busybox and this is the /etc/inittab
::sysinit:/bin/mount -t proc proc /proc
::sysinit:/bin/mount -o remount,rw /
::sysinit:/bin/mkdir -p /dev/pts
::sysinit:/bin/mkdir -p /dev/shm
::sysinit:/bin/mount -a
::sysinit:/bin/hostname -F /etc/hostname
::sysinit:/etc/init.d/rcS
console::respawn:/sbin/getty -L console 0 vt100 # GENERIC_SERIAL
::shutdown:/etc/init.d/rcK
::shutdown:/sbin/swapoff -a
::shutdown:/bin/umount -a -r
and there are no init scripts.
Chritoph and Al are cc'd since we have some init stuff rewrite in the
vfs tree for the first time today.
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
reply other threads:[~2020-08-03 11:45 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200803214433.4c1b08cb@canb.auug.org.au \
--to=sfr@canb$(echo .)auug.org.au \
--cc=hch@lst$(echo .)de \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=linux-next@vger$(echo .)kernel.org \
--cc=viro@zeniv$(echo .)linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox