------------[ cut here ]------------ WARNING: CPU: 2 PID: 16436 at net/netfilter/core.c:494 __nf_unregister_net_hook+0x498/0x6d0 net/netfilter/core.c:494 Modules linked in: CPU: 2 PID: 16436 Comm: kworker/u16:6 Not tainted 5.17.0-rc6-syzkaller-00066-g5859a2b19911 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014 Workqueue: netns cleanup_net RIP: 0010:__nf_unregister_net_hook+0x498/0x6d0 net/netfilter/core.c:494 Code: c1 ea 03 0f b6 14 02 48 89 c8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 13 02 00 00 4c 63 6b 1c e9 4d ff ff ff e8 b8 00 08 fa <0f> 0b 48 c7 c7 80 91 3c 8d e8 2a b5 dd 01 e9 98 fd ff ff 48 89 f7 RSP: 0018:ffffc9000070f8f8 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff888025ab2818 RCX: 0000000000000000 RDX: ffff8880239fa080 RSI: ffffffff876fe248 RDI: 0000000000000003 RBP: 0000000000000005 R08: 0000000000000000 R09: ffffc9000070f837 R10: ffffffff876fde6f R11: 000000000000006d R12: ffff888042b383e0 R13: 0000000000000001 R14: 0000000000000000 R15: ffff888025ab2820 FS: 0000000000000000(0000) GS:ffff88802cd00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000558fb4709a9a CR3: 00000000192b3000 CR4: 0000000000150ee0 Call Trace: nf_unregister_net_hook+0xd5/0x110 net/netfilter/core.c:532 nft_unregister_flowtable_hook net/netfilter/nf_tables_api.c:7210 [inline] nft_flowtable_event net/netfilter/nf_tables_api.c:7882 [inline] nf_tables_flowtable_event+0x230/0x460 net/netfilter/nf_tables_api.c:7906 notifier_call_chain+0xb5/0x200 kernel/notifier.c:84 call_netdevice_notifiers_info+0xb5/0x130 net/core/dev.c:1919 call_netdevice_notifiers_extack net/core/dev.c:1931 [inline] call_netdevice_notifiers net/core/dev.c:1945 [inline] unregister_netdevice_many+0x964/0x18d0 net/core/dev.c:10415 sit_exit_batch_net+0x530/0x750 net/ipv6/sit.c:1950 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