syzbot


WARNING in ref_tracker_dir_exit

Status: fixed on 2022/03/08 16:11
Reported-by: syzbot+@syzkaller.appspotmail.com
Fix commit: 34ac17ecbf57 ethtool: use ethnl_parse_header_dev_put()
First crash: 236d, last: 208d

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 ref_tracker_dir_exit (log)
Repro: C syz .config

Sample crash report:
 rtnetlink_rcv_msg+0x413/0xb80 net/core/rtnetlink.c:5570
 netlink_rcv_skb+0x153/0x420 net/netlink/af_netlink.c:2494
 netlink_unicast_kernel net/netlink/af_netlink.c:1317 [inline]
 netlink_unicast+0x533/0x7d0 net/netlink/af_netlink.c:1343
 netlink_sendmsg+0x904/0xdf0 net/netlink/af_netlink.c:1919
 sock_sendmsg_nosec net/socket.c:705 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:725
------------[ cut here ]------------
WARNING: CPU: 1 PID: 981 at lib/ref_tracker.c:38 spin_unlock_irqrestore include/linux/spinlock.h:404 [inline]
WARNING: CPU: 1 PID: 981 at lib/ref_tracker.c:38 ref_tracker_dir_exit.cold+0x137/0x1e3 lib/ref_tracker.c:37
Modules linked in:
CPU: 1 PID: 981 Comm: kworker/u4:5 Not tainted 5.16.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: netns cleanup_net
RIP: 0010:ref_tracker_dir_exit.cold+0x137/0x1e3 lib/ref_tracker.c:38
Code: 4c 89 ef e8 27 29 aa f8 4c 8b 3c 24 4c 39 fd 49 8b 07 0f 85 b5 00 00 00 e8 c2 b9 62 f8 48 8b 74 24 10 4c 89 e7 e8 25 15 36 00 <0f> 0b e9 91 40 e9 fa 4c 89 ff e8 f6 28 aa f8 e9 d4 fe ff ff e8 dc
RSP: 0018:ffffc90004897970 EFLAGS: 00010246
RAX: 0000000000000000 RBX: dffffc0000000000 RCX: 0000000000000000
RDX: 0000000000000001 RSI: 0000000000000001 RDI: 0000000000000001
RBP: ffff88806ec6e600 R08: 0000000000000001 R09: ffffffff8ff9ba0f
R10: 0000000000000001 R11: 0000000000000001 R12: ffff88806ec6e5b8
R13: ffff88806ec6e600 R14: ffff88806ec6e600 R15: ffff88806ec6e600
FS:  0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f507edcd370 CR3: 000000000b88e000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 free_netdev+0x32a/0x5b0 net/core/dev.c:10280
 netdev_run_todo+0x8a0/0xaa0 net/core/dev.c:9957
 default_device_exit_batch+0x2ff/0x3c0 net/core/dev.c:10938
 ops_exit_list+0x10d/0x160 net/core/net_namespace.c:171
 cleanup_net+0x4ea/0xb00 net/core/net_namespace.c:595
 process_one_work+0x9b2/0x1660 kernel/workqueue.c:2298
 worker_thread+0x65d/0x1130 kernel/workqueue.c:2445
 kthread+0x405/0x4f0 kernel/kthread.c:327
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
 </TASK>

Crashes (16271):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-bpf-next-kasan-gce 2022/01/06 13:06 bpf-next 640a171c9347 6acc789a .config log report syz C WARNING in ref_tracker_dir_exit
ci-upstream-bpf-next-kasan-gce 2022/01/01 19:02 bpf-next e63a02348958 e1768e9c .config log report syz C WARNING in ref_tracker_dir_exit
ci-upstream-net-kasan-gce 2021/12/31 17:15 net-next af30f8eaa8fe 36bd2e48 .config log report syz C WARNING in ref_tracker_dir_exit
ci-upstream-net-kasan-gce 2021/12/27 19:21 net-next 32f52e8e78d3 5140bd58 .config log report syz C WARNING in ref_tracker_dir_exit
ci-upstream-net-kasan-gce 2021/12/23 07:20 net-next e087cba11677 6caa12e4 .config log report syz C WARNING in ref_tracker_dir_exit
ci-upstream-net-kasan-gce 2021/12/21 08:03 net-next 4b430f5c9680 62bd192b .config log report syz C WARNING in ref_tracker_dir_exit
ci-upstream-net-kasan-gce 2021/12/21 07:18 net-next 4b430f5c9680 62bd192b .config log report syz C WARNING in ref_tracker_dir_exit
ci-upstream-net-kasan-gce 2021/12/20 17:32 net-next 4b430f5c9680 021b36cb .config log report syz C WARNING in ref_tracker_dir_exit
ci-upstream-net-kasan-gce 2021/12/15 05:58 net-next 6cf7a1ac0fed f752fb53 .config log report syz C WARNING in ref_tracker_dir_exit
ci-upstream-linux-next-kasan-gce-root 2022/01/06 11:47 linux-next 7a769a3922d8 6acc789a .config log report syz C WARNING in ref_tracker_dir_exit
ci-upstream-linux-next-kasan-gce-root 2022/01/06 07:45 linux-next 7a769a3922d8 6acc789a .config log report syz C WARNING in ref_tracker_dir_exit
ci-upstream-linux-next-kasan-gce-root 2022/01/06 00:36 linux-next 7a769a3922d8 6acc789a .config log report syz C WARNING in ref_tracker_dir_exit
ci-upstream-linux-next-kasan-gce-root 2022/01/03 01:00 linux-next ea586a076e8a e1768e9c .config log report syz C WARNING in ref_tracker_dir_exit
ci-upstream-linux-next-kasan-gce-root 2022/01/02 03:43 linux-next ea586a076e8a e1768e9c .config log report syz C WARNING in ref_tracker_dir_exit
ci-upstream-linux-next-kasan-gce-root 2022/01/02 00:15 linux-next ea586a076e8a e1768e9c .config log report syz C WARNING in ref_tracker_dir_exit
ci-upstream-linux-next-kasan-gce-root 2022/01/01 20:16 linux-next ea586a076e8a e1768e9c .config log report syz C WARNING in ref_tracker_dir_exit
ci-upstream-linux-next-kasan-gce-root 2021/12/31 17:54 linux-next ea586a076e8a 36bd2e48 .config log report syz C WARNING in ref_tracker_dir_exit
ci-upstream-linux-next-kasan-gce-root 2021/12/31 17:28 linux-next ea586a076e8a 36bd2e48 .config log report syz C WARNING in ref_tracker_dir_exit
ci-upstream-linux-next-kasan-gce-root 2021/12/31 17:04 linux-next ea586a076e8a 36bd2e48 .config log report syz C WARNING in ref_tracker_dir_exit
ci-upstream-linux-next-kasan-gce-root 2021/12/29 06:31 linux-next ea586a076e8a 76c8cf06 .config log report syz C WARNING in ref_tracker_dir_exit
ci-upstream-linux-next-kasan-gce-root 2021/12/28 14:09 linux-next ea586a076e8a 6b3c5e64 .config log report syz C WARNING in ref_tracker_dir_exit
ci-upstream-linux-next-kasan-gce-root 2021/12/28 09:41 linux-next ea586a076e8a 6b3c5e64 .config log report syz C WARNING in ref_tracker_dir_exit
ci-upstream-linux-next-kasan-gce-root 2021/12/24 22:39 linux-next ea586a076e8a 6caa12e4 .config log report syz C WARNING in ref_tracker_dir_exit
ci-upstream-linux-next-kasan-gce-root 2021/12/24 05:29 linux-next 79f063d60c8c 6caa12e4 .config log report syz C WARNING in ref_tracker_dir_exit
ci-upstream-linux-next-kasan-gce-root 2021/12/22 23:08 linux-next 2bd48302750c 6caa12e4 .config log report syz C WARNING in ref_tracker_dir_exit
ci-upstream-linux-next-kasan-gce-root 2021/12/22 18:15 linux-next 2bd48302750c 6caa12e4 .config log report syz C WARNING in ref_tracker_dir_exit
ci-upstream-linux-next-kasan-gce-root 2021/12/21 05:19 linux-next 07f8c60fe60f 62bd192b .config log report syz C WARNING in ref_tracker_dir_exit
ci-upstream-linux-next-kasan-gce-root 2021/12/21 04:25 linux-next 07f8c60fe60f 62bd192b .config log report syz C WARNING in ref_tracker_dir_exit
ci-upstream-linux-next-kasan-gce-root 2021/12/20 04:42 linux-next fbf252e09678 44068e19 .config log report syz C WARNING in ref_tracker_dir_exit
ci-upstream-linux-next-kasan-gce-root 2021/12/19 02:36 linux-next fbf252e09678 44068e19 .config log report syz C WARNING in ref_tracker_dir_exit
ci-upstream-linux-next-kasan-gce-root 2021/12/19 00:50 linux-next fbf252e09678 44068e19 .config log report syz C WARNING in ref_tracker_dir_exit
ci-upstream-linux-next-kasan-gce-root 2022/01/04 03:09 linux-next ea586a076e8a 4a3f34f2 .config log report syz WARNING in ref_tracker_dir_exit
ci-upstream-linux-next-kasan-gce-root 2021/12/29 07:35 linux-next ea586a076e8a 76c8cf06 .config log report syz WARNING in ref_tracker_dir_exit
ci-upstream-linux-next-kasan-gce-root 2021/12/28 00:28 linux-next ea586a076e8a 5140bd58 .config log report syz WARNING in ref_tracker_dir_exit
ci-upstream-linux-next-kasan-gce-root 2021/12/27 08:06 linux-next ea586a076e8a e4f103c4 .config log report syz WARNING in ref_tracker_dir_exit
ci-upstream-linux-next-kasan-gce-root 2021/12/23 22:31 linux-next 79f063d60c8c 6caa12e4 .config log report syz WARNING in ref_tracker_dir_exit
ci-upstream-linux-next-kasan-gce-root 2021/12/23 15:37 linux-next 79f063d60c8c 6caa12e4 .config log report syz WARNING in ref_tracker_dir_exit
ci-upstream-linux-next-kasan-gce-root 2021/12/21 22:47 linux-next 07f8c60fe60f a938f0b8 .config log report syz WARNING in ref_tracker_dir_exit
ci-upstream-linux-next-kasan-gce-root 2021/12/21 18:34 linux-next 07f8c60fe60f a938f0b8 .config log report syz WARNING in ref_tracker_dir_exit
ci-upstream-linux-next-kasan-gce-root 2021/12/21 02:04 linux-next 07f8c60fe60f 62bd192b .config log report syz WARNING in ref_tracker_dir_exit
ci-upstream-linux-next-kasan-gce-root 2021/12/18 21:02 linux-next fbf252e09678 44068e19 .config log report syz WARNING in ref_tracker_dir_exit
ci-upstream-linux-next-kasan-gce-root 2021/12/15 02:26 linux-next ea922272cbe5 d018dd31 .config log report syz WARNING in ref_tracker_dir_exit
ci-upstream-kasan-gce-smack-root 2022/01/11 10:55 upstream fe8152b38d3a 1884f55a .config log report info WARNING in ref_tracker_dir_exit
ci-upstream-kasan-gce-smack-root 2022/01/11 10:39 upstream fe8152b38d3a 1884f55a .config log report info WARNING in ref_tracker_dir_exit
ci-upstream-kasan-gce-root 2022/01/11 10:18 upstream fe8152b38d3a 1884f55a .config log report info WARNING in ref_tracker_dir_exit
ci-upstream-kasan-gce 2022/01/11 09:20 upstream fe8152b38d3a 1884f55a .config log report info WARNING in ref_tracker_dir_exit
ci-upstream-kasan-gce-root 2022/01/11 08:30 upstream fe8152b38d3a 1884f55a .config log report info WARNING in ref_tracker_dir_exit
ci-upstream-kasan-gce-root 2022/01/11 08:18 upstream fe8152b38d3a 1884f55a .config log report info WARNING in ref_tracker_dir_exit
ci-upstream-kasan-gce-smack-root 2022/01/11 08:07 upstream fe8152b38d3a 1884f55a .config log report info WARNING in ref_tracker_dir_exit
ci-upstream-bpf-kasan-gce 2022/01/11 18:57 bpf 7d6019b602de 1884f55a .config log report info WARNING in ref_tracker_dir_exit
ci-upstream-net-this-kasan-gce 2022/01/11 17:44 net 7d6019b602de 1884f55a .config log report info WARNING in ref_tracker_dir_exit
ci-upstream-net-this-kasan-gce 2022/01/11 16:49 net 7d6019b602de 1884f55a .config log report info WARNING in ref_tracker_dir_exit
ci-upstream-net-this-kasan-gce 2022/01/11 16:17 net 7d6019b602de 1884f55a .config log report info WARNING in ref_tracker_dir_exit
ci-upstream-net-this-kasan-gce 2022/01/11 13:24 net 7d6019b602de 1884f55a .config log report info WARNING in ref_tracker_dir_exit
ci-upstream-net-this-kasan-gce 2022/01/11 09:05 net 7d6019b602de 1884f55a .config log report info WARNING in ref_tracker_dir_exit
ci-upstream-net-this-kasan-gce 2022/01/11 08:48 net 7d6019b602de 1884f55a .config log report info WARNING in ref_tracker_dir_exit
ci-upstream-net-this-kasan-gce 2022/01/11 07:26 net 7d6019b602de ddb0ab8c .config log report info WARNING in ref_tracker_dir_exit
ci-upstream-net-kasan-gce 2022/01/11 19:25 net-next fe8152b38d3a 1884f55a .config log report info WARNING in ref_tracker_dir_exit
ci-upstream-net-kasan-gce 2022/01/11 18:37 net-next fe8152b38d3a 1884f55a .config log report info WARNING in ref_tracker_dir_exit
ci-upstream-net-kasan-gce 2022/01/11 18:09 net-next fe8152b38d3a 1884f55a .config log report info WARNING in ref_tracker_dir_exit
ci-upstream-net-kasan-gce 2022/01/11 17:29 net-next fe8152b38d3a 1884f55a .config log report info WARNING in ref_tracker_dir_exit
ci-upstream-net-kasan-gce 2022/01/11 17:07 net-next fe8152b38d3a 1884f55a .config log report info WARNING in ref_tracker_dir_exit
ci-upstream-bpf-next-kasan-gce 2022/01/11 15:48 bpf-next 775a64e3845c 1884f55a .config log report info WARNING in ref_tracker_dir_exit
ci-upstream-net-kasan-gce 2022/01/11 15:16 net-next fe8152b38d3a 1884f55a .config log report info WARNING in ref_tracker_dir_exit
ci-upstream-bpf-next-kasan-gce 2022/01/11 14:53 bpf-next 775a64e3845c 1884f55a .config log report info WARNING in ref_tracker_dir_exit
ci-upstream-net-kasan-gce 2022/01/11 14:32 net-next fe8152b38d3a 1884f55a .config log report info WARNING in ref_tracker_dir_exit
ci-upstream-bpf-next-kasan-gce 2022/01/11 13:54 bpf-next 775a64e3845c 1884f55a .config log report info WARNING in ref_tracker_dir_exit
ci-upstream-net-kasan-gce 2022/01/11 13:00 net-next fe8152b38d3a 1884f55a .config log report info WARNING in ref_tracker_dir_exit
ci-upstream-net-kasan-gce 2022/01/11 12:29 net-next fe8152b38d3a 1884f55a .config log report info WARNING in ref_tracker_dir_exit
ci-upstream-net-kasan-gce 2022/01/11 11:41 net-next fe8152b38d3a 1884f55a .config log report info WARNING in ref_tracker_dir_exit
ci-upstream-net-kasan-gce 2022/01/11 11:18 net-next fe8152b38d3a 1884f55a .config log report info WARNING in ref_tracker_dir_exit
ci-upstream-net-kasan-gce 2022/01/11 09:50 net-next fe8152b38d3a 1884f55a .config log report info WARNING in ref_tracker_dir_exit
ci-upstream-net-kasan-gce 2022/01/11 07:52 net-next fe8152b38d3a 1884f55a .config log report info WARNING in ref_tracker_dir_exit
ci-upstream-bpf-next-kasan-gce 2022/01/11 07:03 bpf-next 775a64e3845c ddb0ab8c .config log report info WARNING in ref_tracker_dir_exit
ci-upstream-bpf-next-kasan-gce 2022/01/11 06:28 bpf-next 775a64e3845c ddb0ab8c .config log report info WARNING in ref_tracker_dir_exit
ci-upstream-net-kasan-gce 2022/01/11 05:25 net-next fe8152b38d3a ddb0ab8c .config log report info WARNING in ref_tracker_dir_exit
ci-upstream-net-kasan-gce 2022/01/11 05:12 net-next 8aaaf2f3af2a ddb0ab8c .config log report info WARNING in ref_tracker_dir_exit
ci-upstream-bpf-next-kasan-gce 2022/01/11 04:11 bpf-next 775a64e3845c ddb0ab8c .config log report info WARNING in ref_tracker_dir_exit
ci-upstream-net-kasan-gce 2022/01/11 03:34 net-next 8aaaf2f3af2a ddb0ab8c .config log report info WARNING in ref_tracker_dir_exit
ci-upstream-bpf-next-kasan-gce 2022/01/11 02:34 bpf-next 775a64e3845c ddb0ab8c .config log report info WARNING in ref_tracker_dir_exit
ci-upstream-net-kasan-gce 2022/01/11 01:43 net-next 8aaaf2f3af2a ddb0ab8c .config log report info WARNING in ref_tracker_dir_exit
ci-upstream-net-kasan-gce 2022/01/11 01:02 net-next 8aaaf2f3af2a ddb0ab8c .config log report info WARNING in ref_tracker_dir_exit
ci-upstream-net-kasan-gce 2022/01/11 00:09 net-next 8aaaf2f3af2a ddb0ab8c .config log report info WARNING in ref_tracker_dir_exit
ci-upstream-net-kasan-gce 2022/01/10 23:12 net-next 8aaaf2f3af2a ddb0ab8c .config log report info WARNING in ref_tracker_dir_exit
ci-upstream-net-kasan-gce 2022/01/10 22:00 net-next 8aaaf2f3af2a ddb0ab8c .config log report info WARNING in ref_tracker_dir_exit
ci-upstream-net-kasan-gce 2022/01/10 21:10 net-next 8aaaf2f3af2a ddb0ab8c .config log report info WARNING in ref_tracker_dir_exit
ci-upstream-net-kasan-gce 2022/01/10 21:10 net-next 8aaaf2f3af2a ddb0ab8c .config log report info WARNING in ref_tracker_dir_exit
ci-upstream-net-kasan-gce 2022/01/10 19:10 net-next 8aaaf2f3af2a ddb0ab8c .config log report info WARNING in ref_tracker_dir_exit
ci-upstream-linux-next-kasan-gce-root 2022/01/11 12:05 linux-next a70bf4a85b43 1884f55a .config log report info WARNING in ref_tracker_dir_exit
ci-upstream-linux-next-kasan-gce-root 2022/01/10 23:00 linux-next 57c149e506d5 ddb0ab8c .config log report info WARNING in ref_tracker_dir_exit
ci-upstream-linux-next-kasan-gce-root 2022/01/10 20:06 linux-next 57c149e506d5 ddb0ab8c .config log report info WARNING in ref_tracker_dir_exit
ci-upstream-linux-next-kasan-gce-root 2021/12/14 00:30 linux-next ea922272cbe5 5d14b1ea .config log report info WARNING in ref_tracker_dir_exit