syzbot


WARNING in inet_sock_destruct (3)

Status: fixed on 2023/06/08 14:41
Subsystems: net
[Documentation on labels]
Fix commit: 880ce5f20033 net: avoid skb end_offset change in __skb_unclone_keeptruesize()
First crash: 430d, last: 327d
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-49 WARNING in inet_sock_destruct C 728 2067d 1842d 0/3 public: reported C repro on 2019/04/12 00:00
android-44 WARNING in inet_sock_destruct 12 2076d 2288d 0/2 auto-closed as invalid on 2019/02/22 12:37
upstream WARNING in inet_sock_destruct (4) net C done 433 1h36m 308d 0/26 upstream: reported C repro on 2023/06/23 14:36
linux-5.15 WARNING in inet_sock_destruct origin:upstream C 29 6d07h 354d 0/3 upstream: reported C repro on 2023/05/08 19:19
linux-6.1 WARNING in inet_sock_destruct origin:upstream C 40 3d21h 381d 0/3 upstream: reported C repro on 2023/04/11 23:37
upstream WARNING in inet_sock_destruct (2) net C unreliable unreliable 1259 625d 1256d 0/26 closed as invalid on 2022/10/12 18:26
upstream WARNING in inet_sock_destruct net 5893 2370d 2365d 0/26 closed as invalid on 2018/01/30 22:53
linux-4.14 WARNING in inet_sock_destruct C inconclusive 1 1426d 1486d 0/1 upstream: reported C repro on 2020/04/02 03:04

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 5094 at net/ipv4/af_inet.c:154 inet_sock_destruct+0x6df/0x8a0 net/ipv4/af_inet.c:154
Modules linked in:
CPU: 0 PID: 5094 Comm: syz-executor420 Not tainted 6.4.0-rc2-syzkaller-00163-g2d1bcbc6cd70 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
RIP: 0010:inet_sock_destruct+0x6df/0x8a0 net/ipv4/af_inet.c:154
Code: ff e8 e5 b7 e1 f8 0f 0b e9 07 fe ff ff e8 d9 b7 e1 f8 0f 0b e9 3f fe ff ff e8 cd b7 e1 f8 0f 0b e9 95 fd ff ff e8 c1 b7 e1 f8 <0f> 0b e9 9f fe ff ff e8 05 7f 34 f9 e9 7a fc ff ff 4c 89 e7 e8 38
RSP: 0018:ffffc90000007de8 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 00000000fffff300 RCX: 0000000000000100
RDX: ffff88801e549dc0 RSI: ffffffff88a28b0f RDI: 0000000000000005
RBP: ffff8880238b4c80 R08: 0000000000000005 R09: 0000000000000000
R10: 00000000fffff300 R11: 0000000000000001 R12: ffff8880238b4ca8
R13: ffff8880238b4ef4 R14: ffffc90000007ed8 R15: 0000000000000003
FS:  0000555556110300(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffe4d592960 CR3: 000000007a1ea000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 __sk_destruct+0x4d/0x770 net/core/sock.c:2130
 rcu_do_batch kernel/rcu/tree.c:2115 [inline]
 rcu_core+0x806/0x1ad0 kernel/rcu/tree.c:2377
 __do_softirq+0x1d4/0x905 kernel/softirq.c:571
 invoke_softirq kernel/softirq.c:445 [inline]
 __irq_exit_rcu+0x114/0x190 kernel/softirq.c:650
 irq_exit_rcu+0x9/0x20 kernel/softirq.c:662
 sysvec_apic_timer_interrupt+0x97/0xc0 arch/x86/kernel/apic/apic.c:1106
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645
RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0x3c/0x70 kernel/locking/spinlock.c:194
Code: 74 24 10 e8 f6 da 52 f7 48 89 ef e8 1e 49 53 f7 81 e3 00 02 00 00 75 25 9c 58 f6 c4 02 75 2d 48 85 db 74 01 fb bf 01 00 00 00 <e8> df 1f 45 f7 65 8b 05 00 b2 f0 75 85 c0 74 0a 5b 5d c3 e8 6c d5
RSP: 0018:ffffc90003d7fb80 EFLAGS: 00000206
RAX: 0000000000000006 RBX: 0000000000000200 RCX: 1ffffffff1cf48c9
RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000001
RBP: ffff88801e54c568 R08: 0000000000000001 R09: 0000000000000001
R10: fffffbfff1cf4ed2 R11: 0000000000000001 R12: 0000000000000001
R13: 0000000000000000 R14: ffff88801e54c568 R15: ffff8880b993c5c0
 try_to_wake_up+0x73b/0x1c40 kernel/sched/core.c:4309
 wake_up_process kernel/sched/core.c:4441 [inline]
 wake_up_q+0x82/0xf0 kernel/sched/core.c:1029
 futex_wake+0x3ed/0x490 kernel/futex/waitwake.c:184
 do_futex+0x268/0x360 kernel/futex/syscalls.c:111
 __do_sys_futex kernel/futex/syscalls.c:183 [inline]
 __se_sys_futex kernel/futex/syscalls.c:164 [inline]
 __x64_sys_futex+0x1ca/0x4d0 kernel/futex/syscalls.c:164
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7ff450f0bd29
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 a1 15 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe4d540048 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: ffffffffffffffda RBX: 00007ff450f944ac RCX: 00007ff450f0bd29
RDX: 00000000000f4240 RSI: 0000000000000081 RDI: 00007ff450f944a8
RBP: 0000000000000003 R08: 0000000300000008 R09: 0000000400000008
R10: 00007ffe4d58e080 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ff450f944ac R14: 0000000000000004 R15: 00007ff450f944a0
 </TASK>
----------------
Code disassembly (best guess):
   0:	74 24                	je     0x26
   2:	10 e8                	adc    %ch,%al
   4:	f6 da                	neg    %dl
   6:	52                   	push   %rdx
   7:	f7 48 89 ef e8 1e 49 	testl  $0x491ee8ef,-0x77(%rax)
   e:	53                   	push   %rbx
   f:	f7 81 e3 00 02 00 00 	testl  $0x9c257500,0x200e3(%rcx)
  16:	75 25 9c
  19:	58                   	pop    %rax
  1a:	f6 c4 02             	test   $0x2,%ah
  1d:	75 2d                	jne    0x4c
  1f:	48 85 db             	test   %rbx,%rbx
  22:	74 01                	je     0x25
  24:	fb                   	sti
  25:	bf 01 00 00 00       	mov    $0x1,%edi
* 2a:	e8 df 1f 45 f7       	callq  0xf745200e <-- trapping instruction
  2f:	65 8b 05 00 b2 f0 75 	mov    %gs:0x75f0b200(%rip),%eax        # 0x75f0b236
  36:	85 c0                	test   %eax,%eax
  38:	74 0a                	je     0x44
  3a:	5b                   	pop    %rbx
  3b:	5d                   	pop    %rbp
  3c:	c3                   	retq
  3d:	e8                   	.byte 0xe8
  3e:	6c                   	insb   (%dx),%es:(%rdi)
  3f:	d5                   	(bad)

Crashes (87):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/05/19 11:35 upstream 2d1bcbc6cd70 3bb7af1d .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in inet_sock_destruct
2023/05/19 13:37 net 7e01c7f7046e 3bb7af1d .config strace log report syz C ci-upstream-net-this-kasan-gce WARNING in inet_sock_destruct
2023/05/19 11:40 net-next 90223c1136b2 3bb7af1d .config strace log report syz C ci-upstream-net-kasan-gce WARNING in inet_sock_destruct
2023/05/19 11:41 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci f1fcbaa18b28 3bb7af1d .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in inet_sock_destruct
2023/05/20 15:01 upstream d635f6cc934b 4bce1a3e .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in inet_sock_destruct
2023/05/17 09:27 upstream f1fcbaa18b28 eaac4681 .config console log report info ci-qemu-upstream WARNING in inet_sock_destruct
2023/04/30 11:41 upstream 825a0714d2b3 62df2017 .config console log report info ci-qemu-upstream WARNING in inet_sock_destruct
2023/04/26 00:18 upstream 173ea743bf7a 65320f8e .config console log report info ci-qemu-upstream WARNING in inet_sock_destruct
2023/04/21 15:10 upstream 2af3e53a4dc0 2b32bd34 .config console log report info ci-qemu-upstream WARNING in inet_sock_destruct
2023/04/21 12:00 upstream b7bc77e2f2c7 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in inet_sock_destruct
2023/04/20 17:54 upstream cb0856346a60 5ed6c74d .config console log report info ci-qemu-upstream WARNING in inet_sock_destruct
2023/04/20 04:00 upstream 789b4a41c247 a219f34e .config console log report info ci-qemu-upstream WARNING in inet_sock_destruct
2023/04/19 05:12 upstream af67688dca57 d931e9f0 .config console log report info ci-qemu-upstream WARNING in inet_sock_destruct
2023/04/18 23:17 upstream af67688dca57 d931e9f0 .config console log report info ci-qemu-upstream WARNING in inet_sock_destruct
2023/04/18 19:03 upstream 6a8f57ae2eb0 d931e9f0 .config console log report info ci-qemu-upstream WARNING in inet_sock_destruct
2023/04/18 00:18 upstream 6a8f57ae2eb0 436577a9 .config console log report info ci-qemu-upstream WARNING in inet_sock_destruct
2023/04/15 23:21 upstream a7a55e27ad72 ec410564 .config console log report info ci-qemu-upstream WARNING in inet_sock_destruct
2023/04/14 16:39 upstream 44149752e998 ec410564 .config console log report info ci-qemu-upstream WARNING in inet_sock_destruct
2023/04/13 15:57 upstream de4664485abb 3cfcaa1b .config console log report info ci-qemu-upstream WARNING in inet_sock_destruct
2023/04/12 00:26 upstream 2c40519251d6 49faf98d .config console log report info ci-qemu-upstream WARNING in inet_sock_destruct
2023/04/10 10:52 upstream 09a9639e56c0 71147e29 .config console log report info ci-qemu-upstream WARNING in inet_sock_destruct
2023/04/10 09:20 upstream 09a9639e56c0 71147e29 .config console log report info ci-qemu-upstream WARNING in inet_sock_destruct
2023/04/10 04:04 upstream 09a9639e56c0 71147e29 .config console log report info ci-qemu-upstream WARNING in inet_sock_destruct
2023/04/09 10:56 upstream cdc9718d5e59 71147e29 .config console log report info ci-qemu-upstream WARNING in inet_sock_destruct
2023/04/09 07:54 upstream a79d5c76f705 71147e29 .config console log report info ci-qemu-upstream WARNING in inet_sock_destruct
2023/04/09 07:09 upstream a79d5c76f705 71147e29 .config console log report info ci-qemu-upstream WARNING in inet_sock_destruct
2023/04/08 09:33 upstream aa318c48808c 71147e29 .config console log report info ci-qemu-upstream WARNING in inet_sock_destruct
2023/04/08 08:50 upstream aa318c48808c 71147e29 .config console log report info ci-qemu-upstream WARNING in inet_sock_destruct
2023/04/08 07:34 upstream aa318c48808c 71147e29 .config console log report info ci-qemu-upstream WARNING in inet_sock_destruct
2023/04/08 04:12 upstream aa318c48808c 71147e29 .config console log report info ci-qemu-upstream WARNING in inet_sock_destruct
2023/03/22 03:40 upstream 2faac9a98f01 8b4eb097 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in inet_sock_destruct
2023/03/13 23:08 upstream fc89d7fb499b 026e2200 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in inet_sock_destruct
2023/03/05 16:11 upstream b01fe98d34f3 f8902b57 .config console log report info ci-qemu-upstream WARNING in inet_sock_destruct
2023/03/04 20:22 upstream 0988a0ea7919 f8902b57 .config console log report info ci-qemu-upstream WARNING in inet_sock_destruct
2023/03/03 15:58 upstream 2eb29d59ddf0 f8902b57 .config console log report info ci-qemu-upstream WARNING in inet_sock_destruct
2023/03/03 15:35 upstream 2eb29d59ddf0 f8902b57 .config console log report info ci-qemu-upstream WARNING in inet_sock_destruct
2023/03/01 22:06 upstream 1d2aea1bcf68 f8902b57 .config console log report info ci-qemu-upstream WARNING in inet_sock_destruct
2023/03/01 11:38 upstream c0927a7a5391 ef65e6cb .config console log report info ci-qemu-upstream WARNING in inet_sock_destruct
2023/06/04 17:25 upstream 6f64a5ebe1dc a4ae4f42 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in inet_sock_destruct
2023/06/02 14:31 upstream 9e87b63ed37e a4ae4f42 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in inet_sock_destruct
2023/05/23 11:24 upstream ae8373a5add4 4bce1a3e .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in inet_sock_destruct
2023/05/04 11:10 upstream 1a5304fecee5 44cadb8c .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in inet_sock_destruct
2023/04/28 20:49 upstream 33afd4b76393 62df2017 .config console log report info ci-qemu-upstream-386 WARNING in inet_sock_destruct
2023/04/28 01:31 upstream 32f7ad0fbe75 cc2b6c8b .config console log report info ci-qemu-upstream-386 WARNING in inet_sock_destruct
2023/04/27 18:03 upstream 32f7ad0fbe75 cc2b6c8b .config console log report info ci-qemu-upstream-386 WARNING in inet_sock_destruct
2023/04/20 09:47 upstream cb0856346a60 a219f34e .config console log report info ci-qemu-upstream-386 WARNING in inet_sock_destruct
2023/04/17 18:29 upstream 6a8f57ae2eb0 c6ec7083 .config console log report info ci-qemu-upstream-386 WARNING in inet_sock_destruct
2023/04/16 17:42 upstream 3e7bb4f24617 ec410564 .config console log report info ci-qemu-upstream-386 WARNING in inet_sock_destruct
2023/04/10 13:26 upstream 09a9639e56c0 71147e29 .config console log report info ci-upstream-kasan-gce-386 WARNING in inet_sock_destruct
2023/04/05 17:44 upstream 76f598ba7d8e 8b834965 .config console log report info ci-qemu-upstream-386 WARNING in inet_sock_destruct
2023/04/04 08:12 upstream 148341f0a2f5 7db618d0 .config console log report info ci-qemu-upstream-386 WARNING in inet_sock_destruct
2023/04/03 01:39 upstream 6ab608fe852b f325deb0 .config console log report info ci-qemu-upstream-386 WARNING in inet_sock_destruct
2023/03/04 05:20 upstream 0988a0ea7919 f8902b57 .config console log report info ci-qemu-upstream-386 WARNING in inet_sock_destruct
2023/02/22 04:56 upstream 4a7d37e824f5 42a4d508 .config console log report info ci-upstream-kasan-gce-386 WARNING in inet_sock_destruct
2023/06/01 04:34 net-next 60cbd38bb0ad babc4389 .config console log report info ci-upstream-net-kasan-gce WARNING in inet_sock_destruct
2023/05/26 22:05 net-next 4781e965e655 cf184559 .config console log report info ci-upstream-net-kasan-gce WARNING in inet_sock_destruct
2023/05/17 18:03 net-next 833e24aeb4d9 eaac4681 .config console log report info ci-upstream-net-kasan-gce WARNING in inet_sock_destruct
2023/05/10 08:43 net-next 341d3bda8cfa 1964022b .config console log report info ci-upstream-net-kasan-gce WARNING in inet_sock_destruct
2023/04/05 21:38 net-next 054fbf7ff814 8b834965 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in inet_sock_destruct
2023/04/04 13:27 net-next b3803399196e 928dd177 .config console log report info ci-upstream-net-kasan-gce WARNING in inet_sock_destruct
2023/04/30 04:53 linux-next 92e815cf07ed 62df2017 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in inet_sock_destruct
2023/04/26 21:37 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 14f8db1c0f9a 19a3dabe .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in inet_sock_destruct
2023/04/21 23:47 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 14f8db1c0f9a 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in inet_sock_destruct
2023/04/21 17:36 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 14f8db1c0f9a 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in inet_sock_destruct
* Struck through repros no longer work on HEAD.