team0 (unregistering): Port device team_slave_1 removed team0 (unregistering): Port device team_slave_0 removed ------------[ cut here ]------------ ida_free called for id=1292 which is not allocated. WARNING: CPU: 0 PID: 16977 at lib/idr.c:592 ida_free+0x1f9/0x2e0 lib/idr.c:592 Modules linked in: CPU: 0 UID: 0 PID: 16977 Comm: kworker/u32:12 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Workqueue: netns cleanup_net RIP: 0010:ida_free+0x1f9/0x2e0 lib/idr.c:592 Code: 77 f6 41 83 fe 3e 76 72 e8 e4 ca 77 f6 48 8b 7c 24 28 4c 89 ee e8 07 39 0d 00 90 48 c7 c7 c0 c1 cf 8c 89 ee e8 a8 a5 36 f6 90 <0f> 0b 90 90 e8 be ca 77 f6 48 b8 00 00 00 00 00 fc ff df 48 01 c3 RSP: 0018:ffffc900045178c0 EFLAGS: 00010286 RAX: 0000000000000000 RBX: 1ffff920008a2f19 RCX: ffffffff81796528 RDX: ffff888023ea8000 RSI: ffffffff81796535 RDI: 0000000000000001 RBP: 000000000000050c R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff88804bcf5800 R13: 0000000000000293 R14: 000000000000010c R15: ffff88804bcf5820 FS: 0000000000000000(0000) GS:ffff888097c79000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000056006acf1950 CR3: 0000000067044000 CR4: 0000000000352ef0 Call Trace: proc_free_inum fs/proc/generic.c:216 [inline] pde_put fs/proc/generic.c:696 [inline] pde_put+0xa9/0x1d0 fs/proc/generic.c:693 remove_proc_entry+0x2d3/0x530 fs/proc/generic.c:739 can_remove_proc+0x343/0x450 net/can/proc.c:503 can_pernet_exit+0x16/0xf0 net/can/af_can.c:826 ops_exit_list net/core/net_namespace.c:199 [inline] ops_undo_list+0x2eb/0xab0 net/core/net_namespace.c:252 cleanup_net+0x41b/0x8b0 net/core/net_namespace.c:695 process_one_work+0x9cf/0x1b70 kernel/workqueue.c:3263 process_scheduled_works kernel/workqueue.c:3346 [inline] worker_thread+0x6c8/0xf10 kernel/workqueue.c:3427 kthread+0x3c2/0x780 kernel/kthread.c:463 ret_from_fork+0x56d/0x730 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245