------------[ cut here ]------------ refcount_t: addition on 0; use-after-free. WARNING: CPU: 1 PID: 4872 at lib/refcount.c:25 refcount_warn_saturate+0x134/0x1f8 lib/refcount.c:25 Modules linked in: CPU: 1 PID: 4872 Comm: syz-executor Not tainted 5.15.185-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : refcount_warn_saturate+0x134/0x1f8 lib/refcount.c:25 lr : refcount_warn_saturate+0x134/0x1f8 lib/refcount.c:25 sp : ffff800008017800 x29: ffff800008017800 x28: ffff0000e808cc00 x27: ffff0000c8dff400 x26: 1fffe0001baad369 x25: dfff800000000000 x24: 1fffe000191bfe81 x23: ffff0000e92fe800 x22: ffff0000c1111bd4 x21: ffff0000d72af880 x20: ffff0000c1111bd4 x19: ffff80001659e000 x18: 0000000000000102 x17: 0000000000000000 x16: ffff8000111a97c4 x15: 00000000ffffffff x14: 0000000000ff0100 x13: 0000000000000001 x12: 0000000000ff0100 x11: 0000000000000101 x10: 0000000000000000 x9 : 6c6b9fdfa8726f00 x8 : 6c6b9fdfa8726f00 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff8000080170f8 x4 : ffff80001423f280 x3 : ffff800008503958 x2 : 0000000000000001 x1 : 0000000100000101 x0 : 000000000000002a Call trace: refcount_warn_saturate+0x134/0x1f8 lib/refcount.c:25 __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+0x1634/0x2220 net/tipc/crypto.c:1772 tipc_bearer_xmit_skb+0x1f0/0x384 net/tipc/bearer.c:574 tipc_disc_timeout+0x4c8/0x608 net/tipc/discover.c:338 call_timer_fn+0x19c/0x858 kernel/time/timer.c:1451 expire_timers kernel/time/timer.c:1496 [inline] __run_timers+0x46c/0x6c4 kernel/time/timer.c:1767 run_timer_softirq+0x7c/0x114 kernel/time/timer.c:1780 handle_softirqs+0x344/0xbf0 kernel/softirq.c:576 __do_softirq kernel/softirq.c:610 [inline] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] invoke_softirq kernel/softirq.c:457 [inline] __irq_exit_rcu+0x240/0x440 kernel/softirq.c:659 irq_exit+0x14/0x88 kernel/softirq.c:683 handle_domain_irq+0x14c/0x1fc kernel/irq/irqdesc.c:711 gic_handle_irq+0x78/0x1c8 drivers/irqchip/irq-gic-v3.c:765 call_on_irq_stack+0x24/0x4c arch/arm64/kernel/entry.S:899 do_interrupt_handler+0x6c/0x88 arch/arm64/kernel/entry-common.c:267 el1_interrupt+0x30/0x58 arch/arm64/kernel/entry-common.c:454 el1h_64_irq_handler+0x18/0x24 arch/arm64/kernel/entry-common.c:470 el1h_64_irq+0x78/0x7c arch/arm64/kernel/entry.S:522 arch_local_irq_restore arch/arm64/include/asm/irqflags.h:122 [inline] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] _raw_spin_unlock_irqrestore+0xb8/0x14c kernel/locking/spinlock.c:194 spin_unlock_irqrestore include/linux/spinlock.h:418 [inline] __percpu_counter_init+0x1f4/0x26c lib/percpu_counter.c:159 nfsd_percpu_counters_init fs/nfsd/stats.c:79 [inline] nfsd_stat_counters_init+0x40/0xc0 fs/nfsd/stats.c:108 nfsd_init_net+0x84/0x1dc fs/nfsd/nfsctl.c:1461 ops_init+0x2b0/0x544 net/core/net_namespace.c:138 setup_net+0x374/0xa0c net/core/net_namespace.c:333 copy_net_ns+0x2bc/0x5cc net/core/net_namespace.c:503 create_new_namespaces+0x304/0x5f8 kernel/nsproxy.c:110 unshare_nsproxy_namespaces+0x108/0x158 kernel/nsproxy.c:226 ksys_unshare+0x3d4/0x6d0 kernel/fork.c:3175 __do_sys_unshare kernel/fork.c:3249 [inline] __se_sys_unshare kernel/fork.c:3247 [inline] __arm64_sys_unshare+0x3c/0x50 kernel/fork.c:3247 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x78/0x1e0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0xcc/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 irq event stamp: 4801 hardirqs last enabled at (4800): [] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:257 hardirqs last disabled at (4801): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396 softirqs last enabled at (4252): [] raw_unhash_sk+0x278/0x360 net/ipv4/raw.c:116 softirqs last disabled at (4777): [] __do_softirq kernel/softirq.c:610 [inline] softirqs last disabled at (4777): [] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] softirqs last disabled at (4777): [] invoke_softirq kernel/softirq.c:457 [inline] softirqs last disabled at (4777): [] __irq_exit_rcu+0x240/0x440 kernel/softirq.c:659 ---[ end trace c7183892be4bb876 ]--- ------------[ cut here ]------------ refcount_t: underflow; use-after-free. WARNING: CPU: 1 PID: 4872 at lib/refcount.c:28 refcount_warn_saturate+0x154/0x1f8 lib/refcount.c:28 Modules linked in: CPU: 1 PID: 4872 Comm: syz-executor Tainted: G W 5.15.185-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : refcount_warn_saturate+0x154/0x1f8 lib/refcount.c:28 lr : refcount_warn_saturate+0x154/0x1f8 lib/refcount.c:28 sp : ffff800008017800 x29: ffff800008017800 x28: ffff0000e808cc00 x27: 0000000000000000 x26: 1fffe0001baad369 x25: dfff800000000000 x24: 1fffe000191bfe81 x23: ffff0000ce745538 x22: ffff0000c1111a80 x21: ffff0000d72af880 x20: ffff0000c1111bd4 x19: ffff80001659e000 x18: 0000000000000102 x17: 0000000000000000 x16: ffff8000083008fc x15: 00000000ffffffff x14: 0000000000ff0100 x13: 0000000000000001 x12: 0000000000ff0100 x11: 0000000000000101 x10: 0000000000000000 x9 : 6c6b9fdfa8726f00 x8 : 6c6b9fdfa8726f00 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff8000080170f8 x4 : ffff80001423f280 x3 : ffff800008300a0c x2 : 0000000000000001 x1 : 0000000000000101 x0 : 0000000000000026 Call trace: refcount_warn_saturate+0x154/0x1f8 lib/refcount.c:28 __refcount_sub_and_test include/linux/refcount.h:283 [inline] __refcount_dec_and_test include/linux/refcount.h:315 [inline] refcount_dec_and_test include/linux/refcount.h:333 [inline] put_net include/net/net_namespace.h:270 [inline] tipc_aead_encrypt net/tipc/crypto.c:840 [inline] tipc_crypto_xmit+0x177c/0x2220 net/tipc/crypto.c:1772 tipc_bearer_xmit_skb+0x1f0/0x384 net/tipc/bearer.c:574 tipc_disc_timeout+0x4c8/0x608 net/tipc/discover.c:338 call_timer_fn+0x19c/0x858 kernel/time/timer.c:1451 expire_timers kernel/time/timer.c:1496 [inline] __run_timers+0x46c/0x6c4 kernel/time/timer.c:1767 run_timer_softirq+0x7c/0x114 kernel/time/timer.c:1780 handle_softirqs+0x344/0xbf0 kernel/softirq.c:576 __do_softirq kernel/softirq.c:610 [inline] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] invoke_softirq kernel/softirq.c:457 [inline] __irq_exit_rcu+0x240/0x440 kernel/softirq.c:659 irq_exit+0x14/0x88 kernel/softirq.c:683 handle_domain_irq+0x14c/0x1fc kernel/irq/irqdesc.c:711 gic_handle_irq+0x78/0x1c8 drivers/irqchip/irq-gic-v3.c:765 call_on_irq_stack+0x24/0x4c arch/arm64/kernel/entry.S:899 do_interrupt_handler+0x6c/0x88 arch/arm64/kernel/entry-common.c:267 el1_interrupt+0x30/0x58 arch/arm64/kernel/entry-common.c:454 el1h_64_irq_handler+0x18/0x24 arch/arm64/kernel/entry-common.c:470 el1h_64_irq+0x78/0x7c arch/arm64/kernel/entry.S:522 arch_local_irq_restore arch/arm64/include/asm/irqflags.h:122 [inline] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] _raw_spin_unlock_irqrestore+0xb8/0x14c kernel/locking/spinlock.c:194 spin_unlock_irqrestore include/linux/spinlock.h:418 [inline] __percpu_counter_init+0x1f4/0x26c lib/percpu_counter.c:159 nfsd_percpu_counters_init fs/nfsd/stats.c:79 [inline] nfsd_stat_counters_init+0x40/0xc0 fs/nfsd/stats.c:108 nfsd_init_net+0x84/0x1dc fs/nfsd/nfsctl.c:1461 ops_init+0x2b0/0x544 net/core/net_namespace.c:138 setup_net+0x374/0xa0c net/core/net_namespace.c:333 copy_net_ns+0x2bc/0x5cc net/core/net_namespace.c:503 create_new_namespaces+0x304/0x5f8 kernel/nsproxy.c:110 unshare_nsproxy_namespaces+0x108/0x158 kernel/nsproxy.c:226 ksys_unshare+0x3d4/0x6d0 kernel/fork.c:3175 __do_sys_unshare kernel/fork.c:3249 [inline] __se_sys_unshare kernel/fork.c:3247 [inline] __arm64_sys_unshare+0x3c/0x50 kernel/fork.c:3247 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x78/0x1e0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0xcc/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 irq event stamp: 4831 hardirqs last enabled at (4830): [] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:257 hardirqs last disabled at (4831): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396 softirqs last enabled at (4252): [] raw_unhash_sk+0x278/0x360 net/ipv4/raw.c:116 softirqs last disabled at (4777): [] __do_softirq kernel/softirq.c:610 [inline] softirqs last disabled at (4777): [] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] softirqs last disabled at (4777): [] invoke_softirq kernel/softirq.c:457 [inline] softirqs last disabled at (4777): [] __irq_exit_rcu+0x240/0x440 kernel/softirq.c:659 ---[ end trace c7183892be4bb877 ]--- ------------[ cut here ]------------ refcount_t: saturated; leaking memory. WARNING: CPU: 1 PID: 4872 at lib/refcount.c:22 refcount_warn_saturate+0x1b4/0x1f8 lib/refcount.c:22 Modules linked in: CPU: 1 PID: 4872 Comm: syz-executor Tainted: G W 5.15.185-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : refcount_warn_saturate+0x1b4/0x1f8 lib/refcount.c:22 lr : refcount_warn_saturate+0x1b4/0x1f8 lib/refcount.c:22 sp : ffff800008017800 x29: ffff800008017800 x28: ffff0000cb899c00 x27: ffff0000c8dff400 x26: 1fffe0001baad369 x25: dfff800000000000 x24: 1fffe000191bfe81 x23: ffff0000e9300800 x22: ffff0000c1111bd4 x21: 000000007ffffffe x20: ffff0000c1111bd4 x19: ffff80001659e000 x18: 0000000000000102 x17: 0000000000000000 x16: ffff8000083008fc x15: 00000000ffffffff x14: 0000000000ff0100 x13: 0000000000000001 x12: 0000000000ff0100 x11: 0000000000000101 x10: 0000000000000000 x9 : 6c6b9fdfa8726f00 x8 : 6c6b9fdfa8726f00 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff8000080170f8 x4 : ffff80001423f280 x3 : ffff800008300a0c x2 : 0000000000000001 x1 : 0000000000000101 x0 : 0000000000000026 Call trace: refcount_warn_saturate+0x1b4/0x1f8 lib/refcount.c:22 __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+0x1634/0x2220 net/tipc/crypto.c:1772 tipc_bearer_xmit_skb+0x1f0/0x384 net/tipc/bearer.c:574 tipc_disc_timeout+0x4c8/0x608 net/tipc/discover.c:338 call_timer_fn+0x19c/0x858 kernel/time/timer.c:1451 expire_timers kernel/time/timer.c:1496 [inline] __run_timers+0x46c/0x6c4 kernel/time/timer.c:1767 run_timer_softirq+0x7c/0x114 kernel/time/timer.c:1780 handle_softirqs+0x344/0xbf0 kernel/softirq.c:576 __do_softirq kernel/softirq.c:610 [inline] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] invoke_softirq kernel/softirq.c:457 [inline] __irq_exit_rcu+0x240/0x440 kernel/softirq.c:659 irq_exit+0x14/0x88 kernel/softirq.c:683 handle_domain_irq+0x14c/0x1fc kernel/irq/irqdesc.c:711 gic_handle_irq+0x78/0x1c8 drivers/irqchip/irq-gic-v3.c:765 call_on_irq_stack+0x24/0x4c arch/arm64/kernel/entry.S:899 do_interrupt_handler+0x6c/0x88 arch/arm64/kernel/entry-common.c:267 el1_interrupt+0x30/0x58 arch/arm64/kernel/entry-common.c:454 el1h_64_irq_handler+0x18/0x24 arch/arm64/kernel/entry-common.c:470 el1h_64_irq+0x78/0x7c arch/arm64/kernel/entry.S:522 arch_local_irq_restore arch/arm64/include/asm/irqflags.h:122 [inline] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] _raw_spin_unlock_irqrestore+0xb8/0x14c kernel/locking/spinlock.c:194 spin_unlock_irqrestore include/linux/spinlock.h:418 [inline] __percpu_counter_init+0x1f4/0x26c lib/percpu_counter.c:159 nfsd_percpu_counters_init fs/nfsd/stats.c:79 [inline] nfsd_stat_counters_init+0x40/0xc0 fs/nfsd/stats.c:108 nfsd_init_net+0x84/0x1dc fs/nfsd/nfsctl.c:1461 ops_init+0x2b0/0x544 net/core/net_namespace.c:138 setup_net+0x374/0xa0c net/core/net_namespace.c:333 copy_net_ns+0x2bc/0x5cc net/core/net_namespace.c:503 create_new_namespaces+0x304/0x5f8 kernel/nsproxy.c:110 unshare_nsproxy_namespaces+0x108/0x158 kernel/nsproxy.c:226 ksys_unshare+0x3d4/0x6d0 kernel/fork.c:3175 __do_sys_unshare kernel/fork.c:3249 [inline] __se_sys_unshare kernel/fork.c:3247 [inline] __arm64_sys_unshare+0x3c/0x50 kernel/fork.c:3247 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x78/0x1e0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0xcc/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 irq event stamp: 4875 hardirqs last enabled at (4874): [] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:257 hardirqs last disabled at (4875): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396 softirqs last enabled at (4252): [] raw_unhash_sk+0x278/0x360 net/ipv4/raw.c:116 softirqs last disabled at (4777): [] __do_softirq kernel/softirq.c:610 [inline] softirqs last disabled at (4777): [] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] softirqs last disabled at (4777): [] invoke_softirq kernel/softirq.c:457 [inline] softirqs last disabled at (4777): [] __irq_exit_rcu+0x240/0x440 kernel/softirq.c:659 ---[ end trace c7183892be4bb878 ]---