Kernel panic - not syncing: corrupted stack end detected inside scheduler

From: Qian Cai
Date: Tue Nov 13 2018 - 16:29:31 EST


Running a runc testsuite [1] on an aarch64 server with the latest mainline (rc2)
triggered this,

[1] https://fedorapeople.org/cgit/caiqian/public_git/runctst.git/tree/runctst.py

=============

# python runctst.py
...
- start: runc ocf poststart
load container root: container "root" does not exist
container_linux.go:364: running poststart hook 0 caused "error running hook:
exit status 1, stdout: , stderr: "
- error: unexpected zero-size output.
- start: runc ocf mount dev
- pass: runc ocf mount dev
- start: runc ocf network
- pass: runc ocf network
- start: runc ocf args systemd
- error: unexpected dbus output is USERÂÂÂÂÂÂÂÂPID %CPU %MEMÂÂÂÂVSZÂÂÂRSS
TTYÂÂÂÂÂÂSTAT STARTÂÂÂTIME COMMAND
rootÂÂÂÂÂÂÂÂÂÂ1 68.6ÂÂ0.0ÂÂÂ8832ÂÂ7424 ?ÂÂÂÂÂÂÂÂRsÂÂÂ19:29ÂÂÂ0:03 /usr/sbin/init
rootÂÂÂÂÂÂÂÂÂ18 24.0ÂÂ0.0ÂÂ14848ÂÂ8704 ?ÂÂÂÂÂÂÂÂSsÂÂÂ19:29ÂÂÂ0:00
/usr/lib/systemd/systemd-journald
rootÂÂÂÂÂÂÂÂÂ22ÂÂ0.0ÂÂ0.0ÂÂÂ9728ÂÂ6592 ?ÂÂÂÂÂÂÂÂRsÂÂÂ19:29ÂÂÂ0:00 ps aux

==============

[ 2231.649459] Kernel panic - not syncing: corrupted stack end detected inside
scheduler
[ 2231.657307] CPU: 185 PID: 11718 Comm: dbus-daemon Kdump: loaded Tainted:
GÂÂÂÂÂÂÂÂWÂÂÂÂÂÂÂÂÂ4.20.0-rc2+ #4
[ 2231.666961] Hardware name: HPE Apollo 70ÂÂÂÂÂÂÂÂÂÂÂÂÂ/C01_APACHE_MBÂÂÂÂÂÂÂÂÂ,
BIOS L50_5.13_1.0.6 07/10/2018
[ 2231.676788] Call trace:
[ 2231.679273]ÂÂdump_backtrace+0x0/0x2c8
[ 2231.682950]ÂÂshow_stack+0x24/0x30
[ 2231.686273]ÂÂdump_stack+0x118/0x19c
[ 2231.689765]ÂÂpanic+0x1b8/0x31c
[ 2231.692822]ÂÂschedule+0x0/0x240
[ 2231.695963]ÂÂpreempt_schedule_common+0x3c/0x78
[ 2231.700406]ÂÂ_cond_resched+0xfc/0x108
[ 2231.704077]ÂÂkmem_cache_alloc+0x2e0/0x3f8
[ 2231.708102]ÂÂselinux_inode_alloc_security+0xc4/0x1b0
[ 2231.713080]ÂÂsecurity_inode_alloc+0x44/0x70
[ 2231.717267]ÂÂinode_init_always+0x270/0x4b8
[ 2231.721364]ÂÂalloc_inode+0x50/0xd0
[ 2231.724768]ÂÂnew_inode_pseudo+0x84/0x120
[ 2231.728691]ÂÂsock_alloc+0x30/0x108
[ 2231.732093]ÂÂ__sock_create+0x154/0x560
[ 2231.735843]ÂÂ__sys_socket+0xc8/0x178
[ 2231.739429]ÂÂ__arm64_sys_socket+0x4c/0x60
[ 2231.743460]ÂÂel0_svc_handler+0xd4/0x198
[ 2231.747295]ÂÂel0_svc+0x8/0xc
[ 2231.750777] SMP: stopping secondary CPUs
[ 2231.757333] Starting crashdump kernel...
[ 2231.761260] Bye!