syzbot


BUG: soft lockup in tcp_write_timer

Status: auto-obsoleted due to no activity on 2024/11/10 05:27
Reported-by: syzbot+a34075020f9c5e580505@syzkaller.appspotmail.com
First crash: 244d, last: 132d
Similar bugs (13)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 BUG: soft lockup in tcp_write_timer (3) 2 722d 735d 0/1 upstream: reported on 2022/12/17 21:41
linux-4.14 BUG: soft lockup in tcp_write_timer 2 1688d 1767d 0/1 auto-closed as invalid on 2020/09/05 12:42
linux-4.19 BUG: soft lockup in tcp_write_timer (2) 2 1131d 1195d 0/1 auto-closed as invalid on 2022/03/16 10:56
linux-5.15 INFO: rcu detected stall in tcp_write_timer 4 68d 121d 0/3 upstream: reported on 2024/08/22 21:30
linux-4.19 BUG: soft lockup in tcp_write_timer 1 1360d 1360d 0/1 auto-closed as invalid on 2021/07/30 14:52
upstream BUG: soft lockup in tcp_write_timer net 11 1968d 1975d 0/28 auto-closed as invalid on 2019/10/25 14:11
upstream BUG: soft lockup in tcp_write_timer (4) kasan mm 4 169d 193d 26/28 fixed on 2024/07/09 19:14
upstream BUG: soft lockup in tcp_write_timer (2) kvm 1 971d 971d 0/28 auto-closed as invalid on 2022/06/24 22:31
upstream BUG: soft lockup in tcp_write_timer (3) net 6 348d 456d 0/28 closed as invalid on 2024/03/18 17:07
upstream INFO: rcu detected stall in tcp_write_timer (2) bpf 2 1418d 1474d 0/28 auto-closed as invalid on 2021/05/03 11:59
upstream INFO: rcu detected stall in tcp_write_timer (4) net 1 159d 159d 0/28 auto-obsoleted due to no activity on 2024/10/13 08:46
upstream INFO: rcu detected stall in tcp_write_timer (3) net 1 1285d 1285d 0/28 auto-closed as invalid on 2021/09/13 13:17
linux-6.1 INFO: rcu detected stall in tcp_write_timer 13 25d 184d 0/3 upstream: reported on 2024/06/21 02:50

Sample crash report:
R10: 00000000003ffbf4 R11: 0000000000000246 R12: 00000000000484df
R13: 00007ffc3f816710 R14: 00007ffc3f816730 R15: ffffffffffffffff
 </TASK>
sched: RT throttling activated
watchdog: BUG: soft lockup - CPU#1 stuck for 225s! [syz.1.1124:4769]
Modules linked in:
CPU: 1 PID: 4769 Comm: syz.1.1124 Tainted: G        W         5.15.152-syzkaller-00143-g70e1a731d986 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/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 2b 02 13 04 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:ffffc900001d0ac0 EFLAGS: 00000246
RAX: 0000000000000003 RBX: 1ffff9200003a15c RCX: ffffffff8155068f
RDX: dffffc0000000000 RSI: 0000000000000003 RDI: ffff888118f59408
RBP: ffffc900001d0b70 R08: dffffc0000000000 R09: ffffed10231eb282
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff888118f59408 R14: 0000000000000003 R15: 1ffff9200003a160
FS:  000055555673f500(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 0000000117951000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <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
 spin_lock include/linux/spinlock.h:363 [inline]
 tcp_write_timer+0x25/0x1d0 net/ipv4/tcp_timer.c:662
 call_timer_fn+0x3b/0x2d0 kernel/time/timer.c:1427
 expire_timers kernel/time/timer.c:1472 [inline]
 __run_timers+0x72a/0xa10 kernel/time/timer.c:1743
 run_timer_softirq+0x69/0xf0 kernel/time/timer.c:1756
 __do_softirq+0x26d/0x5bf kernel/softirq.c:565
 invoke_softirq kernel/softirq.c:425 [inline]
 __irq_exit_rcu+0x50/0xf0 kernel/softirq.c:648
 irq_exit_rcu+0x9/0x10 kernel/softirq.c:660
 sysvec_apic_timer_interrupt+0x9a/0xc0 arch/x86/kernel/apic/apic.c:1096
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:csd_lock_wait kernel/smp.c:440 [inline]
RIP: 0010:smp_call_function_many_cond+0x843/0x9b0 kernel/smp.c:969
Code: 45 8b 7d 00 44 89 fe 83 e6 01 31 ff e8 76 a8 0a 00 41 83 e7 01 49 bf 00 00 00 00 00 fc ff df 75 07 e8 b1 a4 0a 00 eb 38 f3 90 <42> 0f b6 04 3b 84 c0 75 11 41 f7 45 00 01 00 00 00 74 1e e8 95 a4
RSP: 0018:ffffc90000ccf740 EFLAGS: 00000293
RAX: ffffffff81659ddb RBX: 1ffff1103ee07af1 RCX: ffff88810c5a3b40
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc90000ccf858 R08: ffffffff81659daa R09: ffffed103ee271d3
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: ffff8881f703d788 R14: ffff8881f7138e80 R15: dffffc0000000000
 on_each_cpu_cond_mask+0x40/0x80 kernel/smp.c:1135
 on_each_cpu include/linux/smp.h:71 [inline]
 text_poke_sync arch/x86/kernel/alternative.c:1201 [inline]
 text_poke_bp_batch+0x1c4/0x5d0 arch/x86/kernel/alternative.c:1392
 text_poke_bp+0xc8/0x140 arch/x86/kernel/alternative.c:1606
 __static_call_transform+0x1b5/0x2c0 arch/x86/kernel/static_call.c:67
 arch_static_call_transform+0x7f/0x1c0 arch/x86/kernel/static_call.c:112
 __static_call_update+0xd2/0x5c0 kernel/static_call_inline.c:136
 tracepoint_update_call kernel/tracepoint.c:317 [inline]
 tracepoint_remove_func kernel/tracepoint.c:441 [inline]
 tracepoint_probe_unregister+0x7fb/0x900 kernel/tracepoint.c:551
 bpf_probe_unregister+0x61/0x70 kernel/trace/bpf_trace.c:1954
 bpf_raw_tp_link_release+0x63/0x90 kernel/bpf/syscall.c:2880
 bpf_link_free+0x129/0x3f0 kernel/bpf/syscall.c:2451
 bpf_link_put kernel/bpf/syscall.c:2477 [inline]
 bpf_link_release+0x170/0x180 kernel/bpf/syscall.c:2485
 __fput+0x3fe/0x910 fs/file_table.c:280
 ____fput+0x15/0x20 fs/file_table.c:308
 task_work_run+0x129/0x190 kernel/task_work.c:164
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 exit_to_user_mode_loop+0xc4/0xe0 kernel/entry/common.c:175
 exit_to_user_mode_prepare+0x5a/0xa0 kernel/entry/common.c:208
 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline]
 syscall_exit_to_user_mode+0x26/0x160 kernel/entry/common.c:301
 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f6c69bd99f9
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:00007ffc3f816618 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4
RAX: 0000000000000000 RBX: 00007f6c69d69a80 RCX: 00007f6c69bd99f9
RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003
RBP: 00007f6c69d69a80 R08: 00007f6c69d54000 R09: 00007ffc3f8168ff
R10: 00000000003ffbf4 R11: 0000000000000246 R12: 00000000000484df
R13: 00007ffc3f816710 R14: 00007ffc3f816730 R15: ffffffffffffffff
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 14 Comm: rcu_preempt Tainted: G        W         5.15.152-syzkaller-00143-g70e1a731d986 #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 5a 02 13 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:ffffc90000006fa0 EFLAGS: 00000046
RAX: 0000000000000003 RBX: 1ffff92000000df8 RCX: ffffffff8155068f
RDX: dffffc0000000000 RSI: 0000000000000003 RDI: ffff8881f7027900
RBP: ffffc90000007050 R08: dffffc0000000000 R09: ffffed103ee04f21
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff8881f7027900 R14: 0000000000000003 R15: 1ffff92000000dfc
FS:  0000000000000000(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020404030 CR3: 0000000117951000 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_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:1114
 neigh_add_timer+0x1f2/0x290 net/core/neighbour.c:283
 __neigh_event_send+0x565/0x1160
 neigh_event_send include/net/neighbour.h:446 [inline]
 neigh_resolve_output+0x1cf/0x760 net/core/neighbour.c:1488
 neigh_output include/net/neighbour.h:517 [inline]
 ip_finish_output2+0xbe3/0xf60 net/ipv4/ip_output.c:228
 __ip_finish_output+0x162/0x360
 ip_finish_output+0x31/0x210 net/ipv4/ip_output.c:316
 NF_HOOK_COND include/linux/netfilter.h:294 [inline]
 ip_output+0x1d6/0x420 net/ipv4/ip_output.c:430
 dst_output include/net/dst.h:444 [inline]
 ip_local_out net/ipv4/ip_output.c:126 [inline]
 __ip_queue_xmit+0x1105/0x1c20 net/ipv4/ip_output.c:532
 ip_queue_xmit+0x4c/0x70 net/ipv4/ip_output.c:546
 __tcp_transmit_skb+0x1e84/0x3920 net/ipv4/tcp_output.c:1402
 tcp_transmit_skb net/ipv4/tcp_output.c:1420 [inline]
 __tcp_retransmit_skb+0x942/0x12a0 net/ipv4/tcp_output.c:3265
 tcp_retransmit_skb net/ipv4/tcp_output.c:3288 [inline]
 tcp_xmit_retransmit_queue+0x5b2/0xed0 net/ipv4/tcp_output.c:3370
 tcp_tsq_write+0x1cb/0x330 net/ipv4/tcp_output.c:1016
 tcp_tsq_handler+0xa9/0x150 net/ipv4/tcp_output.c:1028
 tcp_tasklet_func+0x436/0x4b0 net/ipv4/tcp_output.c:1060
 tasklet_action_common+0x22e/0x610 kernel/softirq.c:796
 tasklet_action+0x4c/0x60 kernel/softirq.c:821
 __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_8a405b5ced52e191+0x42/0x22c
 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
 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:298
 </TASK>

Crashes (11):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/08/12 05:17 android13-5.15-lts 70e1a731d986 6f4edef4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in tcp_write_timer
2024/07/15 02:22 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 tcp_write_timer
2024/06/21 15:12 android13-5.15-lts 85445b5a2107 dac2aa43 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in tcp_write_timer
2024/06/12 10:07 android13-5.15-lts 79bd336c7a94 f815599d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in tcp_write_timer
2024/06/10 04:48 android13-5.15-lts 79bd336c7a94 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in tcp_write_timer
2024/05/31 05:16 android13-5.15-lts 424f92bcbe8f 34889ee3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in tcp_write_timer
2024/05/12 22:09 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 tcp_write_timer
2024/05/05 08:33 android13-5.15-lts 5d96939590c0 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in tcp_write_timer
2024/04/27 16:37 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 tcp_write_timer
2024/04/24 21:38 android13-5.15-lts ad06eaf051cd 8bdc0f22 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in tcp_write_timer
2024/04/21 15:00 android13-5.15-lts ad06eaf051cd af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in tcp_write_timer
* Struck through repros no longer work on HEAD.