watchdog: BUG: soft lockup - CPU#0 stuck for 246s! [syz.4.2221:8302]
Modules linked in:
CPU: 0 PID: 8302 Comm: syz.4.2221 Not tainted 5.15.151-syzkaller-00415-gdb06c48ab67e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
RIP: 0010:trylock_clear_pending kernel/locking/qspinlock_paravirt.h:121 [inline]
RIP: 0010:pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:435 [inline]
RIP: 0010:__pv_queued_spin_lock_slowpath+0x5c4/0xc40 kernel/locking/qspinlock.c:508
Code: 44 24 10 0f b6 04 10 84 c0 0f 85 48 01 00 00 48 8b 44 24 08 c6 00 01 bb 00 80 ff ff eb 06 f3 90 ff c3 74 5e 41 0f b6 44 15 00 <84> c0 75 36 41 80 3f 00 75 ea 4c 89 ff be 02 00 00 00 e8 15 78 5d
RSP: 0018:ffffc900012cf460 EFLAGS: 00000282
RAX: 0000000000000000 RBX: 00000000ffffb4a4 RCX: ffffffff8154fbdf
RDX: dffffc0000000000 RSI: 0000000000000003 RDI: ffff88811f738548
RBP: ffffc900012cf550 R08: dffffc0000000000 R09: ffffed1023ee70aa
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8881f7038ad4
R13: 1ffff11023ee70a9 R14: 1ffff1103ee00001 R15: ffff88811f738548
FS: 00007f088145b6c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0881459ff0 CR3: 000000010c165000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:585 [inline]
queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:51 [inline]
queued_spin_lock include/asm-generic/qspinlock.h:85 [inline]
do_raw_spin_lock include/linux/spinlock.h:187 [inline]
__raw_spin_lock_bh include/linux/spinlock_api_smp.h:136 [inline]
_raw_spin_lock_bh+0x139/0x1b0 kernel/locking/spinlock.c:178
sock_hash_delete_elem+0xb1/0x2f0 net/core/sock_map.c:937
bpf_prog_2c29ac5cdc6b1842+0x3a/0xb9c
bpf_dispatcher_nop_func include/linux/bpf.h:785 [inline]
__bpf_prog_run include/linux/filter.h:625 [inline]
bpf_prog_run include/linux/filter.h:632 [inline]
__bpf_trace_run kernel/trace/bpf_trace.c:1880 [inline]
bpf_trace_run2+0xec/0x210 kernel/trace/bpf_trace.c:1917
__bpf_trace_kfree+0x6f/0x90 include/trace/events/kmem.h:118
trace_kfree include/trace/events/kmem.h:118 [inline]
kfree+0x1f3/0x220 mm/slub.c:4569
sk_psock_free_link include/linux/skmsg.h:420 [inline]
sock_map_del_link net/core/sock_map.c:160 [inline]
sock_map_unref+0x352/0x4d0 net/core/sock_map.c:182
sock_hash_delete_elem+0x274/0x2f0 net/core/sock_map.c:941
bpf_prog_2c29ac5cdc6b1842+0x3a/0xb9c
bpf_dispatcher_nop_func include/linux/bpf.h:785 [inline]
__bpf_prog_run include/linux/filter.h:625 [inline]
bpf_prog_run include/linux/filter.h:632 [inline]
__bpf_trace_run kernel/trace/bpf_trace.c:1880 [inline]
bpf_trace_run2+0xec/0x210 kernel/trace/bpf_trace.c:1917
__bpf_trace_kfree+0x6f/0x90 include/trace/events/kmem.h:118
trace_kfree include/trace/events/kmem.h:118 [inline]
kfree+0x1f3/0x220 mm/slub.c:4569
ida_alloc_range+0x987/0xa80 lib/idr.c:460
ida_alloc include/linux/idr.h:275 [inline]
raw_ioctl_init drivers/usb/gadget/legacy/raw_gadget.c:458 [inline]
raw_ioctl+0x1a38/0x3510 drivers/usb/gadget/legacy/raw_gadget.c:1252
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:874 [inline]
__se_sys_ioctl+0x114/0x190 fs/ioctl.c:860
__x64_sys_ioctl+0x7b/0x90 fs/ioctl.c:860
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f08821d97db
Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00
RSP: 002b:00007f0881458f20 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000008 RCX: 00007f08821d97db
RDX: 00007f0881459ff0 RSI: 0000000041015500 RDI: 0000000000000008
RBP: 00007f0881459ff0 R08: 0000000000000010 R09: 00342e6364755f79
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f0881458fc0 R14: 0000000020000300 R15: 00007f0882494320
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 6421 Comm: syz.4.1697 Not tainted 5.15.151-syzkaller-00415-gdb06c48ab67e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
RIP: 0010:pv_wait_node kernel/locking/qspinlock_paravirt.h:301 [inline]
RIP: 0010:__pv_queued_spin_lock_slowpath+0x38b/0xc40 kernel/locking/qspinlock.c:473
Code: 00 00 00 00 00 fc ff df 41 0f b6 04 16 84 c0 0f 85 ac 00 00 00 48 8b 44 24 08 83 38 00 0f 85 15 01 00 00 45 84 e4 74 09 f3 90 <41> ff cc 75 d9 eb 1b 48 8b 44 24 20 0f b6 04 10 84 c0 0f 85 cd 00
RSP: 0018:ffffc900001d0740 EFLAGS: 00000202
RAX: ffff8881f7138ac8 RBX: ffff8881f7138ad4 RCX: 0000000000000000
RDX: dffffc0000000000 RSI: 0000000000000001 RDI: ffff8881f7138ad4
RBP: ffffc900001d0830 R08: dffffc0000000000 R09: ffffed103ee2715b
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000725
R13: 1ffff11023ee70a9 R14: 1ffff1103ee27159 R15: ffff88811f738548
FS: 00007f985a1296c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6958e2ca30 CR3: 0000000121087000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:585 [inline]
queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:51 [inline]
queued_spin_lock include/asm-generic/qspinlock.h:85 [inline]
do_raw_spin_lock include/linux/spinlock.h:187 [inline]
__raw_spin_lock_bh include/linux/spinlock_api_smp.h:136 [inline]
_raw_spin_lock_bh+0x139/0x1b0 kernel/locking/spinlock.c:178
sock_hash_delete_elem+0xb1/0x2f0 net/core/sock_map.c:937
bpf_prog_2c29ac5cdc6b1842+0x3a/0xb9c
bpf_dispatcher_nop_func include/linux/bpf.h:785 [inline]
__bpf_prog_run include/linux/filter.h:625 [inline]
bpf_prog_run include/linux/filter.h:632 [inline]
__bpf_trace_run kernel/trace/bpf_trace.c:1880 [inline]
bpf_trace_run2+0xec/0x210 kernel/trace/bpf_trace.c:1917
__bpf_trace_kfree+0x6f/0x90 include/trace/events/kmem.h:118
trace_kfree include/trace/events/kmem.h:118 [inline]
kfree+0x1f3/0x220 mm/slub.c:4569
inet_sock_destruct+0x5a9/0x770 net/ipv4/af_inet.c:159
__sk_destruct+0x56/0x5b0 net/core/sock.c:1950
sk_destruct net/core/sock.c:1995 [inline]
__sk_free+0x36c/0x470 net/core/sock.c:2006
sock_wfree+0x182/0x1f0 net/core/sock.c:2230
skb_release_head_state+0x101/0x240 net/core/skbuff.c:730
skb_release_all net/core/skbuff.c:741 [inline]
__kfree_skb net/core/skbuff.c:757 [inline]
kfree_skb_reason net/core/skbuff.c:778 [inline]
kfree_skb+0x8a/0x360 net/core/skbuff.c:792
arp_error_report+0xb7/0xc0 net/ipv4/arp.c:296
neigh_invalidate+0x243/0x470 net/core/neighbour.c:1001
neigh_timer_handler+0x778/0xe70 net/core/neighbour.c:1088
call_timer_fn+0x3b/0x2d0 kernel/time/timer.c:1427
expire_timers kernel/time/timer.c:1472 [inline]
__run_timers+0x72a/0xa10 kernel/time/timer.c:1743
run_timer_softirq+0x69/0xf0 kernel/time/timer.c:1756
__do_softirq+0x26d/0x5bf kernel/softirq.c:565
invoke_softirq kernel/softirq.c:425 [inline]
__irq_exit_rcu+0x50/0xf0 kernel/softirq.c:648
irq_exit_rcu+0x9/0x10 kernel/softirq.c:660
sysvec_apic_timer_interrupt+0x9a/0xc0 arch/x86/kernel/apic/apic.c:1096
asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:PageSwapCache include/linux/page-flags.h:418 [inline]
RIP: 0010:page_file_mapping include/linux/mm.h:1705 [inline]
RIP: 0010:__read_io_type+0xbc/0x2c0 fs/f2fs/data.c:82
Code: da 9d 4a ff 4c 89 fb 48 89 df be 08 00 00 00 e8 5a d9 8c ff 48 89 d8 48 c1 e8 03 42 80 3c 20 00 74 08 48 89 df e8 64 d7 8c ff <4c> 8b 2b bb 00 00 08 00 be 00 00 08 00 4c 21 ee 31 ff e8 dd a1 4a
RSP: 0018:ffffc90000af63b0 EFLAGS: 00000246
RAX: 1ffffd400099cba8 RBX: ffffea0004ce5d40 RCX: ffffffff822599f6
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffea0004ce5d40
RBP: ffffc90000af63d8 R08: dffffc0000000000 R09: fffff9400099cba9
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: dffffc0000000000 R14: ffffea0004ce5d40 R15: ffffea0004ce5d40
f2fs_finish_read_bio+0x4e9/0x6a0 fs/f2fs/data.c:152
f2fs_read_end_io+0x2a2/0x630
bio_endio+0x64a/0x670 block/bio.c:1478
submit_bio_checks+0x274/0x1210 block/blk-core.c:910
__submit_bio+0x566/0x930 block/blk-core.c:922
__submit_bio_noacct_mq block/blk-core.c:1008 [inline]
submit_bio_noacct+0x94a/0xb20 block/blk-core.c:1038
submit_bio+0x3a0/0x660 block/blk-core.c:1110
__submit_bio+0x66c/0x9d0 fs/f2fs/data.c:517
f2fs_submit_page_read+0x1b5/0x1d0 fs/f2fs/data.c:1073
f2fs_get_read_data_page+0x5a7/0x7e0 fs/f2fs/data.c:1247
gc_data_segment fs/f2fs/gc.c:1558 [inline]
do_garbage_collect+0x3a47/0x6930 fs/f2fs/gc.c:1726
f2fs_gc+0x9f9/0x1c20 fs/f2fs/gc.c:1825
f2fs_balance_fs+0x341/0x3f0 fs/f2fs/segment.c:426
f2fs_map_blocks+0x2992/0x3ac0 fs/f2fs/data.c:1674
expand_inode_data+0x5b2/0xac0 fs/f2fs/file.c:1701
f2fs_fallocate+0x427/0x770 fs/f2fs/file.c:1796
vfs_fallocate+0x492/0x570 fs/open.c:309
do_vfs_ioctl+0x2238/0x2a80 fs/ioctl.c:853
__do_sys_ioctl fs/ioctl.c:872 [inline]
__se_sys_ioctl+0x99/0x190 fs/ioctl.c:860
__x64_sys_ioctl+0x7b/0x90 fs/ioctl.c:860
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f985aea7bd9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f985a129048 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f985b035f60 RCX: 00007f985aea7bd9
RDX: 00000000200000c0 RSI: 0000000040305828 RDI: 0000000000000004
RBP: 00007f985af16e60 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f985b035f60 R15: 00007fff3d8674b8