------------[ cut here ]------------ refcount_t: addition on 0; use-after-free. WARNING: CPU: 0 PID: 14293 at lib/refcount.c:25 refcount_warn_saturate+0xfa/0x1d0 lib/refcount.c:25 Modules linked in: CPU: 0 UID: 0 PID: 14293 Comm: kworker/u8:15 Not tainted 6.15.0-syzkaller-08297-ge0797d3b91de #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Workqueue: netns cleanup_net RIP: 0010:refcount_warn_saturate+0xfa/0x1d0 lib/refcount.c:25 Code: 00 00 e8 19 6f 00 fd 5b 41 5e e9 81 eb a6 06 cc e8 0b 6f 00 fd c6 05 e7 f2 ca 0a 01 90 48 c7 c7 00 19 e2 8b e8 57 5b c4 fc 90 <0f> 0b 90 90 eb d7 e8 eb 6e 00 fd c6 05 c8 f2 ca 0a 01 90 48 c7 c7 RSP: 0018:ffffc90000007828 EFLAGS: 00010246 RAX: d1ec82c6d74c5200 RBX: 0000000000000002 RCX: ffff888027b18000 RDX: 0000000000000100 RSI: 0000000000000000 RDI: 0000000000000002 RBP: ffffc900000079b0 R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffffbfff1bfa66c R12: ffff888063b32080 R13: dffffc0000000000 R14: ffff888063b321ec R15: ffff88807bd44800 FS: 0000000000000000(0000) GS:ffff888125c64000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd012f7d2d8 CR3: 000000003478c000 CR4: 00000000003526f0 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:366 [inline] refcount_inc include/linux/refcount.h:383 [inline] get_net include/net/net_namespace.h:268 [inline] tipc_aead_encrypt net/tipc/crypto.c:821 [inline] tipc_crypto_xmit+0x1820/0x22c0 net/tipc/crypto.c:1761 tipc_bearer_xmit_skb+0x245/0x400 net/tipc/bearer.c:572 tipc_disc_timeout+0x580/0x6d0 net/tipc/discover.c:338 call_timer_fn+0x17e/0x5f0 kernel/time/timer.c:1747 expire_timers kernel/time/timer.c:1798 [inline] __run_timers kernel/time/timer.c:2372 [inline] __run_timer_base+0x61a/0x860 kernel/time/timer.c:2384 run_timer_base kernel/time/timer.c:2393 [inline] run_timer_softirq+0xb7/0x180 kernel/time/timer.c:2403 handle_softirqs+0x286/0x870 kernel/softirq.c:579 __do_softirq kernel/softirq.c:613 [inline] invoke_softirq kernel/softirq.c:453 [inline] __irq_exit_rcu+0xca/0x1f0 kernel/softirq.c:680 irq_exit_rcu+0x9/0x30 kernel/softirq.c:696 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1050 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1050 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:lock_acquire+0x175/0x360 kernel/locking/lockdep.c:5875 Code: 00 00 00 00 9c 8f 44 24 30 f7 44 24 30 00 02 00 00 0f 85 cd 00 00 00 f7 44 24 08 00 02 00 00 74 01 fb 65 48 8b 05 bb aa fd 10 <48> 3b 44 24 58 0f 85 f2 00 00 00 48 83 c4 60 5b 41 5c 41 5d 41 5e RSP: 0018:ffffc9000c71f018 EFLAGS: 00000206 RAX: d1ec82c6d74c5200 RBX: 0000000000000000 RCX: d1ec82c6d74c5200 RDX: 0000000000030000 RSI: ffffffff8db59fcc RDI: ffffffff8be26380 RBP: ffffffff8216178d R08: ffffc9000c71ee38 R09: 0000000000000020 R10: dffffc0000000000 R11: ffffffff819e8590 R12: 0000000000000000 R13: ffffffff8e257160 R14: 0000000000000001 R15: 0000000000000246 fs_reclaim_acquire+0x99/0x100 mm/page_alloc.c:4073 might_alloc include/linux/sched/mm.h:318 [inline] slab_pre_alloc_hook mm/slub.c:4098 [inline] slab_alloc_node mm/slub.c:4176 [inline] kmem_cache_alloc_node_noprof+0x47/0x3c0 mm/slub.c:4248 __alloc_skb+0x112/0x2d0 net/core/skbuff.c:660 alloc_skb include/linux/skbuff.h:1336 [inline] nlmsg_new include/net/netlink.h:1041 [inline] rtmsg_ifinfo_build_skb+0x84/0x260 net/core/rtnetlink.c:4390 rtmsg_ifinfo_event net/core/rtnetlink.c:4432 [inline] rtmsg_ifinfo+0x8c/0x1a0 net/core/rtnetlink.c:4441 dev_close_many+0x27f/0x410 net/core/dev.c:1784 unregister_netdevice_many_notify+0x619/0x2320 net/core/dev.c:12038 unregister_netdevice_many net/core/dev.c:12139 [inline] unregister_netdevice_queue+0x33c/0x380 net/core/dev.c:11983 unregister_netdevice include/linux/netdevice.h:3379 [inline] nsim_destroy+0x1f6/0x670 drivers/net/netdevsim/netdev.c:1068 __nsim_dev_port_del+0x14d/0x1b0 drivers/net/netdevsim/dev.c:1428 nsim_dev_port_del_all drivers/net/netdevsim/dev.c:1440 [inline] nsim_dev_reload_destroy+0x288/0x490 drivers/net/netdevsim/dev.c:1661 nsim_dev_reload_down+0x8a/0xc0 drivers/net/netdevsim/dev.c:968 devlink_reload+0x1b6/0x8d0 net/devlink/dev.c:461 devlink_pernet_pre_exit+0x1d9/0x3d0 net/devlink/core.c:509 ops_pre_exit_list net/core/net_namespace.c:162 [inline] ops_undo_list+0x187/0x990 net/core/net_namespace.c:235 cleanup_net+0x4c5/0x8a0 net/core/net_namespace.c:686 process_one_work kernel/workqueue.c:3238 [inline] process_scheduled_works+0xae1/0x17b0 kernel/workqueue.c:3321 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3402 kthread+0x70e/0x8a0 kernel/kthread.c:464 ret_from_fork+0x3fc/0x770 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 ---------------- Code disassembly (best guess): 0: 00 00 add %al,(%rax) 2: 00 00 add %al,(%rax) 4: 9c pushf 5: 8f 44 24 30 pop 0x30(%rsp) 9: f7 44 24 30 00 02 00 testl $0x200,0x30(%rsp) 10: 00 11: 0f 85 cd 00 00 00 jne 0xe4 17: f7 44 24 08 00 02 00 testl $0x200,0x8(%rsp) 1e: 00 1f: 74 01 je 0x22 21: fb sti 22: 65 48 8b 05 bb aa fd mov %gs:0x10fdaabb(%rip),%rax # 0x10fdaae5 29: 10 * 2a: 48 3b 44 24 58 cmp 0x58(%rsp),%rax <-- trapping instruction 2f: 0f 85 f2 00 00 00 jne 0x127 35: 48 83 c4 60 add $0x60,%rsp 39: 5b pop %rbx 3a: 41 5c pop %r12 3c: 41 5d pop %r13 3e: 41 5e pop %r14