syzbot


BUG: soft lockup in sys_sendto

Status: auto-obsoleted due to no activity on 2024/09/16 21:53
Reported-by: syzbot+a012b3a0de0296a6bbba@syzkaller.appspotmail.com
First crash: 126d, last: 126d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-10 BUG: soft lockup in sys_sendto 2 433d 470d 0/2 auto-obsoleted due to no activity on 2023/11/14 13:19
upstream INFO: rcu detected stall in sys_sendto (6) net 1 334d 334d 0/28 closed as invalid on 2024/02/01 10:31
linux-6.1 INFO: rcu detected stall in sys_sendto origin:upstream C error 1 46d 270d 0/3 upstream: reported C repro on 2024/01/26 15:19
linux-5.15 INFO: rcu detected stall in sys_sendto 1 69d 69d 0/3 upstream: reported on 2024/08/14 09:09
upstream INFO: rcu detected stall in sys_sendto (7) usb C error 78 13h28m 154d 0/28 upstream: reported C repro on 2024/05/21 18:44
upstream INFO: rcu detected stall in sys_sendto (5) perf 7 995d 1116d 0/28 closed as invalid on 2022/02/08 10:00

Sample crash report:
watchdog: BUG: soft lockup - CPU#1 stuck for 225s! [syz-executor.1:13668]
Modules linked in:
CPU: 1 PID: 13668 Comm: syz-executor.1 Not tainted 5.15.149-syzkaller-00165-g85445b5a2107 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/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:ffffc90000dc74c0 EFLAGS: 00000246
RAX: 0000000000000003 RBX: 1ffff920001b8e9c RCX: ffffffff8154fb7f
RDX: dffffc0000000000 RSI: 0000000000000003 RDI: ffff888118f89408
RBP: ffffc90000dc7570 R08: dffffc0000000000 R09: ffffed10231f1282
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff888118f89408 R14: 0000000000000003 R15: 1ffff920001b8ea0
FS:  00007fbb090eb6c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2e523000 CR3: 0000000121f80000 CR4: 00000000003506a0
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]
 sk_stream_wait_memory+0x80b/0xd70 net/core/stream.c:145
 tcp_sendmsg_locked+0x1468/0x3a90 net/ipv4/tcp.c:1418
 tcp_sendmsg+0x2f/0x50 net/ipv4/tcp.c:1456
 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]
 __sys_sendto+0x564/0x720 net/socket.c:2058
 __do_sys_sendto net/socket.c:2070 [inline]
 __se_sys_sendto net/socket.c:2066 [inline]
 __x64_sys_sendto+0xe5/0x100 net/socket.c:2066
 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:0x7fbb09d70f29
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fbb090eb0c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 00007fbb09ea7f80 RCX: 00007fbb09d70f29
RDX: 0000000000002acf RSI: 00000000200012c0 RDI: 0000000000000005
RBP: 00007fbb09de0074 R08: 0000000000000000 R09: 0000000000000027
R10: 0000000000000011 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007fbb09ea7f80 R15: 00007fff5827fe88
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 13677 Comm: syz-executor.4 Not tainted 5.15.149-syzkaller-00165-g85445b5a2107 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/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: 0000:ffffc90000006d60 EFLAGS: 00000046
RAX: 0000000000000003 RBX: 1ffff92000000db0 RCX: ffffffff8154fb7f
RDX: dffffc0000000000 RSI: 0000000000000003 RDI: ffff8881f70378c0
RBP: ffffc90000006e10 R08: dffffc0000000000 R09: ffffed103ee06f19
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff8881f70378c0 R14: 0000000000000003 R15: 1ffff92000000db4
FS:  00007f9dccfae6c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000012b267000 CR4: 00000000003506b0
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
 raw_spin_rq_lock_nested kernel/sched/core.c:489 [inline]
 raw_spin_rq_lock kernel/sched/sched.h:1352 [inline]
 rq_lock kernel/sched/sched.h:1660 [inline]
 ttwu_queue kernel/sched/core.c:3908 [inline]
 try_to_wake_up+0x625/0x1160 kernel/sched/core.c:4251
 default_wake_function+0x43/0x50 kernel/sched/core.c:6928
 woken_wake_function+0x4a/0x70 kernel/sched/wait.c:487
 __wake_up_common+0x25e/0x460 kernel/sched/wait.c:109
 __wake_up_common_lock kernel/sched/wait.c:139 [inline]
 __wake_up_sync_key+0x1a3/0x3d0 kernel/sched/wait.c:209
 sock_def_readable+0x154/0x3b0 net/core/sock.c:3094
 tcp_data_ready+0x2c7/0x540 net/ipv4/tcp_input.c:5020
 tcp_data_queue+0x1eef/0x6850 net/ipv4/tcp_input.c:5090
 tcp_rcv_established+0x90f/0x1ac0 net/ipv4/tcp_input.c:5989
 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_rcv_finish net/ipv4/ip_input.c:447 [inline]
 NF_HOOK include/linux/netfilter.h:305 [inline]
 ip_rcv+0x16e/0x310 net/ipv4/ip_input.c:566
 __netif_receive_skb_one_core net/core/dev.c:5492 [inline]
 __netif_receive_skb+0x1c6/0x530 net/core/dev.c:5606
 process_backlog+0x31c/0x650 net/core/dev.c:6483
 __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_586ab708469db861+0x41/0x114
 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_sched_switch+0xb/0x10 include/trace/events/sched.h:220
 __traceiter_sched_switch+0x85/0xc0 include/trace/events/sched.h:220
 trace_sched_switch include/trace/events/sched.h:220 [inline]
 __schedule+0x134b/0x1590 kernel/sched/core.c:6509
 schedule+0x11f/0x1e0 kernel/sched/core.c:6595
 exit_to_user_mode_loop+0x4d/0xe0 kernel/entry/common.c:163
 exit_to_user_mode_prepare+0x5a/0xa0 kernel/entry/common.c:208
 irqentry_exit_to_user_mode+0x9/0x20 kernel/entry/common.c:314
 irqentry_exit+0x12/0x40 kernel/entry/common.c:405
 sysvec_apic_timer_interrupt+0x55/0xc0 arch/x86/kernel/apic/apic.c:1096
 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0033:0x7f9dcdc33f29
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f9dccfae178 EFLAGS: 00000246
RAX: 0000000000000001 RBX: 00007f9dcdd6af88 RCX: 00007f9dcdc33f29
RDX: 00000000000f4240 RSI: 0000000000000081 RDI: 00007f9dcdd6af8c
RBP: 00007f9dcdd6af80 R08: 00007fff4c9780b0 R09: 00007f9dccfae6c0
R10: ffffffffffffffff R11: 0000000000000246 R12: 00007f9dcdd6af8c
R13: 000000000000000b R14: 00007fff4c8cf420 R15: 00007fff4c8cf508
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/06/18 21:43 android13-5.15-lts 85445b5a2107 639d6cdf .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sys_sendto
* Struck through repros no longer work on HEAD.