------------[ cut here ]------------ refcount_t: addition on 0; use-after-free. WARNING: CPU: 0 PID: 4432 at lib/refcount.c:25 refcount_warn_saturate+0xff/0x1a0 lib/refcount.c:25 Modules linked in: CPU: 0 PID: 4432 Comm: kworker/u4:11 Not tainted 5.15.185-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Workqueue: netns cleanup_net RIP: 0010:refcount_warn_saturate+0xff/0x1a0 lib/refcount.c:25 Code: 09 01 48 c7 c7 40 6b 59 8a e8 dd 27 bb 05 0f 0b eb e0 e8 04 42 9c fd c6 05 ae 8f 79 09 01 48 c7 c7 80 6a 59 8a e8 c1 27 bb 05 <0f> 0b eb c4 e8 e8 41 9c fd c6 05 93 8f 79 09 01 48 c7 c7 e0 6a 59 RSP: 0018:ffffc90000007908 EFLAGS: 00010246 RAX: 924895ed75f79800 RBX: 0000000000000002 RCX: ffff888028353b80 RDX: 0000000000000100 RSI: 0000000000000101 RDI: 0000000000000000 RBP: ffffc90000007a70 R08: dffffc0000000000 R09: fffff52000000e85 R10: fffff52000000e85 R11: 1ffff92000000e84 R12: ffff88801a5c1a80 R13: dffffc0000000000 R14: 0000000000000002 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000030ff0 CR3: 00000000257de000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __refcount_add include/linux/refcount.h:-1 [inline] __refcount_inc include/linux/refcount.h:250 [inline] refcount_inc include/linux/refcount.h:267 [inline] get_net include/net/net_namespace.h:252 [inline] tipc_aead_encrypt net/tipc/crypto.c:832 [inline] tipc_crypto_xmit+0x1949/0x2560 net/tipc/crypto.c:1772 tipc_bearer_xmit_skb+0x228/0x3c0 net/tipc/bearer.c:574 tipc_disc_timeout+0x568/0x6b0 net/tipc/discover.c:338 call_timer_fn+0x16c/0x530 kernel/time/timer.c:1451 expire_timers kernel/time/timer.c:1496 [inline] __run_timers+0x525/0x7c0 kernel/time/timer.c:1767 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1780 handle_softirqs+0x328/0x820 kernel/softirq.c:576 do_softirq+0x13b/0x200 kernel/softirq.c:477 __local_bh_enable_ip+0x174/0x1b0 kernel/softirq.c:401 spin_unlock_bh include/linux/spinlock.h:408 [inline] __fib6_clean_all+0x216/0x350 net/ipv6/ip6_fib.c:2261 rt6_sync_down_dev net/ipv6/route.c:4915 [inline] rt6_disable_ip+0x11f/0x690 net/ipv6/route.c:4920 addrconf_ifdown+0x149/0x1970 net/ipv6/addrconf.c:3781 addrconf_notify+0x445/0xf00 net/ipv6/addrconf.c:-1 notifier_call_chain kernel/notifier.c:83 [inline] raw_notifier_call_chain+0xcb/0x160 kernel/notifier.c:391 call_netdevice_notifiers_extack net/core/dev.c:2061 [inline] call_netdevice_notifiers net/core/dev.c:2075 [inline] dev_close_many+0x28d/0x400 net/core/dev.c:1650 unregister_netdevice_many+0x472/0x18f0 net/core/dev.c:11110 unregister_netdevice_queue+0x31c/0x360 net/core/dev.c:11067 unregister_netdevice include/linux/netdevice.h:3020 [inline] nsim_destroy+0x49/0x150 drivers/net/netdevsim/netdev.c:382 __nsim_dev_port_del+0x155/0x1c0 drivers/net/netdevsim/dev.c:1349 nsim_dev_port_del_all drivers/net/netdevsim/dev.c:1362 [inline] nsim_dev_reload_destroy+0x16c/0x240 drivers/net/netdevsim/dev.c:1561 nsim_dev_reload_down+0xf9/0x160 drivers/net/netdevsim/dev.c:883 devlink_reload+0x265/0x770 net/core/devlink.c:3963 devlink_pernet_pre_exit+0x19d/0x300 net/core/devlink.c:11543 ops_pre_exit_list net/core/net_namespace.c:162 [inline] cleanup_net+0x57b/0xb80 net/core/net_namespace.c:615 process_one_work+0x863/0x1000 kernel/workqueue.c:2310 worker_thread+0xaa8/0x12a0 kernel/workqueue.c:2457 kthread+0x436/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287