syzbot


WARNING in tcp_retransmit_timer

Status: closed as invalid on 2022/11/15 19:19
Subsystems: net
[Documentation on labels]
First crash: 636d, last: 548d
Cause bisection: introduced by (bisect log) [merge commit]:
commit d589ae0d44607a0af65b83113e4cfba1a8af7eb3
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date: Fri Apr 1 23:20:00 2022 +0000

  Merge tag 'for-5.18/block-2022-04-01' of git://git.kernel.dk/linux-block

Crash: WARNING in tcp_retransmit_timer (log)
Repro: syz .config
  
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 WARNING in tcp_retransmit_timer C done 215 1676d 1687d 1/1 fixed on 2019/12/09 13:28
upstream WARNING in tcp_retransmit_timer (2) net syz inconclusive 1 280d 514d 0/26 closed as invalid on 2023/10/27 14:39
android-414 WARNING in tcp_retransmit_timer C 478 1676d 1687d 0/1 public: reported C repro on 2019/09/10 12:00

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 3616 at net/ipv4/tcp_timer.c:470 tcp_retransmit_timer+0x1de9/0x2890
Modules linked in:

CPU: 0 PID: 3616 Comm: syz-executor394 Not tainted 6.1.0-rc1-syzkaller-00427-gd47136c28015 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022
RIP: 0010:tcp_retransmit_timer+0x1de9/0x2890 net/ipv4/tcp_timer.c:470
Code: 21 c5 8b be 58 08 00 00 48 c7 c2 80 21 c5 8b e8 fd 5d 97 f8 e9 a4 f0 ff ff e8 63 ae b7 f8 0f 0b e9 75 e4 ff ff e8 57 ae b7 f8 <0f> 0b 48 8b 5c 24 20 e9 46 ff ff ff 44 89 f1 80 e1 07 38 c1 0f 8c
RSP: 0018:ffffc90000007a60 EFLAGS: 00010246
RAX: ffffffff88d1f6a9 RBX: ffff888022a65680 RCX: ffff888017a557c0
RDX: 0000000080000103 RSI: 0000000000000001 RDI: ffff888022a65680
RBP: ffffc90000007b60 R08: ffffffff88d1da55 R09: ffffffff88d208f6
R10: 0000000000000004 R11: ffff888017a557c0 R12: ffff888022a65400
R13: ffff888022a65d4c R14: ffff888022a65530 R15: dffffc0000000000
FS:  0000555556a3e300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000002001f000 CR3: 0000000021e37000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 tcp_write_timer+0x176/0x280 net/ipv4/tcp_timer.c:637
 call_timer_fn+0xf5/0x210 kernel/time/timer.c:1474
 expire_timers kernel/time/timer.c:1519 [inline]
 __run_timers+0x76a/0x980 kernel/time/timer.c:1790
 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1803
 __do_softirq+0x277/0x75b kernel/softirq.c:571
 __irq_exit_rcu+0xec/0x170 kernel/softirq.c:650
 irq_exit_rcu+0x5/0x20 kernel/softirq.c:662
 sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1107
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:649
RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0xd4/0x130 kernel/locking/spinlock.c:194
Code: 9c 8f 44 24 20 42 80 3c 23 00 74 08 4c 89 f7 e8 02 a5 8d f7 f6 44 24 21 02 75 4e 41 f7 c7 00 02 00 00 74 01 fb bf 01 00 00 00 <e8> 67 05 0c f7 65 8b 05 68 a4 b1 75 85 c0 74 3f 48 c7 04 24 0e 36
RSP: 0018:ffffc90003c2fb60 EFLAGS: 00000206
RAX: db80c1850ffb7b00 RBX: 1ffff92000785f70 RCX: 0000000000000000
RDX: dffffc0000000000 RSI: 0000000000000000 RDI: 0000000000000001
RBP: ffffc90003c2fbf0 R08: dffffc0000000000 R09: ffffed100efc2129
R10: ffffed100efc2129 R11: 1ffff1100efc2128 R12: dffffc0000000000
R13: 1ffff92000785f6c R14: ffffc90003c2fb80 R15: 0000000000000246
 spin_unlock_irqrestore include/linux/spinlock.h:405 [inline]
 do_notify_parent_cldstop+0x82f/0x9d0 kernel/signal.c:2191
 ptrace_stop+0x439/0x970 kernel/signal.c:2294
 ptrace_do_notify kernel/signal.c:2345 [inline]
 ptrace_notify+0x221/0x340 kernel/signal.c:2357
 ptrace_report_syscall include/linux/ptrace.h:420 [inline]
 ptrace_report_syscall_entry include/linux/ptrace.h:457 [inline]
 syscall_trace_enter kernel/entry/common.c:65 [inline]
 __syscall_enter_from_user_work kernel/entry/common.c:94 [inline]
 syscall_enter_from_user_mode+0x86/0x1d0 kernel/entry/common.c:112
 do_syscall_64+0xc/0x70 arch/x86/entry/common.c:76
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f92cdf6bcb7
Code: 89 7c 24 10 48 89 4c 24 18 e8 35 4e 02 00 4c 8b 54 24 18 8b 54 24 14 41 89 c0 48 8b 74 24 08 8b 7c 24 10 b8 3d 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 89 44 24 10 e8 65 4e 02 00 8b 44
RSP: 002b:00007ffc318840e0 EFLAGS: 00000293 ORIG_RAX: 000000000000003d
RAX: ffffffffffffffda RBX: 000000000000d72c RCX: 00007f92cdf6bcb7
RDX: 0000000040000001 RSI: 00007ffc31884134 RDI: 00000000ffffffff
RBP: 0000000000000012 R08: 0000000000000000 R09: 0000000000000010
R10: 0000000000000000 R11: 0000000000000293 R12: 00007ffc31884134
R13: 00007ffc31884190 R14: 0000000000000005 R15: 00007ffc31884170
 </TASK>
----------------
Code disassembly (best guess):
   0:	9c                   	pushfq
   1:	8f 44 24 20          	popq   0x20(%rsp)
   5:	42 80 3c 23 00       	cmpb   $0x0,(%rbx,%r12,1)
   a:	74 08                	je     0x14
   c:	4c 89 f7             	mov    %r14,%rdi
   f:	e8 02 a5 8d f7       	callq  0xf78da516
  14:	f6 44 24 21 02       	testb  $0x2,0x21(%rsp)
  19:	75 4e                	jne    0x69
  1b:	41 f7 c7 00 02 00 00 	test   $0x200,%r15d
  22:	74 01                	je     0x25
  24:	fb                   	sti
  25:	bf 01 00 00 00       	mov    $0x1,%edi
* 2a:	e8 67 05 0c f7       	callq  0xf70c0596 <-- trapping instruction
  2f:	65 8b 05 68 a4 b1 75 	mov    %gs:0x75b1a468(%rip),%eax        # 0x75b1a49e
  36:	85 c0                	test   %eax,%eax
  38:	74 3f                	je     0x79
  3a:	48                   	rex.W
  3b:	c7                   	.byte 0xc7
  3c:	04 24                	add    $0x24,%al
  3e:	0e                   	(bad)
  3f:	36                   	ss

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/10/23 11:29 upstream d47136c28015 c0b80a55 .config strace log report syz C [disk image] [vmlinux] ci-upstream-kasan-gce-smack-root WARNING in tcp_retransmit_timer
2022/08/15 17:26 upstream 7ebfc85e2cd7 8dfcaa3d .config strace log report syz C ci-upstream-kasan-gce-root WARNING in tcp_retransmit_timer
2022/09/30 10:22 linux-next aaa11ce2ffc8 1d385642 .config strace log report syz C [disk image] [vmlinux] ci-upstream-linux-next-kasan-gce-root WARNING in tcp_retransmit_timer
2022/07/27 01:50 upstream 5de64d44968e 279b89c2 .config strace log report syz ci-upstream-kasan-gce WARNING in tcp_retransmit_timer
2022/07/27 01:09 upstream 5de64d44968e 279b89c2 .config strace log report syz ci-upstream-kasan-gce-root WARNING in tcp_retransmit_timer
2022/07/27 01:44 net-old 9b134b1694ec 279b89c2 .config console log report syz ci-upstream-net-this-kasan-gce WARNING in tcp_retransmit_timer
2022/07/27 01:49 net-next-old 3c47fb2f4c4d 279b89c2 .config console log report syz ci-upstream-net-kasan-gce WARNING in tcp_retransmit_timer
2022/07/27 00:43 upstream 5de64d44968e 279b89c2 .config console log report info ci-upstream-kasan-gce-root WARNING in tcp_retransmit_timer
* Struck through repros no longer work on HEAD.