syzbot


WARNING in sk_destruct
Status: internal: reported C repro on 2022/01/17 19:25
Reported-by: syzbot+@syzkaller.appspotmail.com
Fix commit: ebdc1a030962 tcp: add a missing sk_defer_free_flush() in tcp_splice_read()
Patched on: [ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-leak ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce ci-upstream-kmsan-gce-386 ci-upstream-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-kcsan-gce ci2-upstream-usb], missing on: [ci-qemu2-riscv64]
First crash: 123d, last: 12h38m

Cause bisection: introduced by (bisect log) :
commit e4b8954074f6d0db01c8c97d338a67f9389c042f
Author: Eric Dumazet <edumazet@google.com>
Date: Tue Dec 7 01:30:37 2021 +0000

  netlink: add net device refcount tracker to struct ethnl_req_info

Crash: WARNING in free_netdev (log)
Repro: C syz .config

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 3606 at net/core/sock.c:2052 sk_destruct+0x13f/0x180 net/core/sock.c:2052
Modules linked in:
CPU: 1 PID: 3606 Comm: syz-executor505 Not tainted 5.16.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:sk_destruct+0x13f/0x180 net/core/sock.c:2052
Code: ff 83 e3 01 89 de e8 10 fe 4f fa 84 db 75 ca e8 27 fa 4f fa 4c 89 e7 e8 df a3 ff ff 5b 5d 41 5c e9 16 fa 4f fa e8 11 fa 4f fa <0f> 0b e9 28 ff ff ff 4c 89 e7 e8 c2 3e 97 fa e9 e5 fe ff ff 4c 89
RSP: 0018:ffffc90002a1fc48 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000301 RCX: 0000000000000000
RDX: ffff88801daa1d00 RSI: ffffffff8728595f RDI: ffff888075ff8d20
RBP: ffff888075ff8cc0 R08: 0000000000000000 R09: ffff888075ff8d27
R10: ffffed100ebff1a4 R11: 0000000000000000 R12: ffff888075ff8ee8
R13: ffff888075ff8cf0 R14: 0000000000000003 R15: ffff8880118eaaa0
FS:  0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020b63fe4 CR3: 000000000b88e000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __sk_free+0xef/0x3d0 net/core/sock.c:2074
 sk_free+0x78/0xa0 net/core/sock.c:2085
 sock_put include/net/sock.h:1912 [inline]
 tcp_close+0x98/0xc0 net/ipv4/tcp.c:2920
 inet_release+0x12e/0x280 net/ipv4/af_inet.c:428
 inet6_release+0x4c/0x70 net/ipv6/af_inet6.c:478
 __sock_release+0xcd/0x280 net/socket.c:650
 sock_close+0x18/0x20 net/socket.c:1318
 __fput+0x286/0x9f0 fs/file_table.c:280
 task_work_run+0xdd/0x1a0 kernel/task_work.c:164
 exit_task_work include/linux/task_work.h:32 [inline]
 do_exit+0xb29/0x2a30 kernel/exit.c:806
 do_group_exit+0xd2/0x2f0 kernel/exit.c:935
 __do_sys_exit_group kernel/exit.c:946 [inline]
 __se_sys_exit_group kernel/exit.c:944 [inline]
 __x64_sys_exit_group+0x3a/0x50 kernel/exit.c:944
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f3b64f09df9
Code: Unable to access opcode bytes at RIP 0x7f3b64f09dcf.
RSP: 002b:00007ffd95e94cd8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 00007f3b64f7d270 RCX: 00007f3b64f09df9
RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffffffffffc0 R09: 00007f3b64ecd980
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f3b64f7d270
R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000001
 </TASK>

Crashes (449):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce 2022/01/22 05:05 upstream 9b57f4589857 214351e1 .config log report syz C WARNING in sk_destruct
ci-upstream-net-this-kasan-gce 2022/01/20 04:13 net ff9fc0a31d85 5da9499f .config log report syz C WARNING in sk_destruct
ci-upstream-net-kasan-gce 2022/04/07 17:03 net-next 51454ea42c1a c6ff3e05 .config log report syz C WARNING in sk_destruct
ci-upstream-kasan-gce 2022/05/20 18:04 upstream 3d7285a335ed bd37ad7e .config log report info WARNING in sk_destruct
ci-upstream-kasan-gce-root 2022/05/19 01:24 upstream ef1302160bfb 50c53f39 .config log report info WARNING in sk_destruct
ci-upstream-kasan-gce 2022/05/18 13:43 upstream 210e04ff7681 50c53f39 .config log report info WARNING in sk_destruct
ci-upstream-kasan-gce-root 2022/05/17 20:02 upstream 42226c989789 744a39e2 .config log report info WARNING in sk_destruct
ci-upstream-kasan-gce 2022/05/16 13:23 upstream 42226c989789 744a39e2 .config log report info WARNING in sk_destruct
ci-upstream-kasan-gce-smack-root 2022/05/16 12:26 upstream 42226c989789 744a39e2 .config log report info WARNING in sk_destruct
ci-upstream-kasan-gce-root 2022/05/13 10:33 upstream 0ac824f379fb 9ad6612a .config log report info WARNING in sk_destruct
ci-qemu-upstream 2022/05/11 17:08 upstream feb9c5e19e91 beb0b407 .config log report info WARNING in sk_destruct
ci-upstream-kasan-gce 2022/05/11 02:55 upstream feb9c5e19e91 8d7b3b67 .config log report info WARNING in sk_destruct
ci-upstream-kasan-gce 2022/05/10 19:25 upstream feb9c5e19e91 8b277b8e .config log report info WARNING in sk_destruct
ci-upstream-kasan-gce 2022/05/09 22:44 upstream 9be9ed2612b5 8b277b8e .config log report info WARNING in sk_destruct
ci-qemu-upstream 2022/05/09 19:39 upstream 9be9ed2612b5 8b277b8e .config log report info WARNING in sk_destruct
ci-upstream-kasan-gce-smack-root 2022/05/09 07:00 upstream c5eb0a61238d e60b1103 .config log report info WARNING in sk_destruct
ci-upstream-kasan-gce 2022/05/08 11:25 upstream 30c8e80f7932 e60b1103 .config log report info WARNING in sk_destruct
ci-upstream-kasan-gce 2022/05/08 09:52 upstream 30c8e80f7932 e60b1103 .config log report info WARNING in sk_destruct
ci-upstream-kasan-gce-selinux-root 2022/05/08 02:23 upstream 30c8e80f7932 e60b1103 .config log report info WARNING in sk_destruct
ci-upstream-kasan-gce 2022/05/07 19:22 upstream 30c8e80f7932 e60b1103 .config log report info WARNING in sk_destruct
ci-upstream-kasan-gce-root 2022/05/07 13:08 upstream 4b97bac0756a e60b1103 .config log report info WARNING in sk_destruct
ci-upstream-kasan-gce 2022/05/07 11:51 upstream 4b97bac0756a e60b1103 .config log report info WARNING in sk_destruct
ci-upstream-kasan-gce-root 2022/05/07 04:04 upstream 4b97bac0756a e60b1103 .config log report info WARNING in sk_destruct
ci-upstream-kasan-gce 2022/05/07 01:58 upstream 4b97bac0756a e60b1103 .config log report info WARNING in sk_destruct
ci-upstream-kasan-gce-root 2022/05/06 16:13 upstream fe27d189e3f4 e60b1103 .config log report info WARNING in sk_destruct
ci-upstream-kasan-gce-root 2022/05/06 10:32 upstream fe27d189e3f4 e60b1103 .config log report info WARNING in sk_destruct
ci-upstream-kasan-gce-root 2022/05/06 06:16 upstream fe27d189e3f4 efeff0a5 .config log report info WARNING in sk_destruct
ci-upstream-kasan-gce 2022/05/06 00:34 upstream 0f5d752b1395 efeff0a5 .config log report info WARNING in sk_destruct
ci-upstream-kasan-gce-root 2022/05/05 22:27 upstream 0f5d752b1395 efeff0a5 .config log report info WARNING in sk_destruct
ci-upstream-kasan-gce 2022/05/05 12:58 upstream a7391ad35724 06089fcd .config log report info WARNING in sk_destruct
ci-upstream-kasan-gce-selinux-root 2022/05/05 09:53 upstream a7391ad35724 02ba4ad6 .config log report info WARNING in sk_destruct
ci-upstream-kasan-gce-root 2022/05/05 07:24 upstream a7391ad35724 dc9e5259 .config log report info WARNING in sk_destruct
ci-upstream-kasan-gce-selinux-root 2022/05/05 02:25 upstream a7391ad35724 dc9e5259 .config log report info WARNING in sk_destruct
ci-upstream-kasan-gce-smack-root 2022/05/04 22:44 upstream a7391ad35724 dc9e5259 .config log report info WARNING in sk_destruct
ci-upstream-kasan-gce 2022/05/04 19:36 upstream a7391ad35724 dc9e5259 .config log report info WARNING in sk_destruct
ci-upstream-kasan-gce-selinux-root 2022/05/04 01:47 upstream 107c948d1d3e dc9e5259 .config log report info WARNING in sk_destruct
ci-upstream-kasan-gce-root 2022/05/04 00:31 upstream ef8e4d3c2ab1 dc9e5259 .config log report info WARNING in sk_destruct
ci-upstream-kasan-gce-smack-root 2022/05/03 23:23 upstream ef8e4d3c2ab1 dc9e5259 .config log report info WARNING in sk_destruct
ci-upstream-kasan-gce 2022/05/03 22:08 upstream ef8e4d3c2ab1 dc9e5259 .config log report info WARNING in sk_destruct
ci-upstream-kasan-gce-386 2022/05/02 20:10 upstream 9050ba3a61a4 2df221f6 .config log report info WARNING in sk_destruct
ci-qemu-upstream-386 2022/04/06 00:11 upstream ce4c854ee868 0127c10f .config log report info WARNING in sk_destruct
ci-upstream-net-this-kasan-gce 2022/05/18 05:29 net 23dd4581350d 744a39e2 .config log report info WARNING in sk_destruct
ci-upstream-net-this-kasan-gce 2022/05/17 08:05 net da2172a9bfec 744a39e2 .config log report info WARNING in sk_destruct
ci-upstream-net-this-kasan-gce 2022/05/17 03:08 net da2172a9bfec 744a39e2 .config log report info WARNING in sk_destruct
ci-upstream-net-this-kasan-gce 2022/05/15 18:49 net 9500acc631db 744a39e2 .config log report info WARNING in sk_destruct
ci-upstream-net-this-kasan-gce 2022/05/15 06:09 net 9500acc631db 744a39e2 .config log report info WARNING in sk_destruct
ci-upstream-net-this-kasan-gce 2022/05/13 15:28 net f3f19f939c11 107f6434 .config log report info WARNING in sk_destruct
ci-upstream-net-this-kasan-gce 2022/05/10 13:08 net dc5306a8c0ea 8b277b8e .config log report info WARNING in sk_destruct
ci-upstream-net-this-kasan-gce 2022/05/09 01:59 net 1c7ab9cd98b7 e60b1103 .config log report info WARNING in sk_destruct
ci-upstream-net-this-kasan-gce 2022/05/08 12:29 net 1c7ab9cd98b7 e60b1103 .config log report info WARNING in sk_destruct
ci-upstream-net-this-kasan-gce 2022/05/08 07:45 net 1c7ab9cd98b7 e60b1103 .config log report info WARNING in sk_destruct
ci-upstream-net-this-kasan-gce 2022/05/07 17:16 net 1c7ab9cd98b7 e60b1103 .config log report info WARNING in sk_destruct
ci-upstream-net-this-kasan-gce 2022/05/07 06:11 net 1c7ab9cd98b7 e60b1103 .config log report info WARNING in sk_destruct
ci-upstream-net-this-kasan-gce 2022/05/07 00:36 net 9e6c6d17d1d6 e60b1103 .config log report info WARNING in sk_destruct
ci-upstream-net-this-kasan-gce 2022/05/06 19:46 net c88d3908516d e60b1103 .config log report info WARNING in sk_destruct
ci-upstream-net-this-kasan-gce 2022/05/06 08:57 net c88d3908516d e60b1103 .config log report info WARNING in sk_destruct
ci-upstream-net-this-kasan-gce 2022/05/05 04:26 net 205557ba9904 dc9e5259 .config log report info WARNING in sk_destruct
ci-upstream-net-this-kasan-gce 2022/05/04 11:12 net 0a806ecc4023 dc9e5259 .config log report info WARNING in sk_destruct
ci-upstream-net-this-kasan-gce 2022/05/03 19:08 net 3a58f13a881e dc9e5259 .config log report info WARNING in sk_destruct
ci-upstream-net-this-kasan-gce 2022/01/17 19:24 net 9ea674d7ca4f 731a2d23 .config log report info WARNING in sk_destruct
ci-upstream-net-kasan-gce 2022/04/26 21:43 net-next 561215482cc6 1fa34c1b .config log report info WARNING in sk_destruct
ci-upstream-linux-next-kasan-gce-root 2022/04/08 10:13 linux-next ff511c1c68a5 c6ff3e05 .config log report info WARNING in sk_destruct