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: 97d, last: 58d
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 312d 443d 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 160d 160d 0/3 auto-obsoleted due to no activity on 2025/04/25 05:42
upstream INFO: rcu detected stall in sock_read_iter net 1 992d 992d 0/29 auto-obsoleted due to no activity on 2022/12/05 11:10
upstream INFO: rcu detected stall in sock_read_iter (2) net 1 250d 250d 0/29 auto-obsoleted due to no activity on 2025/01/14 23:11

Sample crash report:
RBP: 0000000000000000 R08: 000000000000022c R09: 002b266532df84a6
R10: 0000011e38565779 R11: 0000000000000246 R12: 00007fff6c378930
R13: 0000000000000004 R14: 00007fff6c37851c R15: 00007fff6c3785b0
 </TASK>
watchdog: BUG: soft lockup - CPU#1 stuck for 225s! [syz-executor:281]
Modules linked in:
CPU: 1 PID: 281 Comm: syz-executor Not tainted 6.1.134-syzkaller-00029-ga4fc1bef0501 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:native_safe_halt arch/x86/include/asm/irqflags.h:51 [inline]
RIP: 0010:arch_safe_halt arch/x86/include/asm/irqflags.h:89 [inline]
RIP: 0010:kvm_wait+0xf2/0x140 arch/x86/kernel/kvm.c:1064
Code: b7 13 04 f4 eb 9a fa 48 89 f8 48 c1 e8 03 42 0f b6 04 30 84 c0 75 3f 0f b6 07 40 38 f0 75 10 66 90 0f 00 2d f0 b6 13 04 fb f4 <e9> 71 ff ff ff fb e9 6b ff ff ff e8 4e 67 b4 03 89 f9 80 e1 07 38
RSP: 0018:ffffc90000e37620 EFLAGS: 00000246
RAX: 0000000000000003 RBX: ffff88810fcdb298 RCX: ffffffff84efb682
RDX: dffffc0000000000 RSI: 0000000000000003 RDI: ffff88810fcdb298
RBP: ffffc90000e376b0 R08: dffffc0000000000 R09: ffffed1021f9b654
R10: ffffed1021f9b654 R11: 1ffff11021f9b653 R12: 1ffff1103ee20001
R13: ffff8881f7138bd4 R14: dffffc0000000000 R15: 1ffff920001c6ec4
FS:  000055557dea4500(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000012000d000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000200000000300 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
Call Trace:
 <TASK>
 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+0x690/0xc40 kernel/locking/qspinlock.c:511
 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:591 [inline]
 queued_spin_lock_slowpath+0x47/0x50 arch/x86/include/asm/qspinlock.h:51
 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+0xd8/0xe0 kernel/locking/spinlock.c:178
 spin_lock_bh include/linux/spinlock.h:356 [inline]
 lock_sock_nested+0x92/0x280 net/core/sock.c:3507
 lock_sock include/net/sock.h:1769 [inline]
 tcp_recvmsg+0x1f2/0x810 net/ipv4/tcp.c:2697
 inet_recvmsg+0x13b/0x470 net/ipv4/af_inet.c:869
 sock_recvmsg_nosec net/socket.c:1020 [inline]
 sock_recvmsg net/socket.c:1038 [inline]
 sock_read_iter+0x2d3/0x380 net/socket.c:1111
 call_read_iter include/linux/fs.h:2268 [inline]
 new_sync_read fs/read_write.c:389 [inline]
 vfs_read+0x41e/0x8c0 fs/read_write.c:470
 ksys_read+0x140/0x240 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+0x2f/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:1
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f19a318d33d
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 72 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:00007fff6c378508 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 00007fff6c378610 RCX: 00007f19a318d33d
RDX: 0000000000000004 RSI: 00007fff6c37851c RDI: 0000000000000003
RBP: 0000000000000000 R08: 000000000000022c R09: 002b266532df84a6
R10: 0000011e38565779 R11: 0000000000000246 R12: 00007fff6c378930
R13: 0000000000000004 R14: 00007fff6c37851c R15: 00007fff6c3785b0
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 9828 Comm: syz-executor Not tainted 6.1.134-syzkaller-00029-ga4fc1bef0501 #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+0xcc/0x140 arch/x86/kernel/kvm.c:1058
Code: 20 f6 44 24 21 02 75 24 48 89 f8 48 c1 e8 03 42 0f b6 04 30 84 c0 75 48 0f b6 07 40 38 f0 75 a6 66 90 0f 00 2d 15 b7 13 04 f4 <eb> 9a fa 48 89 f8 48 c1 e8 03 42 0f b6 04 30 84 c0 75 3f 0f b6 07
RSP: 0018:ffffc90000006720 EFLAGS: 00000046
RAX: 0000000000000003 RBX: ffff8881f7027b80 RCX: ffffffff84efb682
RDX: dffffc0000000000 RSI: 0000000000000003 RDI: ffff8881f7027b80
RBP: ffffc900000067b0 R08: dffffc0000000000 R09: ffffed103ee04f71
R10: ffffed103ee04f71 R11: 1ffff1103ee04f70 R12: 1ffff1103ee00001
R13: ffff8881f7038bd4 R14: dffffc0000000000 R15: 1ffff92000000ce4
FS:  000055559204a500(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f3afe77fab8 CR3: 0000000128d03000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
Call Trace:
 <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+0x690/0xc40 kernel/locking/qspinlock.c:511
 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:591 [inline]
 queued_spin_lock_slowpath+0x47/0x50 arch/x86/include/asm/qspinlock.h:51
 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+0x108/0x110 kernel/locking/spinlock.c:162
 lock_timer_base+0x127/0x270 kernel/time/timer.c:1005
 __mod_timer+0x10a/0xb30 kernel/time/timer.c:1078
 add_timer+0x68/0x80 kernel/time/timer.c:1218
 __queue_delayed_work+0x173/0x200 kernel/workqueue.c:1686
 queue_delayed_work_on+0xdb/0x150 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+0x436/0x7a0 kernel/rcu/tree.c:3472
 trie_delete_elem+0x572/0x720 kernel/bpf/lpm_trie.c:545
 bpf_prog_5186c38a4019a4cb+0x42/0x46
 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+0x113/0x270 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+0x337/0x480 kernel/time/timer.c:615
 __mod_timer+0x79f/0xb30 kernel/time/timer.c:-1
 mod_timer+0x1f/0x30 kernel/time/timer.c:1172
 sk_reset_timer+0x22/0xb0 net/core/sock.c:3390
 tcp_send_delayed_ack+0x30a/0x400 net/ipv4/tcp_output.c:3965
 __tcp_ack_snd_check+0x437/0x910 net/ipv4/tcp_input.c:5615
 tcp_ack_snd_check net/ipv4/tcp_input.c:5656 [inline]
 tcp_rcv_established+0xa18/0x19f0 net/ipv4/tcp_input.c:6100
 tcp_v4_do_rcv+0x446/0xa10 net/ipv4/tcp_ipv4.c:1683
 tcp_v4_rcv+0x233c/0x2a80 net/ipv4/tcp_ipv4.c:2114
 ip_protocol_deliver_rcu+0x325/0x6e0 net/ipv4/ip_input.c:205
 ip_local_deliver_finish+0x24e/0x410 net/ipv4/ip_input.c:233
 NF_HOOK include/linux/netfilter.h:305 [inline]
 ip_local_deliver+0x1d8/0x320 net/ipv4/ip_input.c:254
 dst_input include/net/dst.h:463 [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+0x773/0x880 net/ipv4/ip_input.c:639
 ip_list_rcv+0x3da/0x420 net/ipv4/ip_input.c:674
 __netif_receive_skb_list_ptype net/core/dev.c:5628 [inline]
 __netif_receive_skb_list_core+0x59e/0x770 net/core/dev.c:5676
 __netif_receive_skb_list net/core/dev.c:5728 [inline]
 netif_receive_skb_list_internal+0x7d2/0xa60 net/core/dev.c:5819
 gro_normal_list include/net/gro.h:433 [inline]
 napi_complete_done+0x36f/0x790 net/core/dev.c:6160
 virtqueue_napi_complete drivers/net/virtio_net.c:403 [inline]
 virtnet_poll+0x991/0x1150 drivers/net/virtio_net.c:1687
 __napi_poll+0xd0/0x5e0 net/core/dev.c:6594
 napi_poll net/core/dev.c:6661 [inline]
 net_rx_action+0x49b/0xaa0 net/core/dev.c:6775
 handle_softirqs+0x1d7/0x600 kernel/softirq.c:624
 __do_softirq+0xb/0xd kernel/softirq.c:662
 do_softirq+0xc6/0x120 kernel/softirq.c:506
 </IRQ>
 <TASK>
 __local_bh_enable_ip+0x75/0x80 kernel/softirq.c:430
 local_bh_enable include/linux/bottom_half.h:33 [inline]
 __tcp_close+0xbf6/0xe90 net/ipv4/tcp.c:3049
 tcp_close+0x29/0x110 net/ipv4/tcp.c:3055
 inet_release+0x194/0x210 net/ipv4/af_inet.c:430
 inet6_release+0x57/0x70 net/ipv6/af_inet6.c:491
 __sock_release net/socket.c:652 [inline]
 sock_close+0xf1/0x290 net/socket.c:1390
 __fput+0x1fc/0x8f0 fs/file_table.c:320
 ____fput+0x15/0x20 fs/file_table.c:348
 task_work_run+0x1db/0x240 kernel/task_work.c:203
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0x9b/0xb0 kernel/entry/common.c:177
 exit_to_user_mode_prepare+0x5a/0xa0 kernel/entry/common.c:210
 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline]
 syscall_exit_to_user_mode+0x1a/0x30 kernel/entry/common.c:303
 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:87
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f3afe58d5a0
Code: 00 00 48 c7 c2 a8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d4 e8 40 46 00 00 80 3d a1 6f 1f 00 00 74 17 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 48 c3 0f 1f 80 00 00 00 00 48 83 ec 18 89 7c
RSP: 002b:00007ffd7a7327d8 EFLAGS: 00000202 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000003 RCX: 00007f3afe58d5a0
RDX: 0000000000000040 RSI: 0000000000000029 RDI: 0000000000000003
RBP: 00007ffd7a73281c R08: 00000000000002e8 R09: 0079746972756365
R10: 00007f3afe780120 R11: 0000000000000202 R12: 0000000000000100
R13: 0000000000000064 R14: 0000000000087eb9 R15: 00007ffd7a732870
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/04/27 10:49 android14-6.1 a4fc1bef0501 c6b4fb39 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: soft lockup in sock_read_iter
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.