syzbot


kernel panic: stack is corrupted in __kmalloc

Status: fixed on 2023/02/24 13:50
Subsystems: sctp integrity lsm
[Documentation on labels]
Fix commit: b81d591386c3 riscv: Increase stack size under KASAN
First crash: 854d, last: 600d

Sample crash report:
Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in: __kmalloc+0x318/0x318 mm/slub.c:4427
CPU: 1 PID: 4841 Comm: syz-executor.0 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
[<ffffffff831a1392>] warn_bogus_irq_restore+0x0/0x34 kernel/panic.c:670
[<ffffffff8046fc4c>] kmem_cache_alloc_node_trace+0x0/0x2e2 mm/slub.c:4427
[<ffffffff803a9364>] __do_krealloc mm/slab_common.c:1184 [inline]
[<ffffffff803a9364>] krealloc+0x68/0xa6 mm/slab_common.c:1217
[<ffffffff80959dc2>] ima_collect_measurement+0x39c/0x422 security/integrity/ima/ima_api.c:260
[<ffffffff80954090>] process_measurement+0x60a/0x110c security/integrity/ima/ima_main.c:337
[<ffffffff80954c4a>] ima_file_check+0xb8/0xea security/integrity/ima/ima_main.c:516
[<ffffffff804ec8fa>] do_open fs/namei.c:3478 [inline]
[<ffffffff804ec8fa>] path_openat+0xf64/0x189e fs/namei.c:3609
[<ffffffff804efc60>] do_filp_open+0x10e/0x22a fs/namei.c:3636
[<ffffffff804c2a46>] do_sys_openat2+0x174/0x31e fs/open.c:1214
[<ffffffff804c3446>] do_sys_open fs/open.c:1230 [inline]
[<ffffffff804c3446>] __do_sys_openat fs/open.c:1246 [inline]
[<ffffffff804c3446>] sys_openat+0xdc/0x164 fs/open.c:1241
[<ffffffff80005716>] ret_from_syscall+0x0/0x2
SMP: stopping secondary CPUs
Rebooting in 86400 seconds..

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/19 09:02 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d bcdf85f8 .config console log report info ci-qemu2-riscv64 kernel panic: stack is corrupted in __kmalloc
2023/01/22 04:41 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 7374c4e5 .config console log report info ci-qemu2-riscv64 kernel panic: stack is corrupted in __kmalloc
2022/08/08 04:45 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 88e3a122 .config console log report info ci-qemu2-riscv64 kernel panic: stack is corrupted in __kmalloc
2022/06/10 15:37 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 0d5abf15 .config console log report info ci-qemu2-riscv64 kernel panic: stack is corrupted in __kmalloc
* Struck through repros no longer work on HEAD.