------------[ cut here ]------------ refcount_t: addition on 0; use-after-free. WARNING: CPU: 0 PID: 16115 at lib/refcount.c:25 refcount_warn_saturate+0xff/0x1a0 lib/refcount.c:25 Modules linked in: CPU: 0 PID: 16115 Comm: rm Not tainted 6.1.141-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:refcount_warn_saturate+0xff/0x1a0 lib/refcount.c:25 Code: 09 01 48 c7 c7 a0 d2 be 8a e8 ad 30 45 fd 0f 0b eb e0 e8 f4 1d 79 fd c6 05 fa 72 e2 09 01 48 c7 c7 e0 d1 be 8a e8 91 30 45 fd <0f> 0b eb c4 e8 d8 1d 79 fd c6 05 df 72 e2 09 01 48 c7 c7 40 d2 be RSP: 0018:ffffc90000007688 EFLAGS: 00010246 RAX: b64fe048782b8f00 RBX: 0000000000000002 RCX: ffff88802cc75940 RDX: 0000000000000100 RSI: 0000000000000000 RDI: 0000000000000002 RBP: ffffc900000077e8 R08: dffffc0000000000 R09: fffff52000000e61 R10: fffff52000000e61 R11: 1ffff92000000e60 R12: ffff888055b78000 R13: dffffc0000000000 R14: 0000000000000002 R15: ffff888059464048 FS: 0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fefc2a23e9c CR3: 000000005cc63000 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:257 [inline] tipc_aead_encrypt net/tipc/crypto.c:821 [inline] tipc_crypto_xmit+0x17a9/0x2300 net/tipc/crypto.c:1761 tipc_crypto_clone_msg+0x91/0x160 net/tipc/crypto.c:1656 tipc_crypto_xmit+0x1928/0x2300 net/tipc/crypto.c:1717 tipc_bearer_xmit_skb+0x242/0x3f0 net/tipc/bearer.c:574 tipc_disc_timeout+0x568/0x6b0 net/tipc/discover.c:338 call_timer_fn+0x1a0/0x670 kernel/time/timer.c:1504 expire_timers kernel/time/timer.c:1549 [inline] __run_timers+0x525/0x7c0 kernel/time/timer.c:1820 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1833 handle_softirqs+0x2a1/0x920 kernel/softirq.c:596 __do_softirq kernel/softirq.c:630 [inline] invoke_softirq kernel/softirq.c:470 [inline] __irq_exit_rcu+0x12f/0x220 kernel/softirq.c:679 irq_exit_rcu+0x5/0x20 kernel/softirq.c:691 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline] sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1118 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:691 RIP: 0010:instrument_atomic_read include/linux/instrumented.h:72 [inline] RIP: 0010:atomic_read include/linux/atomic/atomic-instrumented.h:27 [inline] RIP: 0010:folio_memcg_lock+0x18b/0x2e0 mm/memcontrol.c:2116 Code: 48 c7 44 24 60 00 00 00 00 9c 8f 44 24 60 f6 44 24 61 02 0f 85 85 00 00 00 41 f7 c5 00 02 00 00 74 01 fb 4d 8d a7 40 09 00 00 <4c> 89 e7 be 04 00 00 00 e8 58 8e f9 ff 4c 89 e0 48 c1 e8 03 48 b9 RSP: 0018:ffffc900060876a0 EFLAGS: 00000206 RAX: b64fe048782b8f00 RBX: ffffea0000297240 RCX: b64fe048782b8f00 RDX: dffffc0000000000 RSI: ffffffff8a6bffe0 RDI: ffffffff8abf1360 RBP: ffffc90006087778 R08: dffffc0000000000 R09: fffffbfff2117049 R10: fffffbfff2117049 R11: 1ffffffff2117048 R12: ffff888140058940 R13: 0000000000000286 R14: ffffffff81d8c155 R15: ffff888140058000 page_remove_rmap+0x2e/0xea0 mm/rmap.c:1426 zap_pte_range mm/memory.c:1453 [inline] zap_pmd_range mm/memory.c:1574 [inline] zap_pud_range mm/memory.c:1603 [inline] zap_p4d_range mm/memory.c:1624 [inline] unmap_page_range+0x1149/0x2500 mm/memory.c:1645 unmap_vmas+0x22c/0x330 mm/memory.c:1730 exit_mmap+0x1cc/0x8e0 mm/mmap.c:3238 __mmput+0x118/0x3c0 kernel/fork.c:1200 exit_mm+0x1e6/0x2c0 kernel/exit.c:565 do_exit+0x8b9/0x2400 kernel/exit.c:858 do_group_exit+0x217/0x2d0 kernel/exit.c:1021 __do_sys_exit_group kernel/exit.c:1032 [inline] __se_sys_exit_group kernel/exit.c:1030 [inline] __x64_sys_exit_group+0x3b/0x40 kernel/exit.c:1030 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fefc2b826c5 Code: Unable to access opcode bytes at 0x7fefc2b8269b. RSP: 002b:00007fffdb5b9238 EFLAGS: 00000202 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 00007fefc2c83fe8 RCX: 00007fefc2b826c5 RDX: 00000000000000e7 RSI: ffffffffffffff88 RDI: 0000000000000000 RBP: 0000000000000001 R08: 00007fffdb5b91c8 R09: 0000000000000000 R10: 00007fffdb5b9060 R11: 0000000000000202 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fefc2c82680 R15: 00007fefc2c84000 ---------------- Code disassembly (best guess): 0: 48 c7 44 24 60 00 00 movq $0x0,0x60(%rsp) 7: 00 00 9: 9c pushf a: 8f 44 24 60 pop 0x60(%rsp) e: f6 44 24 61 02 testb $0x2,0x61(%rsp) 13: 0f 85 85 00 00 00 jne 0x9e 19: 41 f7 c5 00 02 00 00 test $0x200,%r13d 20: 74 01 je 0x23 22: fb sti 23: 4d 8d a7 40 09 00 00 lea 0x940(%r15),%r12 * 2a: 4c 89 e7 mov %r12,%rdi <-- trapping instruction 2d: be 04 00 00 00 mov $0x4,%esi 32: e8 58 8e f9 ff call 0xfff98e8f 37: 4c 89 e0 mov %r12,%rax 3a: 48 c1 e8 03 shr $0x3,%rax 3e: 48 rex.W 3f: b9 .byte 0xb9