netdevsim netdevsim0 netdevsim3 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0 netdevsim netdevsim0 netdevsim2 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0 ------------[ cut here ]------------ WARNING: CPU: 1 PID: 56 at net/netfilter/core.c:495 __nf_unregister_net_hook+0x498/0x6d0 net/netfilter/core.c:495 Modules linked in: CPU: 1 PID: 56 Comm: kworker/u4:3 Not tainted 5.18.0-syzkaller-04991-g09e545f73814 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: netns cleanup_net RIP: 0010:__nf_unregister_net_hook+0x498/0x6d0 net/netfilter/core.c:495 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 48 6b e7 f9 <0f> 0b 48 c7 c7 e0 bc 62 8d e8 7a e9 e2 01 e9 98 fd ff ff 48 89 f7 RSP: 0018:ffffc900013e7470 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff8880742cc618 RCX: 0000000000000000 RDX: ffff888018d79d80 RSI: ffffffff87924918 RDI: 0000000000000003 RBP: 0000000000000005 R08: 0000000000000000 R09: ffffffff8dbaf457 R10: ffffffff8792453f R11: 0000000000000038 R12: ffff888061b243d0 R13: 0000000000000001 R14: 0000000000000000 R15: ffff8880742cc620 FS: 0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c006a7ad90 CR3: 0000000023eae000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: nf_unregister_net_hook+0xd5/0x110 net/netfilter/core.c:533 nft_unregister_flowtable_hook net/netfilter/nf_tables_api.c:7296 [inline] nft_flowtable_event net/netfilter/nf_tables_api.c:7968 [inline] nf_tables_flowtable_event+0x230/0x460 net/netfilter/nf_tables_api.c:7992 notifier_call_chain+0xb5/0x200 kernel/notifier.c:84 call_netdevice_notifiers_info+0xb5/0x130 net/core/dev.c:1943 call_netdevice_notifiers_extack net/core/dev.c:1981 [inline] call_netdevice_notifiers net/core/dev.c:1995 [inline] unregister_netdevice_many+0x92e/0x1890 net/core/dev.c:10834 macsec_notify+0x4e3/0x710 drivers/net/macsec.c:4312 notifier_call_chain+0xb5/0x200 kernel/notifier.c:84 call_netdevice_notifiers_info+0xb5/0x130 net/core/dev.c:1943 call_netdevice_notifiers_extack net/core/dev.c:1981 [inline] call_netdevice_notifiers net/core/dev.c:1995 [inline] unregister_netdevice_many+0x92e/0x1890 net/core/dev.c:10834 unregister_netdevice_queue net/core/dev.c:10766 [inline] unregister_netdevice_queue+0x2dd/0x3c0 net/core/dev.c:10756 unregister_netdevice include/linux/netdevice.h:3018 [inline] nsim_destroy+0x3f/0x190 drivers/net/netdevsim/netdev.c:382 __nsim_dev_port_del+0x191/0x250 drivers/net/netdevsim/dev.c:1427 nsim_dev_port_del_all+0x85/0xe0 drivers/net/netdevsim/dev.c:1440 nsim_dev_reload_destroy+0x11f/0x420 drivers/net/netdevsim/dev.c:1659 nsim_dev_reload_down+0xdf/0x180 drivers/net/netdevsim/dev.c:962 devlink_reload+0x1c2/0x6b0 net/core/devlink.c:4475 devlink_pernet_pre_exit+0x17e/0x220 net/core/devlink.c:12125 ops_pre_exit_list net/core/net_namespace.c:152 [inline] cleanup_net+0x451/0xb00 net/core/net_namespace.c:582 process_one_work+0x996/0x1610 kernel/workqueue.c:2289 worker_thread+0x665/0x1080 kernel/workqueue.c:2436 kthread+0x2e9/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:302