syzbot


riscv/fixes test error: BUG: soft lockup in corrupted (2)

Status: internal: reported on 2022/07/27 08:59
Reported-by: syzbot+@syzkaller.appspotmail.com
Fix commit: riscv: Bump COMMAND_LINE_SIZE value to 1024
Patched on: [], missing on: [ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-qemu2-riscv64 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]
First crash: 193d, last: 116d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream riscv/fixes test error: BUG: soft lockup in corrupted 1 503d 499d 0/24 auto-closed as invalid on 2022/01/18 08:55

Sample crash report:
watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [kworker/u4:1:10]
Modules linked in:
irq event stamp: 41719
hardirqs last  enabled at (41718): [<ffffffff800102ac>] __trace_hardirqs_on+0x18/0x20 arch/riscv/kernel/trace_irq.c:19
hardirqs last disabled at (41719): [<ffffffff800102cc>] __trace_hardirqs_off+0x18/0x20 arch/riscv/kernel/trace_irq.c:25
softirqs last  enabled at (37672): [<ffffffff803cdb62>] spin_unlock_bh include/linux/spinlock.h:394 [inline]
softirqs last  enabled at (37672): [<ffffffff803cdb62>] wb_wakeup_delayed+0x82/0xb4 mm/backing-dev.c:266
softirqs last disabled at (37691): [<ffffffff80068272>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
softirqs last disabled at (37691): [<ffffffff80068272>] invoke_softirq kernel/softirq.c:452 [inline]
softirqs last disabled at (37691): [<ffffffff80068272>] __irq_exit_rcu+0x154/0x1ea kernel/softirq.c:650
CPU: 0 PID: 10 Comm: kworker/u4:1 Tainted: G        W          6.0.0-rc1-syzkaller-00006-g145f88818d44 #0
Hardware name: riscv-virtio,qemu (DT)
Workqueue: events_unbound toggle_allocation_gate
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 : ffffffff804ae066 ra : ffffffff804ae02c sp : ff200000002b6f00
 gp : ffffffff85a97360 tp : ff60000008056300 t0 : ffebffff0151a1d6
 t1 : 00000000000f0000 t2 : 0000000000000032 s0 : ff200000002b6fa0
 s1 : ff60000007e01dc0 a0 : 0000000000000000 a1 : 0000000000000007
 a2 : 1ffffffff09c9ce0 a3 : ffffffff80c47480 a4 : 0000000000000000
 a5 : 0000000000000000 a6 : ffffffffb080adc0 a7 : 0000000000000100
 s2 : 0000000000082a20 s3 : 0000000000082a20 s4 : 0000000000000240
 s5 : ffffffffffffffff s6 : ffffffff827ac0d4 s7 : ffffffff85abd7c0
 s8 : 0000000000000000 s9 : ffffffff85a9d520 s10: ff6000007fdef7a0
 s11: ff6000001228cbf4 t3 : fffffffff204f202 t4 : ffebffff01666618
 t5 : ffebffff01666619 t6 : 0000000000040000
status: 0000000000000120 badaddr: 0000000000000000 cause: 8000000000000005
[<ffffffff827abb0e>] kmalloc_reserve net/core/skbuff.c:358 [inline]
[<ffffffff827abb0e>] __alloc_skb+0xe6/0x2c2 net/core/skbuff.c:430
[<ffffffff827ac0d4>] __napi_alloc_skb+0x72/0x20c net/core/skbuff.c:571
[<ffffffff81874ca2>] napi_alloc_skb include/linux/skbuff.h:3186 [inline]
[<ffffffff81874ca2>] page_to_skb+0x172/0x712 drivers/net/virtio_net.c:496
[<ffffffff8187d512>] receive_mergeable drivers/net/virtio_net.c:1119 [inline]
[<ffffffff8187d512>] receive_buf+0xac4/0x401a drivers/net/virtio_net.c:1258
[<ffffffff81880e26>] virtnet_receive drivers/net/virtio_net.c:1553 [inline]
[<ffffffff81880e26>] virtnet_poll+0x3be/0xa04 drivers/net/virtio_net.c:1671
[<ffffffff8280182a>] __napi_poll+0x7a/0x34e net/core/dev.c:6511
[<ffffffff8280262c>] napi_poll net/core/dev.c:6578 [inline]
[<ffffffff8280262c>] net_rx_action+0x728/0x882 net/core/dev.c:6689
[<ffffffff832c6ac4>] __do_softirq+0x274/0x906 kernel/softirq.c:571
[<ffffffff80068272>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
[<ffffffff80068272>] invoke_softirq kernel/softirq.c:452 [inline]
[<ffffffff80068272>] __irq_exit_rcu+0x154/0x1ea kernel/softirq.c:650
[<ffffffff80068560>] irq_exit+0x10/0x7a kernel/softirq.c:674
[<ffffffff832b5e72>] generic_handle_arch_irq+0x48/0x54 kernel/irq/handle.c:240
[<ffffffff80005cec>] ret_from_exception+0x0/0x10
[<ffffffff8037f914>] copy_to_kernel_nofault+0x1f8/0x2a8 mm/maccess.c:70

Crashes (4):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-qemu2-riscv64 2022/10/12 02:13 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 145f88818d44 16a9c9e0 .config console log report riscv/fixes test error: BUG: soft lockup in corrupted
ci-qemu2-riscv64 2022/09/22 15:02 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes a057092b801e 0042f2b4 .config console log report riscv/fixes test error: BUG: soft lockup in corrupted
ci-qemu2-riscv64 2022/09/21 10:07 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes a057092b801e 380f82fb .config console log report riscv/fixes test error: BUG: soft lockup in corrupted
ci-qemu2-riscv64 2022/07/27 08:58 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 88bd24d73d5b da9d0366 .config console log report riscv/fixes test error: BUG: soft lockup in corrupted
* Struck through repros no longer work on HEAD.