syzbot


WARNING in inet_sock_destruct

Status: fixed on 2025/01/27 09:36
Bug presence: origin:upstream
Labels: missing-backport
[Documentation on labels]
Reported-by: syzbot+c5cee91f2c5d71790061@syzkaller.appspotmail.com
Fix commit: 456f08d24afa tcp_bpf: Fix the sk_mem_uncharge logic in tcp_bpf_sendmsg
First crash: 723d, last: 110d
Fix bisection: fixed by (bisect log) :
commit 456f08d24afa51b5eb816c42e4ca1c44a247bd42
Author: Zijian Zhang <zijianzhang@bytedance.com>
Date: Wed Oct 16 23:48:38 2024 +0000

  tcp_bpf: Fix the sk_mem_uncharge logic in tcp_bpf_sendmsg

  
Bug presence (3)
Date Name Commit Repro Result
2024/12/15 linux-6.1.y (ToT) 52f863f820fd C [report] WARNING in inet_sock_destruct
2023/09/16 upstream (ToT) 57d88e8a5974 C [report] WARNING in inet_sock_destruct
2024/12/15 upstream (ToT) 2d8308bf5b67 C Didn't crash
Similar bugs (9)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-49 WARNING in inet_sock_destruct C 728 2410d 2184d 0/3 public: reported C repro on 2019/04/12 00:00
linux-6.1 WARNING in inet_sock_destruct (2) origin:lts-only C error 4 21d 66d 0/3 upstream: reported C repro on 2025/01/28 09:26
android-44 WARNING in inet_sock_destruct 12 2418d 2630d 0/2 auto-closed as invalid on 2019/02/22 12:37
upstream WARNING in inet_sock_destruct (4) net C done 6295 6h26m 651d 0/28 upstream: reported C repro on 2023/06/23 14:36
upstream WARNING in inet_sock_destruct (3) net C 87 670d 772d 22/28 fixed on 2023/06/08 14:41
linux-5.15 WARNING in inet_sock_destruct origin:lts-only C inconclusive 2049 4d01h 697d 0/3 upstream: reported C repro on 2023/05/08 19:19
upstream WARNING in inet_sock_destruct (2) net C unreliable unreliable 1259 968d 1599d 0/28 closed as invalid on 2022/10/12 18:26
upstream WARNING in inet_sock_destruct net 5893 2712d 2707d 0/28 closed as invalid on 2018/01/30 22:53
linux-4.14 WARNING in inet_sock_destruct C inconclusive 1 1768d 1828d 0/1 upstream: reported C repro on 2020/04/02 03:04
Fix bisection attempts (5)
Created Duration User Patch Repo Result
2025/01/25 16:16 5h02m bisect fix linux-6.1.y OK (1) job log
2023/11/24 21:34 1h47m bisect fix linux-6.1.y OK (0) job log log
2023/10/21 14:30 1h01m bisect fix linux-6.1.y OK (0) job log log
2023/08/09 07:32 5h57m bisect fix linux-6.1.y OK (0) job log log
2023/06/19 05:29 59m bisect fix linux-6.1.y OK (0) job log log

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 3591 at net/ipv4/af_inet.c:154 inet_sock_destruct+0x6e7/0x7f0
Modules linked in:
CPU: 0 PID: 3591 Comm: syz-executor240 Not tainted 6.1.53-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023
RIP: 0010:inet_sock_destruct+0x6e7/0x7f0 net/ipv4/af_inet.c:154
Code: ff ff e8 8c 69 70 f8 0f 0b e9 21 fe ff ff e8 80 69 70 f8 0f 0b 41 80 3c 2c 00 0f 85 4c fe ff ff e9 4f fe ff ff e8 69 69 70 f8 <0f> 0b e9 bb fe ff ff 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c 0e fc ff
RSP: 0018:ffffc90000007b50 EFLAGS: 00010246
RAX: ffffffff8919aac7 RBX: 00000000fffffd00 RCX: ffff888015b63b80
RDX: 0000000080000100 RSI: 00000000fffffd00 RDI: 0000000000000000
RBP: ffff88807eee0cc0 R08: ffffffff8919a97c R09: ffffed100fddc1e7
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff1100fddc19d
R13: ffff88807eee11a8 R14: ffff88807eee0ce8 R15: ffff88807eee0cd2
FS:  00007fee1586e6c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555556920ce8 CR3: 000000001b332000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 __sk_destruct+0x50/0x5f0 net/core/sock.c:2129
 rcu_do_batch kernel/rcu/tree.c:2251 [inline]
 rcu_core+0xa9a/0x1790 kernel/rcu/tree.c:2511
 __do_softirq+0x2e9/0xa4c kernel/softirq.c:571
 invoke_softirq kernel/softirq.c:445 [inline]
 __irq_exit_rcu+0x155/0x240 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:1106
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:649
RIP: 0010:sk_alloc+0x0/0x350 net/core/sock.c:2087
Code: 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 89 f9 80 e1 07 38 c1 7c a1 e8 3e 72 6b f9 eb 9a e8 17 be 10 02 0f 1f 80 00 00 00 00 <55> 41 57 41 56 41 55 41 54 53 48 83 ec 10 4c 89 44 24 08 49 89 cd
RSP: 0018:ffffc90003cefd50 EFLAGS: 00000293
RAX: ffffffff8940c5bb RBX: ffffffff8e3a9590 RCX: ffffffff8e3a9440
RDX: 0000000000000cc0 RSI: 000000000000000a RDI: ffff888074798000
RBP: ffffffff8e3a9440 R08: 0000000000000000 R09: fffffbfff1ce766e
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 0000000000000006 R14: 0000000000000006 R15: 1ffff1100e6ebd80
 inet6_create+0x617/0xf50 net/ipv6/af_inet6.c:192
 __sock_create+0x460/0x8d0 net/socket.c:1520
 sock_create net/socket.c:1571 [inline]
 __sys_socket_create net/socket.c:1608 [inline]
 __sys_socket+0x136/0x3a0 net/socket.c:1636
 __do_sys_socket net/socket.c:1649 [inline]
 __se_sys_socket net/socket.c:1647 [inline]
 __x64_sys_socket+0x76/0x80 net/socket.c:1647
 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+0x63/0xcd
RIP: 0033:0x7fee158ae5a9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 1a 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:00007fee1586e228 EFLAGS: 00000246 ORIG_RAX: 0000000000000029
RAX: ffffffffffffffda RBX: 00007fee159383e8 RCX: 00007fee158ae5a9
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 000000000000000a
RBP: 00007fee159383e0 R08: 00007ffff69698e7 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fee159052c0
R13: 00007fee159383ec R14: 00007ffff6969800 R15: 00007ffff69698e8
 </TASK>
----------------
Code disassembly (best guess):
   0:	8d 65 d8             	lea    -0x28(%rbp),%esp
   3:	5b                   	pop    %rbx
   4:	41 5c                	pop    %r12
   6:	41 5d                	pop    %r13
   8:	41 5e                	pop    %r14
   a:	41 5f                	pop    %r15
   c:	5d                   	pop    %rbp
   d:	c3                   	ret
   e:	89 f9                	mov    %edi,%ecx
  10:	80 e1 07             	and    $0x7,%cl
  13:	38 c1                	cmp    %al,%cl
  15:	7c a1                	jl     0xffffffb8
  17:	e8 3e 72 6b f9       	call   0xf96b725a
  1c:	eb 9a                	jmp    0xffffffb8
  1e:	e8 17 be 10 02       	call   0x210be3a
  23:	0f 1f 80 00 00 00 00 	nopl   0x0(%rax)
* 2a:	55                   	push   %rbp <-- trapping instruction
  2b:	41 57                	push   %r15
  2d:	41 56                	push   %r14
  2f:	41 55                	push   %r13
  31:	41 54                	push   %r12
  33:	53                   	push   %rbx
  34:	48 83 ec 10          	sub    $0x10,%rsp
  38:	4c 89 44 24 08       	mov    %r8,0x8(%rsp)
  3d:	49 89 cd             	mov    %rcx,%r13

Crashes (631):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/09/16 03:03 linux-6.1.y 09045dae0d90 0b6a67ac .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in inet_sock_destruct
2024/11/28 16:44 linux-6.1.y e4d90d63d385 5df23865 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in inet_sock_destruct
2024/04/21 22:58 linux-6.1.y 6741e066ec76 af24b050 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in inet_sock_destruct
2024/04/21 20:47 linux-6.1.y 6741e066ec76 af24b050 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in inet_sock_destruct
2024/03/27 08:59 linux-6.1.y e5cd595e23c1 454571b6 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in inet_sock_destruct
2024/03/22 19:08 linux-6.1.y d7543167affd 4b6cdce6 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in inet_sock_destruct
2023/12/26 10:34 linux-6.1.y 4aa6747d9352 fb427a07 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in inet_sock_destruct
2023/05/19 13:51 linux-6.1.y fa74641fb6b9 3bb7af1d .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in inet_sock_destruct
2023/06/19 11:45 linux-6.1.y ca87e77a2ef8 f3921d4d .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in inet_sock_destruct
2024/03/10 09:10 linux-6.1.y 61adba85cc40 6ee49f2e .config console log report syz [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in inet_sock_destruct
2024/10/26 20:16 linux-6.1.y 7ec6f9fa3d97 65e8686b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in inet_sock_destruct
2024/09/20 16:30 linux-6.1.y e526b12bf916 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in inet_sock_destruct
2024/09/20 16:22 linux-6.1.y e526b12bf916 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in inet_sock_destruct
2024/09/19 12:51 linux-6.1.y e526b12bf916 c673ca06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in inet_sock_destruct
2024/09/17 13:47 linux-6.1.y 5f55cad62cc9 c673ca06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in inet_sock_destruct
2024/09/17 11:56 linux-6.1.y 5f55cad62cc9 c673ca06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in inet_sock_destruct
2024/09/17 11:56 linux-6.1.y 5f55cad62cc9 c673ca06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in inet_sock_destruct
2024/09/15 15:46 linux-6.1.y 5f55cad62cc9 08d8a733 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in inet_sock_destruct
2024/09/12 23:45 linux-6.1.y 5f55cad62cc9 60e1a995 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in inet_sock_destruct
2024/09/10 00:47 linux-6.1.y 5ca5b389fddf 073f8be2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in inet_sock_destruct
2024/08/31 14:06 linux-6.1.y 311d8503ef9f 1eda0d14 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in inet_sock_destruct
2024/07/25 12:37 linux-6.1.y c18e82d3ee44 466a14e5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in inet_sock_destruct
2024/07/25 12:31 linux-6.1.y c18e82d3ee44 466a14e5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in inet_sock_destruct
2024/07/24 18:06 linux-6.1.y 9b3f9a5b12dc d1a1b0ca .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in inet_sock_destruct
2024/07/24 08:23 linux-6.1.y 9b3f9a5b12dc 57b2edb1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in inet_sock_destruct
2024/07/24 08:20 linux-6.1.y 9b3f9a5b12dc 57b2edb1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in inet_sock_destruct
2024/07/23 17:59 linux-6.1.y 9b3f9a5b12dc e50e8da5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in inet_sock_destruct
2024/07/23 17:56 linux-6.1.y 9b3f9a5b12dc e50e8da5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in inet_sock_destruct
2024/07/23 01:51 linux-6.1.y 9b3f9a5b12dc 708c10c4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in inet_sock_destruct
2024/07/22 15:25 linux-6.1.y 9b3f9a5b12dc df655b64 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in inet_sock_destruct
2024/07/22 15:24 linux-6.1.y 9b3f9a5b12dc df655b64 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in inet_sock_destruct
2024/07/20 11:36 linux-6.1.y 9b3f9a5b12dc b88348e9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in inet_sock_destruct
2024/07/20 09:52 linux-6.1.y 9b3f9a5b12dc b88348e9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in inet_sock_destruct
2023/12/26 06:16 linux-6.1.y 4aa6747d9352 fb427a07 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in inet_sock_destruct
2024/11/28 15:39 linux-6.1.y e4d90d63d385 5df23865 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in inet_sock_destruct
2024/10/26 11:22 linux-6.1.y 7ec6f9fa3d97 65e8686b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in inet_sock_destruct
2024/10/20 01:44 linux-6.1.y 54d90d17e8ce cd6fc0a3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in inet_sock_destruct
2024/10/16 09:02 linux-6.1.y aa4cd140bba5 bde2d81c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in inet_sock_destruct
2024/10/06 19:35 linux-6.1.y aa4cd140bba5 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in inet_sock_destruct
2024/09/22 16:39 linux-6.1.y e526b12bf916 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in inet_sock_destruct
2024/09/22 14:47 linux-6.1.y e526b12bf916 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in inet_sock_destruct
2024/09/20 09:16 linux-6.1.y e526b12bf916 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in inet_sock_destruct
2024/09/20 09:03 linux-6.1.y e526b12bf916 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in inet_sock_destruct
2024/09/20 08:55 linux-6.1.y e526b12bf916 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in inet_sock_destruct
2024/09/19 09:43 linux-6.1.y e526b12bf916 c673ca06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in inet_sock_destruct
2024/09/17 09:36 linux-6.1.y 5f55cad62cc9 c673ca06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in inet_sock_destruct
2024/09/17 07:51 linux-6.1.y 5f55cad62cc9 c673ca06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in inet_sock_destruct
2024/09/15 09:59 linux-6.1.y 5f55cad62cc9 08d8a733 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in inet_sock_destruct
2024/09/09 09:53 linux-6.1.y 5ca5b389fddf 9750182a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in inet_sock_destruct
2024/08/31 16:29 linux-6.1.y 311d8503ef9f 1eda0d14 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in inet_sock_destruct
2024/08/31 16:28 linux-6.1.y 311d8503ef9f 1eda0d14 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in inet_sock_destruct
2024/07/31 18:20 linux-6.1.y c1cec4dad96b 6fde257d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in inet_sock_destruct
2024/07/28 18:58 linux-6.1.y c1cec4dad96b 46eb10b7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in inet_sock_destruct
2023/04/11 23:36 linux-6.1.y 543aff194ab6 49faf98d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in inet_sock_destruct
* Struck through repros no longer work on HEAD.