------------[ cut here ]------------ refcount_t: addition on 0; use-after-free. WARNING: CPU: 0 PID: 5251 at lib/refcount.c:25 refcount_warn_saturate+0x134/0x1f8 lib/refcount.c:25 Modules linked in: CPU: 0 PID: 5251 Comm: syz.4.276 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 : ffff800008007800 x29: ffff800008007800 x28: ffff0000cf1c2000 x27: ffff0000dc40de00 x26: 1fffe0001d649369 x25: dfff800000000000 x24: 1fffe0001b881bc1 x23: ffff0000db30e800 x22: ffff0000c1220154 x21: ffff0000da1d2880 x20: ffff0000c1220154 x19: ffff80001659e000 x18: 0000000000000102 x17: 0000000000000000 x16: ffff8000111a97c4 x15: 00000000ffffffff x14: 0000000000ff0100 x13: 0000000000000001 x12: 0000000000ff0100 x11: 0000000000000101 x10: 0000000000000000 x9 : 5bebe3b0f70a7200 x8 : 5bebe3b0f70a7200 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff8000080070f8 x4 : ffff80001423f280 x3 : ffff800008503958 x2 : 0000000000000001 x1 : 0000000000000101 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 __memset+0x88/0x1c0 arch/arm64/lib/memset.S:101 return_address+0x9c/0x144 arch/arm64/kernel/return_address.c:38 get_lock_parent_ip include/linux/ftrace.h:859 [inline] preempt_latency_start kernel/sched/core.c:5471 [inline] preempt_count_add+0x13c/0x3bc kernel/sched/core.c:5496 __raw_spin_lock include/linux/spinlock_api_smp.h:141 [inline] _raw_spin_lock+0x24/0x10c kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:363 [inline] follow_page_pte+0x194/0x97c mm/gup.c:528 follow_pmd_mask mm/gup.c:-1 [inline] follow_pud_mask mm/gup.c:788 [inline] follow_p4d_mask mm/gup.c:814 [inline] follow_page_mask+0x7e4/0xf10 mm/gup.c:873 __get_user_pages+0x5e4/0x9a4 mm/gup.c:1195 populate_vma_page_range+0x1f4/0x284 mm/gup.c:1529 __mm_populate+0x238/0x36c mm/gup.c:1638 mm_populate include/linux/mm.h:2632 [inline] vm_mmap_pgoff+0x1cc/0x284 mm/util.c:556 ksys_mmap_pgoff+0x11c/0x620 mm/mmap.c:1623 __do_sys_mmap arch/arm64/kernel/sys.c:28 [inline] __se_sys_mmap arch/arm64/kernel/sys.c:21 [inline] __arm64_sys_mmap+0xf8/0x110 arch/arm64/kernel/sys.c:21 __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: 29155 hardirqs last enabled at (29154): [] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:257 hardirqs last disabled at (29155): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396 softirqs last enabled at (27728): [] softirq_handle_end kernel/softirq.c:419 [inline] softirqs last enabled at (27728): [] handle_softirqs+0xa4c/0xbf0 kernel/softirq.c:604 softirqs last disabled at (29099): [] __do_softirq kernel/softirq.c:610 [inline] softirqs last disabled at (29099): [] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] softirqs last disabled at (29099): [] invoke_softirq kernel/softirq.c:457 [inline] softirqs last disabled at (29099): [] __irq_exit_rcu+0x240/0x440 kernel/softirq.c:659 ---[ end trace 3ba1424c9586870b ]--- ------------[ cut here ]------------ refcount_t: underflow; use-after-free. WARNING: CPU: 0 PID: 5251 at lib/refcount.c:28 refcount_warn_saturate+0x154/0x1f8 lib/refcount.c:28 Modules linked in: CPU: 0 PID: 5251 Comm: syz.4.276 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 : ffff800008007800 x29: ffff800008007800 x28: ffff0000cf1c2000 x27: 0000000000000000 x26: 1fffe0001d649369 x25: dfff800000000000 x24: 1fffe0001b881bc1 x23: ffff0000dc43a638 x22: ffff0000c1220000 x21: ffff0000da1d2880 x20: ffff0000c1220154 x19: ffff80001659e000 x18: 0000000000000102 x17: 0000000000000000 x16: ffff8000083008fc x15: 00000000ffffffff x14: 0000000000ff0100 x13: 0000000000000001 x12: 0000000000ff0100 x11: 0000000000000101 x10: 0000000000000000 x9 : 5bebe3b0f70a7200 x8 : 5bebe3b0f70a7200 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff8000080070f8 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 __memset+0x88/0x1c0 arch/arm64/lib/memset.S:101 return_address+0x9c/0x144 arch/arm64/kernel/return_address.c:38 get_lock_parent_ip include/linux/ftrace.h:859 [inline] preempt_latency_start kernel/sched/core.c:5471 [inline] preempt_count_add+0x13c/0x3bc kernel/sched/core.c:5496 __raw_spin_lock include/linux/spinlock_api_smp.h:141 [inline] _raw_spin_lock+0x24/0x10c kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:363 [inline] follow_page_pte+0x194/0x97c mm/gup.c:528 follow_pmd_mask mm/gup.c:-1 [inline] follow_pud_mask mm/gup.c:788 [inline] follow_p4d_mask mm/gup.c:814 [inline] follow_page_mask+0x7e4/0xf10 mm/gup.c:873 __get_user_pages+0x5e4/0x9a4 mm/gup.c:1195 populate_vma_page_range+0x1f4/0x284 mm/gup.c:1529 __mm_populate+0x238/0x36c mm/gup.c:1638 mm_populate include/linux/mm.h:2632 [inline] vm_mmap_pgoff+0x1cc/0x284 mm/util.c:556 ksys_mmap_pgoff+0x11c/0x620 mm/mmap.c:1623 __do_sys_mmap arch/arm64/kernel/sys.c:28 [inline] __se_sys_mmap arch/arm64/kernel/sys.c:21 [inline] __arm64_sys_mmap+0xf8/0x110 arch/arm64/kernel/sys.c:21 __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: 29183 hardirqs last enabled at (29182): [] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:257 hardirqs last disabled at (29183): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396 softirqs last enabled at (27728): [] softirq_handle_end kernel/softirq.c:419 [inline] softirqs last enabled at (27728): [] handle_softirqs+0xa4c/0xbf0 kernel/softirq.c:604 softirqs last disabled at (29099): [] __do_softirq kernel/softirq.c:610 [inline] softirqs last disabled at (29099): [] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] softirqs last disabled at (29099): [] invoke_softirq kernel/softirq.c:457 [inline] softirqs last disabled at (29099): [] __irq_exit_rcu+0x240/0x440 kernel/softirq.c:659 ---[ end trace 3ba1424c9586870c ]--- ------------[ cut here ]------------ refcount_t: saturated; leaking memory. WARNING: CPU: 0 PID: 5286 at lib/refcount.c:22 refcount_warn_saturate+0x1b4/0x1f8 lib/refcount.c:22 Modules linked in: CPU: 0 PID: 5286 Comm: sed 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 : ffff800008007800 x29: ffff800008007800 x28: ffff0000da746400 x27: ffff0000dc40de00 x26: 1fffe0001aeee001 x25: dfff800000000000 x24: 1fffe0001b881bc1 x23: ffff0000db30e800 x22: ffff0000c1220154 x21: 000000007ffffffe x20: ffff0000c1220154 x19: ffff80001659e000 x18: 0000000000000103 x17: 0000000000000000 x16: ffff8000111a97c4 x15: 00000000ffffffff x14: 0000000000ff0100 x13: 0000000000000001 x12: 0000000000ff0100 x11: 0000000000000102 x10: 0000000000000000 x9 : f2bd04d8f577ad00 x8 : f2bd04d8f577ad00 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff8000080070f8 x4 : ffff80001423f280 x3 : ffff800008503958 x2 : 0000000000000001 x1 : 0000000000000102 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 __kern_my_cpu_offset+0x10/0x20 arch/arm64/include/asm/percpu.h:32 check_preemption_disabled+0x28/0x164 lib/smp_processor_id.c:14 debug_smp_processor_id+0x20/0x2c lib/smp_processor_id.c:60 rcu_dynticks_curr_cpu_in_eqs kernel/rcu/tree.c:331 [inline] rcu_is_watching+0x50/0x134 kernel/rcu/tree.c:1123 rcu_read_lock include/linux/rcupdate.h:740 [inline] lock_page_memcg+0x5c/0x234 mm/memcontrol.c:2047 page_remove_rmap+0x3c/0xfd0 mm/rmap.c:1351 zap_pte_range mm/memory.c:1384 [inline] zap_pmd_range mm/memory.c:1505 [inline] zap_pud_range mm/memory.c:1534 [inline] zap_p4d_range mm/memory.c:1555 [inline] unmap_page_range+0xbb4/0x1958 mm/memory.c:1576 unmap_single_vma+0x13c/0x1e4 mm/memory.c:1621 unmap_vmas+0x104/0x200 mm/memory.c:1653 exit_mmap+0x2a8/0x4e0 mm/mmap.c:3204 __mmput+0xec/0x3b8 kernel/fork.c:1127 mmput+0x80/0xc8 kernel/fork.c:1148 exit_mm+0x4a0/0x684 kernel/exit.c:550 do_exit+0x4e4/0x1f58 kernel/exit.c:861 do_group_exit+0x100/0x268 kernel/exit.c:996 __do_sys_exit_group kernel/exit.c:1007 [inline] __se_sys_exit_group kernel/exit.c:1005 [inline] __wake_up_parent+0x0/0x60 kernel/exit.c:1005 __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: 5695 hardirqs last enabled at (5694): [] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:257 hardirqs last disabled at (5695): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396 softirqs last enabled at (5602): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:31 softirqs last disabled at (5655): [] __do_softirq kernel/softirq.c:610 [inline] softirqs last disabled at (5655): [] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] softirqs last disabled at (5655): [] invoke_softirq kernel/softirq.c:457 [inline] softirqs last disabled at (5655): [] __irq_exit_rcu+0x240/0x440 kernel/softirq.c:659 ---[ end trace 3ba1424c9586870e ]---