syzbot


kernel panic: corrupted stack end in lo_ioctl

Status: internal: reported on 2022/10/19 09:22
Reported-by: syzbot+@syzkaller.appspotmail.com
Fix commit: b81d591386c3 riscv: Increase stack size under KASAN
Patched on: [ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-arm64 ci-upstream-gce-leak ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce ci-upstream-kmsan-gce-386 ci-upstream-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce ci2-upstream-usb], missing on: [ci-qemu2-riscv64]
First crash: 102d, last: 60d

Sample crash report:
Kernel panic - not syncing: corrupted stack end detected inside scheduler
CPU: 0 PID: 3289 Comm: syz-executor.1 Not tainted 5.17.0-rc1-syzkaller-00002-g0966d385830d #0
Hardware name: riscv-virtio,qemu (DT)
Call Trace:
[<ffffffff8000a228>] dump_backtrace+0x2e/0x3c arch/riscv/kernel/stacktrace.c:113
[<ffffffff831668cc>] show_stack+0x34/0x40 arch/riscv/kernel/stacktrace.c:119
[<ffffffff831756ba>] __dump_stack lib/dump_stack.c:88 [inline]
[<ffffffff831756ba>] dump_stack_lvl+0xe4/0x150 lib/dump_stack.c:106
[<ffffffff83175742>] dump_stack+0x1c/0x24 lib/dump_stack.c:113
[<ffffffff83166fa8>] panic+0x24a/0x634 kernel/panic.c:233
[<ffffffff831a688a>] schedule_debug kernel/sched/core.c:5541 [inline]
[<ffffffff831a688a>] schedule+0x0/0x14c kernel/sched/core.c:6187
[<ffffffff831a6b00>] preempt_schedule_common+0x4e/0xde kernel/sched/core.c:6462
[<ffffffff831a6bc4>] preempt_schedule+0x34/0x36 kernel/sched/core.c:6487
[<ffffffff831afd78>] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline]
[<ffffffff831afd78>] _raw_spin_unlock_irqrestore+0x8c/0x98 kernel/locking/spinlock.c:194
[<ffffffff800f78dc>] spin_unlock_irqrestore include/linux/spinlock.h:404 [inline]
[<ffffffff800f78dc>] __wake_up_common_lock+0xe4/0x136 kernel/sched/wait.c:140
[<ffffffff800f793e>] __wake_up+0x10/0x18 kernel/sched/wait.c:157
[<ffffffff8008aae6>] helper_unlock kernel/umh.c:332 [inline]
[<ffffffff8008aae6>] call_usermodehelper_exec+0x32a/0x372 kernel/umh.c:456
[<ffffffff80c1e810>] kobject_uevent_env+0xa3e/0xdfe lib/kobject_uevent.c:618
[<ffffffff80a60996>] disk_event_uevent+0x18c/0x19a block/disk-events.c:181
[<ffffffff80a60b2c>] disk_force_media_change+0x20/0xac block/disk-events.c:305
[<ffffffff8143db1e>] loop_configure+0x56e/0xee8 drivers/block/loop.c:1018
[<ffffffff814420c2>] lo_ioctl+0x236/0x100c drivers/block/loop.c:1545
[<ffffffff80a50ba4>] blkdev_ioctl+0x392/0x1526 block/ioctl.c:588
[<ffffffff804f6ff8>] vfs_ioctl fs/ioctl.c:51 [inline]
[<ffffffff804f6ff8>] __do_sys_ioctl fs/ioctl.c:874 [inline]
[<ffffffff804f6ff8>] sys_ioctl+0x75c/0x139e fs/ioctl.c:860
[<ffffffff80005716>] ret_from_syscall+0x0/0x2
SMP: stopping secondary CPUs
Rebooting in 86400 seconds..

Crashes (2):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-qemu2-riscv64 2022/11/30 12:48 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 4c2a66e8 .config console log report info kernel panic: corrupted stack end in lo_ioctl
ci-qemu2-riscv64 2022/10/19 09:21 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d b31320fc .config console log report info kernel panic: corrupted stack end in lo_ioctl
* Struck through repros no longer work on HEAD.