syzbot


WARNING in free_netdev

Status: fixed on 2022/03/08 16:11
Subsystems: net
[Documentation on labels]
Fix commit: fcfb894d5952 net: bridge: fix net device refcount tracking issue in error path
First crash: 1056d, last: 1014d

Sample crash report:
 ___sys_sendmsg+0xf3/0x170 net/socket.c:2467
 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2496
 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
------------[ cut here ]------------
WARNING: CPU: 3 PID: 27990 at lib/ref_tracker.c:38 spin_unlock_irqrestore include/linux/spinlock.h:404 [inline]
WARNING: CPU: 3 PID: 27990 at lib/ref_tracker.c:38 ref_tracker_dir_exit.cold+0x137/0x1e3 lib/ref_tracker.c:37
Modules linked in:
CPU: 3 PID: 27990 Comm: kworker/u16:0 Not tainted 5.17.0-rc3-syzkaller-00048-ge3c85076d7a6 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014
Workqueue: netns cleanup_net
RIP: 0010:ref_tracker_dir_exit.cold+0x137/0x1e3 lib/ref_tracker.c:38
Code: 4c 89 ef e8 68 5e a7 f8 4c 8b 3c 24 4c 39 fd 49 8b 07 0f 85 b5 00 00 00 e8 a3 92 60 f8 48 8b 74 24 10 4c 89 e7 e8 b6 80 36 00 <0f> 0b e9 b2 9d e9 fa 4c 89 ff e8 37 5e a7 f8 e9 d4 fe ff ff e8 1d
RSP: 0018:ffffc9000418f978 EFLAGS: 00010246
RAX: 0000000000000000 RBX: dffffc0000000000 RCX: 0000000000000000
RDX: 0000000000000001 RSI: 0000000000000001 RDI: 0000000000000001
RBP: ffff888066c6a600 R08: 0000000000000001 R09: ffffffff8ffc394f
R10: 0000000000000001 R11: 0000000000088078 R12: ffff888066c6a5b8
R13: ffff888066c6a600 R14: ffff888066c6a600 R15: ffff888066c6a600
FS:  0000000000000000(0000) GS:ffff88802cd00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8a77a21338 CR3: 000000004b65e000 CR4: 0000000000150ee0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 free_netdev+0x32a/0x5b0 net/core/dev.c:10288
 netdev_run_todo+0x8a0/0xaa0 net/core/dev.c:9964
 default_device_exit_batch+0x2ff/0x3c0 net/core/dev.c:10946
 ops_exit_list+0x125/0x170 net/core/net_namespace.c:173
 cleanup_net+0x4ea/0xb00 net/core/net_namespace.c:597
 process_one_work+0x9ac/0x1650 kernel/workqueue.c:2307
 worker_thread+0x657/0x1110 kernel/workqueue.c:2454
 kthread+0x2e9/0x3a0 kernel/kthread.c:377
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
 </TASK>

Crashes (4080):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/02/10 16:33 upstream e3c85076d7a6 0b33604d .config console log report info ci-qemu-upstream WARNING in free_netdev
2022/02/10 08:02 upstream f4bc5bbb5fef 0b33604d .config console log report info ci-upstream-kasan-gce-root WARNING in free_netdev
2022/02/10 05:32 upstream f4bc5bbb5fef 0b33604d .config console log report info ci-upstream-kasan-gce-root WARNING in free_netdev
2022/02/10 02:26 upstream f4bc5bbb5fef 0b33604d .config console log report info ci-upstream-kasan-gce-root WARNING in free_netdev
2022/02/09 19:28 upstream f4bc5bbb5fef 0b33604d .config console log report info ci-upstream-kasan-gce-smack-root WARNING in free_netdev
2022/02/08 21:58 upstream e6251ab4551f 0b33604d .config console log report info ci-upstream-kasan-gce-selinux-root WARNING in free_netdev
2022/02/08 15:45 upstream 555f3d7be91a 0b33604d .config console log report info ci-qemu-upstream WARNING in free_netdev
2022/02/08 12:06 upstream 555f3d7be91a a7dab638 .config console log report info ci-qemu-upstream WARNING in free_netdev
2022/02/07 23:41 upstream dfd42facf1e4 a7dab638 .config console log report info ci-upstream-kasan-gce-root WARNING in free_netdev
2022/02/07 22:20 upstream 2ade8eef993c a7dab638 .config console log report info ci-qemu-upstream WARNING in free_netdev
2022/02/07 10:49 upstream dfd42facf1e4 a7dab638 .config console log report info ci-qemu-upstream WARNING in free_netdev
2022/02/07 06:32 upstream d8ad2ce873ab a7dab638 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in free_netdev
2022/02/06 12:25 upstream 90c9e950c0de a7dab638 .config console log report info ci-upstream-kasan-gce-selinux-root WARNING in free_netdev
2022/02/05 01:17 upstream dcb85f85fa6f e13a05ed .config console log report info ci-upstream-kasan-gce-selinux-root WARNING in free_netdev
2022/02/04 22:28 upstream cff7f2237c2b e13a05ed .config console log report info ci-qemu-upstream WARNING in free_netdev
2022/02/04 20:54 upstream dcb85f85fa6f e13a05ed .config console log report info ci-upstream-kasan-gce-root WARNING in free_netdev
2022/02/04 19:46 upstream dcb85f85fa6f e13a05ed .config console log report info ci-upstream-kasan-gce-smack-root WARNING in free_netdev
2022/02/04 18:45 upstream cff7f2237c2b e13a05ed .config console log report info ci-qemu-upstream WARNING in free_netdev
2022/02/04 17:29 upstream dcb85f85fa6f e13a05ed .config console log report info ci-upstream-kasan-gce-root WARNING in free_netdev
2022/02/04 11:29 upstream dcb85f85fa6f a3e470b2 .config console log report info ci-upstream-kasan-gce-selinux-root WARNING in free_netdev
2022/02/04 08:27 upstream 1f2cfdd349b7 30646bfe .config console log report info ci-upstream-kasan-gce-root WARNING in free_netdev
2022/02/04 02:04 upstream 1f2cfdd349b7 30646bfe .config console log report info ci-upstream-kasan-gce-root WARNING in free_netdev
2022/02/03 23:29 upstream 1f2cfdd349b7 30646bfe .config console log report info ci-upstream-kasan-gce-root WARNING in free_netdev
2022/02/03 12:45 upstream 88808fbbead4 4ebb2798 .config console log report info ci-upstream-kasan-gce-root WARNING in free_netdev
2022/02/03 01:58 upstream 27bb0b18c208 4ebb2798 .config console log report info ci-upstream-kasan-gce-root WARNING in free_netdev
2022/02/02 21:20 upstream 27bb0b18c208 4ebb2798 .config console log report info ci-upstream-kasan-gce-selinux-root WARNING in free_netdev
2022/01/17 05:08 upstream 79e06c4c4950 723cfaf0 .config console log report info ci-upstream-kasan-gce WARNING in free_netdev
2022/02/10 15:12 upstream e3c85076d7a6 0b33604d .config console log report info ci-qemu-upstream-386 WARNING in free_netdev
2022/02/09 04:46 upstream e6251ab4551f 0b33604d .config console log report info ci-qemu-upstream-386 WARNING in free_netdev
2022/02/06 20:18 upstream d8ad2ce873ab a7dab638 .config console log report info ci-qemu-upstream-386 WARNING in free_netdev
2022/02/06 15:25 upstream 90c9e950c0de a7dab638 .config console log report info ci-qemu2-arm64-mte WARNING in free_netdev
2022/02/04 12:54 upstream dcb85f85fa6f a3e470b2 .config console log report info ci-qemu-upstream-386 WARNING in free_netdev
2022/02/04 10:38 upstream dcb85f85fa6f a3e470b2 .config console log report info ci-qemu-upstream-386 WARNING in free_netdev
2022/02/03 21:32 upstream c36c04c2e132 30646bfe .config console log report info ci-qemu-upstream-386 WARNING in free_netdev
2022/02/03 20:29 upstream c36c04c2e132 30646bfe .config console log report info ci-qemu-upstream-386 WARNING in free_netdev
2022/02/03 12:14 upstream 88808fbbead4 4ebb2798 .config console log report info ci-qemu-upstream-386 WARNING in free_netdev
2022/01/15 03:44 upstream 112450df61b7 723cfaf0 .config console log report info ci-upstream-kasan-gce-386 WARNING in free_netdev
2022/02/05 23:50 net-old 59085208e4a2 a7dab638 .config console log report info ci-upstream-net-this-kasan-gce WARNING in free_netdev
2022/02/05 14:33 net-old f8d9d938514f a7dab638 .config console log report info ci-upstream-net-this-kasan-gce WARNING in free_netdev
2022/02/05 07:42 net-old f8d9d938514f e13a05ed .config console log report info ci-upstream-net-this-kasan-gce WARNING in free_netdev
2022/02/05 06:59 net-old f8d9d938514f e13a05ed .config console log report info ci-upstream-net-this-kasan-gce WARNING in free_netdev
2022/02/03 16:21 net-old 4a81f6da9cb2 4ebb2798 .config console log report info ci-upstream-net-this-kasan-gce WARNING in free_netdev
2022/02/02 23:40 net-old 3aa430d33b8d 4ebb2798 .config console log report info ci-upstream-net-this-kasan-gce WARNING in free_netdev
2022/01/19 06:55 bpf 37c8d4807d1b 731a2d23 .config console log report info ci-upstream-bpf-kasan-gce WARNING in free_netdev
2022/02/05 21:57 net-next-old ed8c8f605c0b a7dab638 .config console log report info ci-upstream-net-kasan-gce WARNING in free_netdev
2022/02/05 10:47 net-next-old ed8c8f605c0b a7dab638 .config console log report info ci-upstream-net-kasan-gce WARNING in free_netdev
2022/02/05 08:51 net-next-old ed8c8f605c0b a7dab638 .config console log report info ci-upstream-net-kasan-gce WARNING in free_netdev
2022/02/05 05:32 net-next-old 41414c9bdbb8 e13a05ed .config console log report info ci-upstream-net-kasan-gce WARNING in free_netdev
2022/02/05 03:18 net-next-old 41414c9bdbb8 e13a05ed .config console log report info ci-upstream-net-kasan-gce WARNING in free_netdev
2022/02/04 14:48 net-next-old 41414c9bdbb8 a3e470b2 .config console log report info ci-upstream-net-kasan-gce WARNING in free_netdev
2022/02/04 05:19 net-next-old 9c30918925d7 30646bfe .config console log report info ci-upstream-net-kasan-gce WARNING in free_netdev
2022/02/03 14:23 net-next-old 52dae93f3bad 4ebb2798 .config console log report info ci-upstream-net-kasan-gce WARNING in free_netdev
2022/02/02 20:16 net-next-old 000fe940e51f 4ebb2798 .config console log report info ci-upstream-net-kasan-gce WARNING in free_netdev
2022/02/02 17:53 net-next-old 000fe940e51f 4ebb2798 .config console log report info ci-upstream-net-kasan-gce WARNING in free_netdev
2022/02/02 16:45 net-next-old 000fe940e51f 4ebb2798 .config console log report info ci-upstream-net-kasan-gce WARNING in free_netdev
2022/01/25 06:21 bpf-next b4ec6a192312 2cbffd88 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in free_netdev
2022/01/11 20:12 net-next-old fe8152b38d3a 44d1319a .config console log report info ci-upstream-net-kasan-gce WARNING in free_netdev
2022/02/22 13:37 linux-next ef6b35306dd8 6e821dbf .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in free_netdev
2022/02/20 20:38 linux-next ef6b35306dd8 3cd800e4 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in free_netdev
2022/02/19 14:23 linux-next ef6b35306dd8 3cd800e4 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in free_netdev
2022/02/19 12:52 linux-next ef6b35306dd8 3cd800e4 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in free_netdev
2022/02/17 16:34 linux-next ef6b35306dd8 3cd800e4 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in free_netdev
2022/02/15 14:52 linux-next ef6b35306dd8 8b9ca619 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in free_netdev
2022/02/14 08:57 linux-next ef6b35306dd8 8b9ca619 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in free_netdev
2022/02/13 10:05 linux-next ef6b35306dd8 8b9ca619 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in free_netdev
2022/02/11 20:59 linux-next ef6b35306dd8 8b9ca619 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in free_netdev
2022/02/08 14:34 linux-next ef6b35306dd8 0b33604d .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in free_netdev
2022/02/06 04:49 linux-next ef6b35306dd8 a7dab638 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in free_netdev
* Struck through repros no longer work on HEAD.