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: 23d, last: 7d11h

Sample crash report:
watchdog: BUG: soft lockup - CPU#0 stuck for 23s! [dhcpcd:1867]
Modules linked in:
irq event stamp: 6191
hardirqs last  enabled at (6190): [<ffffffff80010050>] __trace_hardirqs_on+0x18/0x20 arch/riscv/kernel/trace_irq.c:19
hardirqs last disabled at (6191): [<ffffffff80010070>] __trace_hardirqs_off+0x18/0x20 arch/riscv/kernel/trace_irq.c:25
softirqs last  enabled at (1600): [<ffffffff8328ff98>] softirq_handle_end kernel/softirq.c:414 [inline]
softirqs last  enabled at (1600): [<ffffffff8328ff98>] __do_softirq+0x618/0x8fc kernel/softirq.c:600
softirqs last disabled at (1609): [<ffffffff80066d24>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
softirqs last disabled at (1609): [<ffffffff80066d24>] invoke_softirq kernel/softirq.c:452 [inline]
softirqs last disabled at (1609): [<ffffffff80066d24>] __irq_exit_rcu+0x142/0x1f8 kernel/softirq.c:650
CPU: 0 PID: 1867 Comm: dhcpcd Not tainted 5.19.0-rc1-syzkaller-00001-ge83031564137 #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:3132 [inline]
epc : __kmalloc_node_track_caller+0xae/0x35a mm/slub.c:4950
 ra : slab_pre_alloc_hook mm/slab.h:725 [inline]
 ra : slab_alloc_node mm/slub.c:3128 [inline]
 ra : __kmalloc_node_track_caller+0x74/0x35a mm/slub.c:4950
epc : ffffffff804a0242 ra : ffffffff804a0208 sp : ff20000013256b00
 gp : ffffffff85a89060 tp : ff6000000e84b180 t0 : ffebffff010376be
 t1 : 00000000000f0000 t2 : ffffffff82a182d8 s0 : ff20000013256ba0
 s1 : ff60000007e01dc0 a0 : 0000000000000000 a1 : 0000000000000007
 a2 : 1ffffffff09c97f0 a3 : ffffffff80c30af0 a4 : 0000000000000000
 a5 : 0000000000000000 a6 : ffffffffae0f5500 a7 : 0000000000000100
 s2 : 0000000000082a20 s3 : 0000000000082a20 s4 : 0000000000000240
 s5 : ffffffffffffffff s6 : ffffffff827896ec s7 : ffffffff85aaf7c0
 s8 : 0000000000000000 s9 : ffffffff85a8f160 s10: ff6000007fdef7a0
 s11: ff600000121fabf4 t3 : fffffffff204f202 t4 : ffebffff01801418
 t5 : ffebffff01801419 t6 : ff6000001328b5e8
status: 0000000000000120 badaddr: 0000000000000000 cause: 8000000000000005
[<ffffffff8278938c>] kmalloc_reserve net/core/skbuff.c:354 [inline]
[<ffffffff8278938c>] __alloc_skb+0xee/0x2e4 net/core/skbuff.c:426
[<ffffffff827896ec>] __napi_alloc_skb+0x72/0x214 net/core/skbuff.c:568
[<ffffffff81852358>] napi_alloc_skb include/linux/skbuff.h:3314 [inline]
[<ffffffff81852358>] page_to_skb+0x172/0x71a drivers/net/virtio_net.c:464
[<ffffffff818590ea>] receive_mergeable drivers/net/virtio_net.c:1084 [inline]
[<ffffffff818590ea>] receive_buf+0xacc/0x404a drivers/net/virtio_net.c:1223
[<ffffffff8185ca04>] virtnet_receive drivers/net/virtio_net.c:1518 [inline]
[<ffffffff8185ca04>] virtnet_poll+0x39c/0x986 drivers/net/virtio_net.c:1627
[<ffffffff827ddee0>] __napi_poll+0x7e/0x634 net/core/dev.c:6486
[<ffffffff827def8a>] napi_poll net/core/dev.c:6553 [inline]
[<ffffffff827def8a>] net_rx_action+0x714/0x860 net/core/dev.c:6664
[<ffffffff8328fbf4>] __do_softirq+0x274/0x8fc kernel/softirq.c:571
[<ffffffff80066d24>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
[<ffffffff80066d24>] invoke_softirq kernel/softirq.c:452 [inline]
[<ffffffff80066d24>] __irq_exit_rcu+0x142/0x1f8 kernel/softirq.c:650
[<ffffffff80067032>] irq_exit+0x10/0x7a kernel/softirq.c:674
[<ffffffff8327f82a>] generic_handle_arch_irq+0x48/0x54 kernel/irq/handle.c:240
[<ffffffff80005c08>] ret_from_exception+0x0/0x10
[<ffffffff804a0208>] slab_pre_alloc_hook mm/slab.h:725 [inline]
[<ffffffff804a0208>] slab_alloc_node mm/slub.c:3128 [inline]
[<ffffffff804a0208>] __kmalloc_node_track_caller+0x74/0x35a mm/slub.c:4950

Crashes (2):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
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