syzbot


BUG: soft lockup in sock_read_iter

Status: auto-obsoleted due to no activity on 2024/11/14 07:45
Reported-by: syzbot+4ddd190227bf287c3259@syzkaller.appspotmail.com
First crash: 230d, last: 99d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in sock_read_iter net 1 778d 778d 0/28 auto-obsoleted due to no activity on 2022/12/05 11:10

Sample crash report:
watchdog: BUG: soft lockup - CPU#0 stuck for 225s! [syz-executor:276]
Modules linked in:
CPU: 0 PID: 276 Comm: syz-executor Tainted: G        W         5.15.153-syzkaller-00176-g88e96b82205f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/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 e5 7d 5d
RSP: 0018:ffffc90000a97680 EFLAGS: 00000282
RAX: 0000000000000000 RBX: 00000000fffff854 RCX: ffffffff81550dbf
RDX: dffffc0000000000 RSI: 0000000000000003 RDI: ffff888118593b08
RBP: ffffc90000a97770 R08: dffffc0000000000 R09: ffffed10230b2762
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8881f7038ad4
R13: 1ffff110230b2761 R14: 1ffff1103ee00001 R15: ffff888118593b08
FS:  00005555567c4500(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2ea18ff8 CR3: 0000000119b42000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 </IRQ>
 <TASK>
 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:3269
 lock_sock include/net/sock.h:1676 [inline]
 tcp_recvmsg+0x226/0x7f0 net/ipv4/tcp.c:2561
 inet_recvmsg+0x158/0x500 net/ipv4/af_inet.c:861
 sock_recvmsg_nosec net/socket.c:966 [inline]
 sock_recvmsg net/socket.c:984 [inline]
 sock_read_iter+0x353/0x480 net/socket.c:1057
 call_read_iter include/linux/fs.h:2198 [inline]
 new_sync_read fs/read_write.c:404 [inline]
 vfs_read+0xa7e/0xd40 fs/read_write.c:485
 ksys_read+0x199/0x2c0 fs/read_write.c:623
 __do_sys_read fs/read_write.c:633 [inline]
 __se_sys_read fs/read_write.c:631 [inline]
 __x64_sys_read+0x7b/0x90 fs/read_write.c:631
 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:0x7f93abc9b3bd
Code: a8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb b5 e8 78 47 00 00 0f 1f 84 00 00 00 00 00 80 3d 81 41 17 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:00007ffc3f1fcbf8 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 0000000000080000 RCX: 00007f93abc9b3bd
RDX: 0000000000000004 RSI: 00007ffc3f1fcc0c RDI: 0000000000000003
RBP: 0000000000000000 R08: 00007ffc3f24b080 R09: 00007ffc3f24b0b0
R10: 0000000000003008 R11: 0000000000000246 R12: 00007ffc3f1fd000
R13: 0000000000000004 R14: 00007ffc3f1fcc0c R15: 00007ffc3f1fcca0
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 14 Comm: rcu_preempt Tainted: G        W         5.15.153-syzkaller-00176-g88e96b82205f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/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 0a fd 12 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:ffffc900001cfae0 EFLAGS: 00000046
RAX: 0000000000000003 RBX: 1ffff92000039f60 RCX: ffffffff81550dbf
RDX: dffffc0000000000 RSI: 0000000000000003 RDI: ffff8881f7127900
RBP: ffffc900001cfb90 R08: dffffc0000000000 R09: ffffed103ee24f21
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff8881f7127900 R14: 0000000000000003 R15: 1ffff92000039f64
FS:  0000000000000000(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fffe8af7e18 CR3: 0000000112829000 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_flags include/linux/spinlock.h:199 [inline]
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:119 [inline]
 _raw_spin_lock_irqsave+0x1a0/0x210 kernel/locking/spinlock.c:162
 lock_timer_base+0x12f/0x270 kernel/time/timer.c:952
 __mod_timer+0x1c9/0xcf0 kernel/time/timer.c:1025
 mod_timer+0x1f/0x30 kernel/time/timer.c:1119
 sk_reset_timer+0x22/0xb0 net/core/sock.c:3152
 tcp_send_delayed_ack+0x2e9/0x3e0 net/ipv4/tcp_output.c:3965
 __tcp_ack_snd_check+0x41f/0x970 net/ipv4/tcp_input.c:5526
 tcp_rcv_established+0x10f1/0x1ac0 net/ipv4/tcp_input.c:5956
 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:7199
 __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_map_delete net/core/sock_map.c:426 [inline]
 sock_map_delete_elem+0xcb/0x130 net/core/sock_map.c:448
 bpf_prog_2c29ac5cdc6b1842+0x3a/0x750
 bpf_dispatcher_nop_func include/linux/bpf.h:785 [inline]
 __bpf_prog_run include/linux/filter.h:621 [inline]
 bpf_prog_run include/linux/filter.h:635 [inline]
 __bpf_trace_run kernel/trace/bpf_trace.c:1880 [inline]
 bpf_trace_run3+0x194/0x250 kernel/trace/bpf_trace.c:1918
 __bpf_trace_timer_start+0x2b/0x40 include/trace/events/timer.h:52
 __traceiter_timer_start+0x7f/0xd0 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:1919
 rcu_gp_fqs_loop+0x2af/0xf80 kernel/rcu/tree.c:1972
 rcu_gp_kthread+0xa4/0x350 kernel/rcu/tree.c:2145
 kthread+0x421/0x510 kernel/kthread.c:337
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:299
 </TASK>

Crashes (10):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/08/16 07:40 android13-5.15-lts 88e96b82205f e4bacdaf .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_read_iter
2024/08/06 01:53 android13-5.15-lts 70e1a731d986 e1bdb00a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sock_read_iter
2024/08/04 20:54 android13-5.15-lts 70e1a731d986 1786a2a8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_read_iter
2024/07/28 06:46 android13-5.15-lts 4edafe6c0231 46eb10b7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_read_iter
2024/07/14 08:56 android13-5.15-lts db06c48ab67e eaeb5c15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_read_iter
2024/07/01 09:15 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_read_iter
2024/05/27 22:45 android13-5.15-lts 424f92bcbe8f 761766e6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sock_read_iter
2024/04/25 08:24 android13-5.15-lts ad06eaf051cd 8bdc0f22 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sock_read_iter
2024/04/24 13:50 android13-5.15-lts ad06eaf051cd 21339d7b .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sock_read_iter
2024/04/07 09:28 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_read_iter
* Struck through repros no longer work on HEAD.