syzbot


riscv/fixes boot error: BUG: soft lockup in corrupted

Status: upstream: reported on 2022/06/02 10:02
Reported-by: syzbot+1d1952c211a38ac43f10@syzkaller.appspotmail.com
First crash: 114d, last: 15d

Sample crash report:
watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [swapper/0:0]
Modules linked in:
irq event stamp: 126061
hardirqs last  enabled at (126060): [<ffffffff80010298>] __trace_hardirqs_on+0x18/0x20 arch/riscv/kernel/trace_irq.c:19
hardirqs last disabled at (126061): [<ffffffff800102b8>] __trace_hardirqs_off+0x18/0x20 arch/riscv/kernel/trace_irq.c:25
softirqs last  enabled at (121404): [<ffffffff832c6e56>] softirq_handle_end kernel/softirq.c:414 [inline]
softirqs last  enabled at (121404): [<ffffffff832c6e56>] __do_softirq+0x61e/0x906 kernel/softirq.c:600
softirqs last disabled at (121417): [<ffffffff8006825a>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
softirqs last disabled at (121417): [<ffffffff8006825a>] invoke_softirq kernel/softirq.c:452 [inline]
softirqs last disabled at (121417): [<ffffffff8006825a>] __irq_exit_rcu+0x154/0x1ea kernel/softirq.c:650
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 6.0.0-rc1-syzkaller-00004-g20e0fbab1600 #0
Hardware name: riscv-virtio,qemu (DT)
epc : arch_static_branch arch/riscv/include/asm/jump_label.h:20 [inline]
epc : kfence_alloc include/linux/kfence.h:120 [inline]
epc : slab_alloc_node mm/slub.c:3161 [inline]
epc : __kmalloc_node_track_caller+0xae/0x35c mm/slub.c:4955
 ra : slab_pre_alloc_hook mm/slab.h:702 [inline]
 ra : slab_alloc_node mm/slub.c:3157 [inline]
 ra : __kmalloc_node_track_caller+0x74/0x35c mm/slub.c:4955
epc : ffffffff804ae04e ra : ffffffff804ae014 sp : ffffffff84c07650
 gp : ffffffff85a97360 tp : ffffffff84c44480 t0 : ff6000005a282ff0
 t1 : 00000000000f0000 t2 : ffffffff81ac19aa s0 : ffffffff84c076f0
 s1 : ff60000007e01c80 a0 : 0000000000000000 a1 : 0000000000000007
 a2 : 1ffffffff09c9ce0 a3 : ffffffff80c47468 a4 : 0000000000000000
 a5 : 0000000000000000 a6 : 0000000000000100 a7 : 0000000000000102
 s2 : 0000000000082a20 s3 : 0000000000082a20 s4 : 00000000000001c0
 s5 : ffffffffffffffff s6 : ffffffff81ab853a s7 : ffffffff85abd7c0
 s8 : 0000000000000000 s9 : ffffffff85a9d520 s10: 00000000000000ff
 s11: ffffffffffffa288 t3 : 0000000000000000 t4 : fffffffef0ef5c79
 t5 : fffffffef0ef5c7a t6 : ffffffff877f0e88
status: 0000000000000120 badaddr: 0000000000000000 cause: 8000000000000005
[<ffffffff827abaf6>] kmalloc_reserve net/core/skbuff.c:358 [inline]
[<ffffffff827abaf6>] __alloc_skb+0xe6/0x2c2 net/core/skbuff.c:430
[<ffffffff81ab853a>] alloc_skb include/linux/skbuff.h:1257 [inline]
[<ffffffff81ab853a>] new_skb+0x2c/0xcc drivers/block/aoe/aoecmd.c:66
[<ffffffff81abe672>] aoecmd_cfg_pkts drivers/block/aoe/aoecmd.c:425 [inline]
[<ffffffff81abe672>] aoecmd_cfg+0x1f6/0x5c6 drivers/block/aoe/aoecmd.c:1362
[<ffffffff81ac19aa>] discover_timer+0x4a/0x54 drivers/block/aoe/aoemain.c:25
[<ffffffff8018d90a>] call_timer_fn+0x160/0x684 kernel/time/timer.c:1474
[<ffffffff8018e2ae>] expire_timers kernel/time/timer.c:1519 [inline]
[<ffffffff8018e2ae>] __run_timers.part.0+0x480/0x50a kernel/time/timer.c:1790
[<ffffffff8018e3be>] __run_timers kernel/time/timer.c:1768 [inline]
[<ffffffff8018e3be>] run_timer_softirq+0x86/0x100 kernel/time/timer.c:1803
[<ffffffff832c6aac>] __do_softirq+0x274/0x906 kernel/softirq.c:571
[<ffffffff8006825a>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
[<ffffffff8006825a>] invoke_softirq kernel/softirq.c:452 [inline]
[<ffffffff8006825a>] __irq_exit_rcu+0x154/0x1ea kernel/softirq.c:650
[<ffffffff80068548>] irq_exit+0x10/0x7a kernel/softirq.c:674
[<ffffffff832b5e5a>] generic_handle_arch_irq+0x48/0x54 kernel/irq/handle.c:240
[<ffffffff80005cec>] ret_from_exception+0x0/0x10
[<ffffffff80005f7c>] cpu_do_idle arch/riscv/include/asm/cpuidle.h:20 [inline]
[<ffffffff80005f7c>] arch_cpu_idle+0x10/0x24 arch/riscv/kernel/process.c:41

Crashes (5):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-qemu2-riscv64 2022/09/09 11:02 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 20e0fbab1600 90058bdc .config log report riscv/fixes boot error: BUG: soft lockup in corrupted
ci-qemu2-riscv64 2022/08/06 13:00 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 88bd24d73d5b 88e3a122 .config log report riscv/fixes boot error: BUG: soft lockup in corrupted
ci-qemu2-riscv64 2022/07/11 22:17 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes dc5cb7a833e8 da3d6955 .config log report riscv/fixes boot error: BUG: soft lockup in corrupted
ci-qemu2-riscv64 2022/06/17 22:50 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes e83031564137 8f633d84 .config log report riscv/fixes boot error: BUG: soft lockup in corrupted
ci-qemu2-riscv64 2022/06/02 08:20 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes c932edeaf6d6 5783034f .config log report riscv/fixes boot error: BUG: soft lockup in corrupted
* Struck through repros no longer work on HEAD.