------------[ cut here ]------------ refcount_t: addition on 0; use-after-free. WARNING: CPU: 0 PID: 14365 at lib/refcount.c:25 refcount_warn_saturate+0xfa/0x1d0 lib/refcount.c:25 Modules linked in: CPU: 0 UID: 0 PID: 14365 Comm: kworker/u8:2 Not tainted 6.15.0-syzkaller-12058-g64980441d269 #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 09 2d ff fc 5b 41 5e e9 d1 4a a7 06 cc e8 fb 2c ff fc c6 05 63 ca c9 0a 01 90 48 c7 c7 c0 38 e2 8b e8 17 db c2 fc 90 <0f> 0b 90 90 eb d7 e8 db 2c ff fc c6 05 44 ca c9 0a 01 90 48 c7 c7 RSP: 0018:ffffc90000007828 EFLAGS: 00010246 RAX: f0fd2bbdced2c900 RBX: 0000000000000002 RCX: ffff8880794fbc00 RDX: 0000000000000100 RSI: 0000000000000000 RDI: 0000000000000002 RBP: ffffc900000079b0 R08: ffff8880b8624293 R09: 1ffff110170c4852 R10: dffffc0000000000 R11: ffffed10170c4853 R12: ffff88807b2b2080 R13: dffffc0000000000 R14: ffff88807b2b21ec R15: ffff88805aef1000 FS: 0000000000000000(0000) GS:ffff888125c55000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000030a1affc CR3: 0000000032e80000 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+0x17b/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:preempt_schedule_irq+0xb0/0x150 kernel/sched/core.c:7108 Code: 24 20 f6 44 24 21 02 74 0c 90 0f 0b 48 f7 03 08 00 00 00 74 64 bf 01 00 00 00 e8 4b 0b 2a f6 e8 a6 1d 61 f6 fb bf 01 00 00 00 1b ab ff ff 48 c7 44 24 40 00 00 00 00 9c 8f 44 24 40 8b 44 24 RSP: 0018:ffffc9000bc573a0 EFLAGS: 00000286 RAX: f0fd2bbdced2c900 RBX: 0000000000000000 RCX: f0fd2bbdced2c900 RDX: 0000000000000006 RSI: ffffffff8d97cb27 RDI: 0000000000000001 RBP: ffffc9000bc57450 R08: ffffffff8fa100f7 R09: 1ffffffff1f4201e R10: dffffc0000000000 R11: fffffbfff1f4201f R12: 0000000000000000 R13: 0000000000000000 R14: dffffc0000000000 R15: 1ffff9200178ae74 irqentry_exit+0x6f/0x90 kernel/entry/common.c:307 asm_sysvec_reschedule_ipi+0x1a/0x20 arch/x86/include/asm/idtentry.h:707 RIP: 0010:lockdep_unregister_key+0x2c5/0x310 kernel/locking/lockdep.c:6619 Code: 65 48 8b 05 0d 56 fe 10 48 3b 44 24 10 0f 84 26 fe ff ff e8 bd 4d c7 09 e8 e8 4e c7 09 41 f7 c7 00 02 00 00 74 bd fb 40 84 ed <75> bc eb cd 90 0f 0b 90 e9 19 ff ff ff 90 0f 0b 90 e9 2a ff ff ff RSP: 0018:ffffc9000bc57518 EFLAGS: 00000246 RAX: f0fd2bbdced2c900 RBX: ffff88807d711298 RCX: f0fd2bbdced2c900 RDX: ffffffff93607358 RSI: ffffffff8d990673 RDI: ffffffff8be28340 RBP: ffff88807d711200 R08: 0000000000000000 R09: ffffffff81ab43d8 R10: dffffc0000000000 R11: fffffbfff1f4201f R12: 0000000000000000 R13: 0000000000001000 R14: 0000000000000000 R15: 0000000000000206 __qdisc_destroy+0x166/0x420 net/sched/sch_generic.c:1081 qdisc_put net/sched/sch_generic.c:1107 [inline] dev_shutdown+0x34c/0x440 net/sched/sch_generic.c:1495 unregister_netdevice_many_notify+0xea7/0x2320 net/core/dev.c:12064 unregister_netdevice_many net/core/dev.c:12139 [inline] default_device_exit_batch+0x819/0x890 net/core/dev.c:12643 ops_exit_list net/core/net_namespace.c:206 [inline] ops_undo_list+0x525/0x990 net/core/net_namespace.c:253 cleanup_net+0x4c5/0x800 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+0x3f9/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: 24 20 and $0x20,%al 2: f6 44 24 21 02 testb $0x2,0x21(%rsp) 7: 74 0c je 0x15 9: 90 nop a: 0f 0b ud2 c: 48 f7 03 08 00 00 00 testq $0x8,(%rbx) 13: 74 64 je 0x79 15: bf 01 00 00 00 mov $0x1,%edi 1a: e8 4b 0b 2a f6 call 0xf62a0b6a 1f: e8 a6 1d 61 f6 call 0xf6611dca 24: fb sti 25: bf 01 00 00 00 mov $0x1,%edi * 2a: e8 1b ab ff ff call 0xffffab4a <-- trapping instruction 2f: 48 c7 44 24 40 00 00 movq $0x0,0x40(%rsp) 36: 00 00 38: 9c pushf 39: 8f 44 24 40 pop 0x40(%rsp) 3d: 8b .byte 0x8b 3e: 44 rex.R 3f: 24 .byte 0x24