[syzbot] [kernel?] kernel panic: corrupted stack end in kernel_init

7 views
Skip to first unread message

syzbot

unread,
May 31, 2024, 8:41:33 PMMay 31
to linux-...@vger.kernel.org, lu...@kernel.org, pet...@infradead.org, syzkall...@googlegroups.com, tg...@linutronix.de
Hello,

syzbot found the following issue on:

HEAD commit: 7932b172ac7e Revert "riscv: mm: accelerate pagefault when ..
git tree: git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes
console output: https://syzkaller.appspot.com/x/log.txt?x=10d49ef2980000
kernel config: https://syzkaller.appspot.com/x/.config?x=71e27a66e3476b52
dashboard link: https://syzkaller.appspot.com/bug?extid=959d626e72881bce20fd
compiler: riscv64-linux-gnu-gcc (Debian 12.2.0-13) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40
userspace arch: riscv64

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image (non-bootable): https://storage.googleapis.com/syzbot-assets/a741b348759c/non_bootable_disk-7932b172.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/484dae64ac53/vmlinux-7932b172.xz
kernel image: https://storage.googleapis.com/syzbot-assets/0917f9215e08/Image-7932b172.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+959d62...@syzkaller.appspotmail.com

NET: Registered PF_SMC protocol family
9pnet: Installing 9P2000 support
Key type dns_resolver registered
Key type ceph registered
libceph: loaded (mon/osd proto 15/24)
NET: Registered PF_VSOCK protocol family
Timer migration: 1 hierarchy levels; 8 children per group; 1 crossnode level
registered taskstats version 1
Loading compiled-in X.509 certificates
Loaded X.509 cert 'Build time autogenerated kernel key: 68b23e9aa2c7f658111149b173edb408693104cb'
zswap: loaded using pool lzo/zsmalloc
Demotion targets for Node 0: null
debug_vm_pgtable: [debug_vm_pgtable ]: Validating architecture page table helpers
Key type .fscrypt registered
Key type fscrypt-provisioning registered
Key type big_key registered
Key type encrypted registered
AppArmor: AppArmor sha256 policy hashing enabled
ima: No TPM chip found, activating TPM-bypass!
Loading compiled-in module X.509 certificates
Loaded X.509 cert 'Build time autogenerated kernel key: 68b23e9aa2c7f658111149b173edb408693104cb'
ima: Allocated hash algorithm: sha256
ima: No architecture policies found
evm: Initialising EVM extended attributes:
evm: security.selinux (disabled)
evm: security.SMACK64 (disabled)
evm: security.SMACK64EXEC (disabled)
evm: security.SMACK64TRANSMUTE (disabled)
evm: security.SMACK64MMAP (disabled)
evm: security.apparmor
evm: security.ima
evm: security.capability
evm: HMAC attrs: 0x1
printk: legacy console [netcon0] enabled
netconsole: network logging started
gtp: GTP module loaded (pdp ctx size 128 bytes)
rdma_rxe: loaded
clk: Disabling unused clocks
PM: genpd: Disabling unused power domains
ALSA device list:
#0: Dummy 1
#1: Loopback 1
#2: Virtual MIDI Card 1
md: Skipping autodetection of RAID arrays. (raid=autodetect will force)
EXT4-fs (vda): mounted filesystem 34b94c48-234b-4869-b990-1f782e29954a ro with ordered data mode. Quota mode: none.
VFS: Mounted root (ext4 filesystem) readonly on device 253:0.
devtmpfs: mounted
Freeing unused kernel image (initmem) memory: 2500K
Failed to set sysctl parameter 'max_rcu_stall_to_panic=1': parameter not found
Run /sbin/init as init process
Kernel panic - not syncing: corrupted stack end detected inside scheduler
CPU: 1 PID: 1 Comm: init Not tainted 6.10.0-rc1-syzkaller-g7932b172ac7e #0
Hardware name: riscv-virtio,qemu (DT)
Call Trace:
[<ffffffff8000f6f8>] dump_backtrace+0x2e/0x3c arch/riscv/kernel/stacktrace.c:129
[<ffffffff85c29e64>] show_stack+0x34/0x40 arch/riscv/kernel/stacktrace.c:135
[<ffffffff85c83b52>] __dump_stack lib/dump_stack.c:88 [inline]
[<ffffffff85c83b52>] dump_stack_lvl+0x108/0x196 lib/dump_stack.c:114
[<ffffffff85c83bfc>] dump_stack+0x1c/0x24 lib/dump_stack.c:123
[<ffffffff85c2aa2a>] panic+0x382/0x800 kernel/panic.c:347
[<ffffffff85c92b00>] schedule_debug kernel/sched/core.c:5962 [inline]
[<ffffffff85c92b00>] __schedule+0x342e/0x3486 kernel/sched/core.c:6628
[<ffffffff85c93af8>] preempt_schedule_irq+0x7a/0x1a8 kernel/sched/core.c:7067
[<ffffffff85c872de>] raw_irqentry_exit_cond_resched kernel/entry/common.c:311 [inline]
[<ffffffff85c872de>] raw_irqentry_exit_cond_resched kernel/entry/common.c:303 [inline]
[<ffffffff85c872de>] irqentry_exit+0x138/0x17a kernel/entry/common.c:354
[<ffffffff85c85f76>] do_irq+0x34/0x4a arch/riscv/kernel/traps.c:390
[<ffffffff85ca872c>] ret_from_exception+0x0/0x64 arch/riscv/kernel/entry.S:112
[<ffffffff8041fac0>] arch_local_irq_restore arch/riscv/include/asm/irqflags.h:51 [inline]
[<ffffffff8041fac0>] acct_update_integrals+0x26e/0x3e0 kernel/tsacct.c:160
[<ffffffff809d9f1a>] bprm_execve fs/exec.c:1901 [inline]
[<ffffffff809d9f1a>] bprm_execve+0x143a/0x18f0 fs/exec.c:1867
[<ffffffff809dcf2a>] kernel_execve+0x364/0x450 fs/exec.c:2058
[<ffffffff85c28f14>] run_init_process+0x194/0x1a8 init/main.c:1388
[<ffffffff85c28f46>] try_to_run_init_process+0x1e/0x66 init/main.c:1395
[<ffffffff85c89940>] kernel_init+0x180/0x224 init/main.c:1523
[<ffffffff85ca8836>] ret_from_fork+0xe/0x1c arch/riscv/kernel/entry.S:232
SMP: stopping secondary CPUs
Rebooting in 86400 seconds..


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup
Reply all
Reply to author
Forward
0 new messages