syzbot


BUG: soft lockup in sock_read_iter

Status: premoderation: reported on 2025/03/19 12:32
Reported-by: syzbot+ef8015f6049c467651ad@syzkaller.appspotmail.com
First crash: 21d, last: 21d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-15 BUG: soft lockup in sock_read_iter 10 236d 367d 0/2 auto-obsoleted due to no activity on 2024/11/14 07:45
linux-6.1 INFO: rcu detected stall in sock_read_iter 1 84d 84d 0/3 upstream: reported on 2025/01/15 05:42
upstream INFO: rcu detected stall in sock_read_iter net 1 916d 916d 0/28 auto-obsoleted due to no activity on 2022/12/05 11:10
upstream INFO: rcu detected stall in sock_read_iter (2) net 1 175d 175d 0/28 auto-obsoleted due to no activity on 2025/01/14 23:11

Sample crash report:
RBP: 0000000000000000 R08: 00007fff7e9ef080 R09: 00007fff7e9ef0b0
R10: 0000000000016334 R11: 0000000000000246 R12: 00007fff7e8daea0
R13: 0000000000000004 R14: 00007fff7e8daa8c R15: 00007fff7e8dab20
 </TASK>
watchdog: BUG: soft lockup - CPU#1 stuck for 246s! [syz-executor:287]
Modules linked in:
CPU: 1 PID: 287 Comm: syz-executor Not tainted 6.1.128-syzkaller-00022-g6bd3e435f2e8 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:434 [inline]
RIP: 0010:__pv_queued_spin_lock_slowpath+0x5e0/0xda0 kernel/locking/qspinlock.c:511
Code: 48 8b 44 24 10 c6 00 00 48 8b 44 24 18 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 5d 41 0f b6 04 14 84 c0 75 36 41 80 3f 00 75 eb 4c 89 ff
RSP: 0018:ffffc90000e07660 EFLAGS: 00000206
RAX: 0000000000000000 RBX: 00000000ffffecfa RCX: ffffffff8522d78c
RDX: dffffc0000000000 RSI: 0000000000000003 RDI: ffff888109880098
RBP: ffffc90000e07750 R08: dffffc0000000000 R09: ffffed1021310014
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff11021310013
R13: ffff8881f71d2b80 R14: 1ffff1103ede0001 R15: ffff888109880098
FS:  000055559305b500(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2e818ff8 CR3: 000000011ffe1000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff1 DR7: 0000000000000600
Call Trace:
 <IRQ>
 </IRQ>
 <TASK>
 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:591 [inline]
 queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:51 [inline]
 queued_spin_lock include/asm-generic/qspinlock.h:114 [inline]
 do_raw_spin_lock include/linux/spinlock.h:187 [inline]
 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:127 [inline]
 _raw_spin_lock_bh+0x139/0x1b0 kernel/locking/spinlock.c:178
 spin_lock_bh include/linux/spinlock.h:356 [inline]
 lock_sock_nested+0x92/0x300 net/core/sock.c:3507
 lock_sock include/net/sock.h:1769 [inline]
 tcp_recvmsg+0x237/0x920 net/ipv4/tcp.c:2678
 inet_recvmsg+0x14e/0x500 net/ipv4/af_inet.c:869
 sock_recvmsg_nosec net/socket.c:1020 [inline]
 sock_recvmsg net/socket.c:1038 [inline]
 sock_read_iter+0x3b2/0x4b0 net/socket.c:1111
 call_read_iter include/linux/fs.h:2268 [inline]
 new_sync_read fs/read_write.c:389 [inline]
 vfs_read+0x801/0xae0 fs/read_write.c:470
 ksys_read+0x199/0x2c0 fs/read_write.c:613
 __do_sys_read fs/read_write.c:623 [inline]
 __se_sys_read fs/read_write.c:621 [inline]
 __x64_sys_read+0x7b/0x90 fs/read_write.c:621
 x64_sys_call+0x28/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:1
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f27fcf8bb3d
Code: a8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb b5 e8 a8 48 00 00 0f 1f 84 00 00 00 00 00 80 3d 01 1a 1f 00 00 74 17 31 c0 0f 05 <48> 3d 00 f0 ff ff 77 5b c3 66 2e 0f 1f 84 00 00 00 00 00 48 83 ec
RSP: 002b:00007fff7e8daa78 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 00007fff7e8dab80 RCX: 00007f27fcf8bb3d
RDX: 0000000000000004 RSI: 00007fff7e8daa8c RDI: 0000000000000003
RBP: 0000000000000000 R08: 00007fff7e9ef080 R09: 00007fff7e9ef0b0
R10: 0000000000016334 R11: 0000000000000246 R12: 00007fff7e8daea0
R13: 0000000000000004 R14: 00007fff7e8daa8c R15: 00007fff7e8dab20
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 9648 Comm: syz.3.2985 Not tainted 6.1.128-syzkaller-00022-g6bd3e435f2e8 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:native_halt arch/x86/include/asm/irqflags.h:57 [inline]
RIP: 0010:halt arch/x86/include/asm/irqflags.h:98 [inline]
RIP: 0010:kvm_wait+0x117/0x180 arch/x86/kernel/kvm.c:1058
Code: 48 c1 e8 03 42 0f b6 04 20 84 c0 44 8b 74 24 1c 75 53 41 0f b6 45 00 44 38 f0 0f 85 63 ff ff ff 66 90 0f 00 2d da de 50 04 f4 <e9> 54 ff ff ff fa 4c 89 e8 48 c1 e8 03 42 0f b6 04 20 84 c0 44 8b
RSP: 0018:ffffc90000006520 EFLAGS: 00000046
RAX: 0000000000000003 RBX: 1ffff92000000ca8 RCX: ffffffff8522d78c
RDX: dffffc0000000000 RSI: 0000000000000003 RDI: ffff8881f6e27b80
RBP: ffffc900000065d0 R08: dffffc0000000000 R09: ffffed103edc4f71
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff8881f6e27b80 R14: 0000000000000003 R15: 1ffff92000000cac
FS:  00007fdafcd966c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f3f045a7bac CR3: 000000012a619000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 pv_wait arch/x86/include/asm/paravirt.h:603 [inline]
 pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:470 [inline]
 __pv_queued_spin_lock_slowpath+0x6de/0xda0 kernel/locking/qspinlock.c:511
 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:591 [inline]
 queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:51 [inline]
 queued_spin_lock include/asm-generic/qspinlock.h:114 [inline]
 do_raw_spin_lock include/linux/spinlock.h:187 [inline]
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:111 [inline]
 _raw_spin_lock_irqsave+0x1a0/0x210 kernel/locking/spinlock.c:162
 lock_timer_base+0x12f/0x270 kernel/time/timer.c:1005
 __mod_timer+0x1c9/0xcf0 kernel/time/timer.c:1078
 add_timer+0x68/0x80 kernel/time/timer.c:1218
 __queue_delayed_work+0x16d/0x1f0 kernel/workqueue.c:1686
 queue_delayed_work_on+0x10f/0x180 kernel/workqueue.c:1711
 queue_delayed_work include/linux/workqueue.h:525 [inline]
 schedule_delayed_monitor_work kernel/rcu/tree.c:3216 [inline]
 kvfree_call_rcu+0x490/0x800 kernel/rcu/tree.c:3472
 trie_delete_elem+0x5a6/0x760 kernel/bpf/lpm_trie.c:545
 bpf_prog_89720c64c5dd456c+0x40/0x44
 bpf_dispatcher_nop_func include/linux/bpf.h:987 [inline]
 __bpf_prog_run include/linux/filter.h:603 [inline]
 bpf_prog_run include/linux/filter.h:610 [inline]
 __bpf_trace_run kernel/trace/bpf_trace.c:2282 [inline]
 bpf_trace_run3+0x177/0x2e0 kernel/trace/bpf_trace.c:2322
 __bpf_trace_timer_start+0x2b/0x40 include/trace/events/timer.h:53
 trace_timer_start include/trace/events/timer.h:53 [inline]
 enqueue_timer+0x303/0x480 kernel/time/timer.c:615
 internal_add_timer kernel/time/timer.c:640 [inline]
 __mod_timer+0x8d3/0xcf0 kernel/time/timer.c:1121
 mod_timer+0x1f/0x30 kernel/time/timer.c:1172
 sk_reset_timer+0x22/0xb0 net/core/sock.c:3390
 tcp_send_delayed_ack+0x2e9/0x3e0 net/ipv4/tcp_output.c:3965
 __tcp_ack_snd_check+0x41f/0x970 net/ipv4/tcp_input.c:5615
 tcp_ack_snd_check net/ipv4/tcp_input.c:5656 [inline]
 tcp_rcv_established+0xad0/0x1c60 net/ipv4/tcp_input.c:6100
 tcp_v4_do_rcv+0x430/0xa20 net/ipv4/tcp_ipv4.c:1683
 tcp_v4_rcv+0x20d7/0x2a30 net/ipv4/tcp_ipv4.c:2114
 ip_protocol_deliver_rcu+0x32f/0x720 net/ipv4/ip_input.c:205
 ip_local_deliver_finish+0x246/0x400 net/ipv4/ip_input.c:233
 NF_HOOK include/linux/netfilter.h:305 [inline]
 ip_local_deliver+0x1b3/0x3b0 net/ipv4/ip_input.c:254
 dst_input include/net/dst.h:454 [inline]
 ip_sublist_rcv_finish net/ipv4/ip_input.c:580 [inline]
 ip_list_rcv_finish net/ipv4/ip_input.c:631 [inline]
 ip_sublist_rcv+0x7e5/0x990 net/ipv4/ip_input.c:639
 ip_list_rcv+0x422/0x470 net/ipv4/ip_input.c:674
 __netif_receive_skb_list_ptype net/core/dev.c:5597 [inline]
 __netif_receive_skb_list_core+0x6b1/0x890 net/core/dev.c:5645
 __netif_receive_skb_list net/core/dev.c:5697 [inline]
 netif_receive_skb_list_internal+0x967/0xcc0 net/core/dev.c:5788
 gro_normal_list include/net/gro.h:433 [inline]
 napi_complete_done+0x344/0x770 net/core/dev.c:6129
 virtqueue_napi_complete drivers/net/virtio_net.c:403 [inline]
 virtnet_poll+0xc4a/0x1450 drivers/net/virtio_net.c:1687
 __napi_poll+0xbe/0x5c0 net/core/dev.c:6563
 napi_poll net/core/dev.c:6630 [inline]
 net_rx_action+0x595/0xdd0 net/core/dev.c:6744
 handle_softirqs+0x1db/0x650 kernel/softirq.c:624
 __do_softirq kernel/softirq.c:662 [inline]
 invoke_softirq kernel/softirq.c:479 [inline]
 __irq_exit_rcu+0x52/0xf0 kernel/softirq.c:711
 irq_exit_rcu+0x9/0x10 kernel/softirq.c:723
 common_interrupt+0xc3/0xe0 arch/x86/kernel/irq.c:240
 </IRQ>
 <TASK>
 asm_common_interrupt+0x27/0x40 arch/x86/include/asm/idtentry.h:682
RIP: 0010:explored_state kernel/bpf/verifier.c:10983 [inline]
RIP: 0010:clean_live_states kernel/bpf/verifier.c:11730 [inline]
RIP: 0010:is_state_visited kernel/bpf/verifier.c:12189 [inline]
RIP: 0010:do_check+0x7eb/0xe040 kernel/bpf/verifier.c:12451
Code: df e8 19 76 32 00 4c 89 ee 48 8b 1b 48 83 c3 0c 48 89 d8 48 c1 e8 03 0f b6 04 30 84 c0 0f 85 1d 9e 00 00 44 89 f0 31 d2 f7 33 <49> 8d 1c d7 48 89 d8 48 c1 e8 03 80 3c 30 00 74 0b 48 89 df e8 dc
RSP: 0018:ffffc90008c96ea0 EFLAGS: 00000246
RAX: 0000000012492491 RBX: ffffc900008ce00c RCX: 0000000000080000
RDX: 0000000000000007 RSI: dffffc0000000000 RDI: 0000000000024205
RBP: ffffc90008c971a0 R08: ffffffff818abe81 R09: 0000000000000000
R10: 000000000000000f R11: dffffc0000000001 R12: ffffc900008ce050
R13: dffffc0000000000 R14: 00000000fffffff5 R15: ffff88810e570e00
 do_check_common+0x6ca/0xca0 kernel/bpf/verifier.c:14930
 do_check_main kernel/bpf/verifier.c:14993 [inline]
 bpf_check+0x6d12/0x17ed0 kernel/bpf/verifier.c:15570
 bpf_prog_load+0x1304/0x1bf0 kernel/bpf/syscall.c:2626
 __sys_bpf+0x52c/0x7f0 kernel/bpf/syscall.c:5007
 __do_sys_bpf kernel/bpf/syscall.c:5111 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5109 [inline]
 __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5109
 x64_sys_call+0x87f/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:322
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fdafbf8d169
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:00007fdafcd96038 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007fdafc1a5fa0 RCX: 00007fdafbf8d169
RDX: 0000000000000048 RSI: 00004000000017c0 RDI: 0000000000000005
RBP: 00007fdafc00e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fdafc1a5fa0 R15: 00007ffdeaf9c178
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/03/19 12:31 android14-6.1 6bd3e435f2e8 8d0a2921 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: soft lockup in sock_read_iter
* Struck through repros no longer work on HEAD.