[syzbot] riscv/fixes test error: BUG: soft lockup in corrupted

From: syzbot
Date: Fri Sep 24 2021 - 04:58:30 EST


Hello,

syzbot found the following issue on:

HEAD commit: 7d2a07b76933 Linux 5.14
git tree: git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes
console output: https://syzkaller.appspot.com/x/log.txt?x=1021b1f3300000
kernel config: https://syzkaller.appspot.com/x/.config?x=f8211b06020972e8
dashboard link: https://syzkaller.appspot.com/bug?extid=bc48e05449f37d40eccf
compiler: riscv64-linux-gnu-gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.1
userspace arch: riscv64

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+bc48e05449f37d40eccf@xxxxxxxxxxxxxxxxxxxxxxxxx

watchdog: BUG: soft lockup - CPU#0 stuck for 430s! [kworker/0:3:3301]
Modules linked in:
irq event stamp: 128499
hardirqs last enabled at (128498): [<ffffffff800051a0>] restore_all+0x12/0x6e
hardirqs last disabled at (128499): [<ffffffff80005094>] _save_context+0x80/0x90
softirqs last enabled at (45742): [<ffffffff82ba5a08>] softirq_handle_end kernel/softirq.c:401 [inline]
softirqs last enabled at (45742): [<ffffffff82ba5a08>] __do_softirq+0x628/0x90c kernel/softirq.c:587
softirqs last disabled at (45749): [<ffffffff800369a0>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
softirqs last disabled at (45749): [<ffffffff800369a0>] invoke_softirq kernel/softirq.c:439 [inline]
softirqs last disabled at (45749): [<ffffffff800369a0>] __irq_exit_rcu kernel/softirq.c:636 [inline]
softirqs last disabled at (45749): [<ffffffff800369a0>] irq_exit+0x1a0/0x1b6 kernel/softirq.c:660
CPU: 0 PID: 3301 Comm: kworker/0:3 Not tainted 5.14.0-syzkaller #0
Hardware name: riscv-virtio,qemu (DT)
Workqueue: events nsim_dev_trap_report_work
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:2884 [inline]
epc : __kmalloc_node_track_caller+0xaa/0x3d2 mm/slub.c:4653
ra : slab_pre_alloc_hook mm/slab.h:494 [inline]
ra : slab_alloc_node mm/slub.c:2880 [inline]
ra : __kmalloc_node_track_caller+0x70/0x3d2 mm/slub.c:4653
epc : ffffffff803e2a1a ra : ffffffff803e29e0 sp : ffffffe00e97f4d0
gp : ffffffff83f967d8 tp : ffffffe0081a2f80 t0 : ffffffe008c0e728
t1 : ffffffc7f07f2d69 t2 : 000000000545de2b s0 : ffffffe00e97f570
s1 : ffffffe005601c80 a0 : 0000000000000000 a1 : 0000000000000007
a2 : 1ffffffff07aa51f a3 : ffffffff80a9711a a4 : 0000000004000000
a5 : 0000000000000000 a6 : 0000000000f00000 a7 : 7126f9b37a026000
s2 : ffffffff83f96adc s3 : 0000000000082a20 s4 : 0000000000000200
s5 : ffffffffffffffff s6 : ffffffff827d9302 s7 : ffffffff83f9a0d0
s8 : 0000000000000000 s9 : 0000000000082a20 s10: ffffffffffffffff
s11: 0000000000000000 t3 : 7126f9b37a026000 t4 : ffffffc7f07f2d69
t5 : ffffffc7f07f2d6a t6 : ffffffe009428026
status: 0000000000000120 badaddr: 0000000000000000 cause: 8000000000000005
[<ffffffff803e2a1a>] slab_alloc_node mm/slub.c:2881 [inline]
[<ffffffff803e2a1a>] __kmalloc_node_track_caller+0xaa/0x3d2 mm/slub.c:4653
[<ffffffff821a8952>] kmalloc_reserve net/core/skbuff.c:355 [inline]
[<ffffffff821a8952>] __alloc_skb+0xee/0x2e2 net/core/skbuff.c:426
[<ffffffff827d9302>] alloc_skb include/linux/skbuff.h:1112 [inline]
[<ffffffff827d9302>] ndisc_alloc_skb+0x9e/0x1a0 net/ipv6/ndisc.c:420
[<ffffffff827e09d8>] ndisc_send_rs+0x24c/0x378 net/ipv6/ndisc.c:686
[<ffffffff8279c322>] addrconf_rs_timer+0x2ac/0x4c4 net/ipv6/addrconf.c:3877
[<ffffffff80123b68>] call_timer_fn+0x10e/0x654 kernel/time/timer.c:1421
[<ffffffff8012448e>] expire_timers kernel/time/timer.c:1466 [inline]
[<ffffffff8012448e>] __run_timers.part.0+0x3e0/0x442 kernel/time/timer.c:1734
[<ffffffff80124566>] __run_timers kernel/time/timer.c:1715 [inline]
[<ffffffff80124566>] run_timer_softirq+0x76/0xe0 kernel/time/timer.c:1747
[<ffffffff82ba5650>] __do_softirq+0x270/0x90c kernel/softirq.c:558
[<ffffffff800369a0>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
[<ffffffff800369a0>] invoke_softirq kernel/softirq.c:439 [inline]
[<ffffffff800369a0>] __irq_exit_rcu kernel/softirq.c:636 [inline]
[<ffffffff800369a0>] irq_exit+0x1a0/0x1b6 kernel/softirq.c:660
[<ffffffff800e88dc>] handle_domain_irq+0x106/0x178 kernel/irq/irqdesc.c:705
[<ffffffff80af3486>] riscv_intc_irq+0x80/0xca drivers/irqchip/irq-riscv-intc.c:40
[<ffffffff8000515e>] ret_from_exception+0x0/0x14
[<ffffffff803e29e0>] slab_pre_alloc_hook mm/slab.h:494 [inline]
[<ffffffff803e29e0>] slab_alloc_node mm/slub.c:2880 [inline]
[<ffffffff803e29e0>] __kmalloc_node_track_caller+0x70/0x3d2 mm/slub.c:4653


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzkaller@xxxxxxxxxxxxxxxx.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.