syzbot


BUG: soft lockup in sock_write_iter

Status: premoderation: reported on 2024/03/31 05:19
Reported-by: syzbot+f4dd1dc617e6b24730cc@syzkaller.appspotmail.com
First crash: 112d, last: 15d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in sock_write_iter (3) mm netfilter C done 15 10d 75d 0/27 upstream: reported C repro on 2024/05/07 12:14
linux-5.15 INFO: rcu detected stall in sock_write_iter 1 275d 275d 0/3 auto-obsoleted due to no activity on 2024/01/28 05:21
linux-5.15 INFO: rcu detected stall in sock_write_iter (2) 1 93d 93d 0/3 upstream: reported on 2024/04/19 08:46
linux-6.1 INFO: rcu detected stall in sock_write_iter 1 108d 108d 0/3 auto-obsoleted due to no activity on 2024/07/13 13:13
upstream INFO: rcu detected stall in sock_write_iter (2) netfilter 1 261d 261d 0/27 auto-obsoleted due to no activity on 2024/01/03 00:51

Sample crash report:
RBP: 00007ffc6add17f0 R08: 00000000003ffce8 R09: 0000000000000004
R10: 00007f3b48ae121c R11: 0000000000000202 R12: 0000000000000118
R13: 00007f3b48ee0ee8 R14: 00007ffc6add1b70 R15: fffffffffffffeec
 </TASK>
watchdog: BUG: soft lockup - CPU#0 stuck for 225s! [syz-executor:277]
Modules linked in:
CPU: 0 PID: 277 Comm: syz-executor Not tainted 5.15.150-syzkaller-00330-g9044d25b8ff5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
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+0x147/0x180 arch/x86/kernel/kvm.c:918
Code: 4c 89 e8 48 c1 e8 03 42 0f b6 04 20 84 c0 44 8b 74 24 1c 75 34 41 0f b6 45 00 44 38 f0 75 10 66 90 0f 00 2d 4b 02 f3 03 fb f4 <e9> 24 ff ff ff fb e9 1e ff ff ff 44 89 e9 80 e1 07 38 c1 7c a3 4c
RSP: 0018:ffffc9000076f760 EFLAGS: 00000246
RAX: 0000000000000003 RBX: 1ffff920000edef0 RCX: ffffffff8154fbbf
RDX: dffffc0000000000 RSI: 0000000000000003 RDI: ffff88811a571dc8
RBP: ffffc9000076f810 R08: dffffc0000000000 R09: ffffed10234ae3ba
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff88811a571dc8 R14: 0000000000000003 R15: 1ffff920000edef4
FS:  000055555698d500(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005555567e84a8 CR3: 000000011a555000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 </IRQ>
 <TASK>
 pv_wait arch/x86/include/asm/paravirt.h:597 [inline]
 pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:470 [inline]
 __pv_queued_spin_lock_slowpath+0x6bc/0xc40 kernel/locking/qspinlock.c:508
 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
 spin_lock_bh include/linux/spinlock.h:368 [inline]
 lock_sock_nested+0x97/0x300 net/core/sock.c:3258
 lock_sock include/net/sock.h:1676 [inline]
 tcp_sendmsg+0x21/0x50 net/ipv4/tcp.c:1455
 inet_sendmsg+0xa1/0xc0 net/ipv4/af_inet.c:830
 sock_sendmsg_nosec net/socket.c:704 [inline]
 __sock_sendmsg net/socket.c:716 [inline]
 sock_write_iter+0x39b/0x530 net/socket.c:1079
 call_write_iter include/linux/fs.h:2204 [inline]
 new_sync_write fs/read_write.c:507 [inline]
 vfs_write+0xd5d/0x1110 fs/read_write.c:594
 ksys_write+0x199/0x2c0 fs/read_write.c:647
 __do_sys_write fs/read_write.c:659 [inline]
 __se_sys_write fs/read_write.c:656 [inline]
 __x64_sys_write+0x7b/0x90 fs/read_write.c:656
 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:0x7f3b4be55720
Code: 40 00 48 c7 c2 a8 ff ff ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 80 3d 21 0e 16 00 00 74 17 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 58 c3 0f 1f 80 00 00 00 00 48 83 ec 28 48 89
RSP: 002b:00007ffc6add1628 EFLAGS: 00000202 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00005555569a1400 RCX: 00007f3b4be55720
RDX: 0000000000000118 RSI: 00007f3b48ee0ee8 RDI: 0000000000000003
RBP: 00007ffc6add17f0 R08: 00000000003ffce8 R09: 0000000000000004
R10: 00007f3b48ae121c R11: 0000000000000202 R12: 0000000000000118
R13: 00007f3b48ee0ee8 R14: 00007ffc6add1b70 R15: fffffffffffffeec
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 17 Comm: rcu_exp_gp_kthr Not tainted 5.15.150-syzkaller-00330-g9044d25b8ff5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
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:912
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 7a 02 f3 03 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:ffffc900001cf980 EFLAGS: 00000046
RAX: 0000000000000003 RBX: 1ffff92000039f34 RCX: ffffffff8154fbbf
RDX: dffffc0000000000 RSI: 0000000000000003 RDI: ffff8881f7127900
RBP: ffffc900001cfa30 R08: dffffc0000000000 R09: ffffed103ee24f21
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff8881f7127900 R14: 0000000000000003 R15: 1ffff92000039f38
FS:  0000000000000000(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000100000001 CR3: 00000001111ee000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 pv_wait arch/x86/include/asm/paravirt.h:597 [inline]
 pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:470 [inline]
 __pv_queued_spin_lock_slowpath+0x6bc/0xc40 kernel/locking/qspinlock.c:508
 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 include/linux/spinlock_api_smp.h:143 [inline]
 _raw_spin_lock+0x139/0x1b0 kernel/locking/spinlock.c:154
 __mod_timer+0x56e/0xcf0 kernel/time/timer.c:1049
 mod_timer+0x1f/0x30 kernel/time/timer.c:1114
 sk_reset_timer+0x22/0xb0 net/core/sock.c:3141
 inet_csk_reset_xmit_timer include/net/inet_connection_sock.h:237 [inline]
 tcp_reset_xmit_timer include/net/tcp.h:1324 [inline]
 tcp_rearm_rto+0x2d6/0x390 net/ipv4/tcp_input.c:3190
 tcp_event_new_data_sent+0x242/0x3f0 net/ipv4/tcp_output.c:81
 tcp_write_xmit+0x146d/0x5e80 net/ipv4/tcp_output.c:2712
 __tcp_push_pending_frames+0x98/0x2f0 net/ipv4/tcp_output.c:2890
 tcp_push_pending_frames include/net/tcp.h:1915 [inline]
 tcp_data_snd_check net/ipv4/tcp_input.c:5495 [inline]
 tcp_rcv_established+0xd4a/0x1ac0 net/ipv4/tcp_input.c:5906
 tcp_v4_do_rcv+0x3d7/0xa00 net/ipv4/tcp_ipv4.c:1722
 tcp_v4_rcv+0x23dd/0x2a70 net/ipv4/tcp_ipv4.c:2125
 ip_protocol_deliver_rcu+0x32f/0x710 net/ipv4/ip_input.c:204
 ip_local_deliver_finish net/ipv4/ip_input.c:231 [inline]
 NF_HOOK include/linux/netfilter.h:305 [inline]
 ip_local_deliver+0x2c6/0x590 net/ipv4/ip_input.c:252
 dst_input include/net/dst.h:454 [inline]
 ip_sublist_rcv_finish net/ipv4/ip_input.c:577 [inline]
 ip_list_rcv_finish net/ipv4/ip_input.c:628 [inline]
 ip_sublist_rcv+0x7e2/0x980 net/ipv4/ip_input.c:636
 ip_list_rcv+0x422/0x470 net/ipv4/ip_input.c:671
 __netif_receive_skb_list_ptype net/core/dev.c:5535 [inline]
 __netif_receive_skb_list_core+0x6b1/0x890 net/core/dev.c:5583
 __netif_receive_skb_list net/core/dev.c:5635 [inline]
 netif_receive_skb_list_internal+0x967/0xcc0 net/core/dev.c:5726
 gro_normal_list net/core/dev.c:5880 [inline]
 napi_complete_done+0x344/0x770 net/core/dev.c:6618
 virtqueue_napi_complete drivers/net/virtio_net.c:357 [inline]
 virtnet_poll+0xbee/0x1260 drivers/net/virtio_net.c:1592
 __napi_poll+0xc4/0x5a0 net/core/dev.c:7042
 napi_poll net/core/dev.c:7109 [inline]
 net_rx_action+0x47d/0xc50 net/core/dev.c:7196
 __do_softirq+0x26d/0x5bf kernel/softirq.c:565
 do_softirq+0xf6/0x150 kernel/softirq.c:452
 </IRQ>
 <TASK>
 __local_bh_enable_ip+0x75/0x80 kernel/softirq.c:379
 __raw_spin_unlock_bh include/linux/spinlock_api_smp.h:176 [inline]
 _raw_spin_unlock_bh+0x51/0x60 kernel/locking/spinlock.c:210
 sock_hash_delete_elem+0x2a2/0x2f0 net/core/sock_map.c:945
 bpf_prog_a752366ba6835be0+0x40/0xdc8
 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_run3+0x11e/0x250 kernel/trace/bpf_trace.c:1918
 __bpf_trace_timer_start+0x2b/0x40 include/trace/events/timer.h:52
 trace_timer_start include/trace/events/timer.h:52 [inline]
 enqueue_timer+0x351/0x4c0 kernel/time/timer.c:592
 internal_add_timer kernel/time/timer.c:617 [inline]
 __mod_timer+0x8d3/0xcf0 kernel/time/timer.c:1068
 schedule_timeout+0x187/0x370 kernel/time/timer.c:1889
 synchronize_rcu_expedited_wait_once kernel/rcu/tree_exp.h:569 [inline]
 synchronize_rcu_expedited_wait kernel/rcu/tree_exp.h:620 [inline]
 rcu_exp_wait_wake kernel/rcu/tree_exp.h:687 [inline]
 rcu_exp_sel_wait_wake+0x73c/0x1b10 kernel/rcu/tree_exp.h:721
 wait_rcu_exp_gp+0x33/0x40 kernel/rcu/tree_exp.h:458
 kthread_worker_fn+0x3b0/0x830 kernel/kthread.c:792
 kthread+0x421/0x510 kernel/kthread.c:337
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
 </TASK>

Crashes (21):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/07/07 01:56 android13-5.15-lts 9044d25b8ff5 2a40360c .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_write_iter
2024/06/30 14:04 android13-5.15-lts 9044d25b8ff5 757f06b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_write_iter
2024/06/01 20:03 android13-5.15-lts 424f92bcbe8f 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sock_write_iter
2024/05/23 02:15 android13-5.15-lts 5d96939590c0 4d098039 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sock_write_iter
2024/05/19 15:43 android13-5.15-lts 5d96939590c0 c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_write_iter
2024/05/18 22:12 android13-5.15-lts 5d96939590c0 c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sock_write_iter
2024/05/16 00:53 android13-5.15-lts 5d96939590c0 ef5d53ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sock_write_iter
2024/05/15 23:47 android13-5.15-lts 5d96939590c0 ef5d53ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_write_iter
2024/05/13 22:59 android13-5.15-lts 5d96939590c0 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sock_write_iter
2024/05/13 21:13 android13-5.15-lts 5d96939590c0 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_write_iter
2024/05/09 09:27 android13-5.15-lts 5d96939590c0 05079661 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_write_iter
2024/05/07 12:02 android13-5.15-lts 5d96939590c0 cb2dcc0e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_write_iter
2024/05/07 08:26 android13-5.15-lts 5d96939590c0 fa7a5cf0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sock_write_iter
2024/04/29 12:14 android13-5.15-lts 5d96939590c0 27e33c58 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_write_iter
2024/04/29 02:26 android13-5.15-lts 5d96939590c0 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_write_iter
2024/04/17 15:08 android13-5.15-lts ad06eaf051cd acc528cb .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_write_iter
2024/04/14 06:15 android13-5.15-lts 993bed180178 c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_write_iter
2024/04/10 08:30 android13-5.15-lts 993bed180178 171ec371 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sock_write_iter
2024/04/08 06:06 android13-5.15-lts 993bed180178 ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_write_iter
2024/04/08 02:31 android13-5.15-lts 993bed180178 ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sock_write_iter
2024/03/31 05:18 android13-5.15-lts 993bed180178 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_write_iter
* Struck through repros no longer work on HEAD.