------------[ cut here ]------------ refcount_t: addition on 0; use-after-free. WARNING: CPU: 0 PID: 6312 at lib/refcount.c:25 refcount_warn_saturate+0x134/0x1f8 lib/refcount.c:25 Modules linked in: CPU: 0 PID: 6312 Comm: syz.5.579 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: ffff0000e7fd6400 x27: ffff0000da66e200 x26: 1fffe00018fc56d1 x25: dfff800000000000 x24: 1fffe0001b4cdc41 x23: ffff0000e9c4e400 x22: ffff0000c1930154 x21: ffff0000d0269080 x20: ffff0000c1930154 x19: ffff80001659e000 x18: 0000000000000102 x17: 0000000000000000 x16: ffff8000111a97c4 x15: 00000000ffffffff x14: 0000000000ff0100 x13: 0000000000000001 x12: 0000000000ff0100 x11: 0000000000000101 x10: 0000000000000000 x9 : 49db67ce81f3e000 x8 : 49db67ce81f3e000 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff8000080070f8 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 __sanitizer_cov_trace_pc+0x18/0xac kernel/kcov.c:202 check_preemption_disabled+0x38/0x164 lib/smp_processor_id.c:16 debug_smp_processor_id+0x20/0x2c lib/smp_processor_id.c:60 rcu_lockdep_current_cpu_online+0x7c/0x1e0 kernel/rcu/tree.c:1171 rcu_read_lock_held_common kernel/rcu/update.c:112 [inline] rcu_read_lock_held+0x20/0x50 kernel/rcu/update.c:309 xa_entry include/linux/xarray.h:1182 [inline] xas_reload+0x18c/0x448 include/linux/xarray.h:1558 find_get_entry+0x1bc/0x254 mm/filemap.c:1996 find_lock_entries+0x4ec/0x828 mm/filemap.c:2092 shmem_undo_range+0x1dc/0x1234 mm/shmem.c:943 shmem_truncate_range mm/shmem.c:1063 [inline] shmem_evict_inode+0x1c0/0x838 mm/shmem.c:1145 evict+0x3c8/0x810 fs/inode.c:647 iput_final fs/inode.c:1769 [inline] iput+0x6c4/0x77c fs/inode.c:1795 dentry_unlink_inode+0x360/0x438 fs/dcache.c:380 __dentry_kill+0x320/0x598 fs/dcache.c:586 dentry_kill+0xc8/0x248 fs/dcache.c:-1 dput+0x23c/0x458 fs/dcache.c:893 __fput+0x494/0x7f8 fs/file_table.c:319 ____fput+0x20/0x30 fs/file_table.c:339 task_work_run+0x12c/0x1e0 kernel/task_work.c:188 exit_task_work include/linux/task_work.h:33 [inline] do_exit+0x67c/0x1f58 kernel/exit.c:874 do_group_exit+0x100/0x268 kernel/exit.c:996 get_signal+0x73c/0x1340 kernel/signal.c:2900 do_signal arch/arm64/kernel/signal.c:893 [inline] do_notify_resume+0x35c/0x3128 arch/arm64/kernel/signal.c:946 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline] el0_svc+0xf0/0x1e0 arch/arm64/kernel/entry-common.c:609 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: 169467 hardirqs last enabled at (169466): [] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:257 hardirqs last disabled at (169467): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396 softirqs last enabled at (166962): [] softirq_handle_end kernel/softirq.c:419 [inline] softirqs last enabled at (166962): [] handle_softirqs+0xa4c/0xbf0 kernel/softirq.c:604 softirqs last disabled at (169423): [] __do_softirq kernel/softirq.c:610 [inline] softirqs last disabled at (169423): [] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] softirqs last disabled at (169423): [] invoke_softirq kernel/softirq.c:457 [inline] softirqs last disabled at (169423): [] __irq_exit_rcu+0x240/0x440 kernel/softirq.c:659 ---[ end trace 590f5ac4643b8129 ]--- ------------[ cut here ]------------ refcount_t: underflow; use-after-free. WARNING: CPU: 0 PID: 6312 at lib/refcount.c:28 refcount_warn_saturate+0x154/0x1f8 lib/refcount.c:28 Modules linked in: CPU: 0 PID: 6312 Comm: syz.5.579 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: ffff0000e7fd6400 x27: 0000000000000000 x26: 1fffe00018fc56d1 x25: dfff800000000000 x24: 1fffe0001b4cdc41 x23: ffff0000dc956b38 x22: ffff0000c1930000 x21: ffff0000d0269080 x20: ffff0000c1930154 x19: ffff80001659e000 x18: 0000000000000102 x17: 0000000000000000 x16: ffff8000111a97c4 x15: 0000000000000012 x14: 0000000000000000 x13: 1ffff0000282c06b x12: 0000000000ff0100 x11: 0000000000000101 x10: 0000000000000000 x9 : 49db67ce81f3e000 x8 : 49db67ce81f3e000 x7 : 0000000000000000 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000000 x3 : ffff80000a732684 x2 : ffff0001a10e9d10 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 __sanitizer_cov_trace_pc+0x18/0xac kernel/kcov.c:202 check_preemption_disabled+0x38/0x164 lib/smp_processor_id.c:16 debug_smp_processor_id+0x20/0x2c lib/smp_processor_id.c:60 rcu_lockdep_current_cpu_online+0x7c/0x1e0 kernel/rcu/tree.c:1171 rcu_read_lock_held_common kernel/rcu/update.c:112 [inline] rcu_read_lock_held+0x20/0x50 kernel/rcu/update.c:309 xa_entry include/linux/xarray.h:1182 [inline] xas_reload+0x18c/0x448 include/linux/xarray.h:1558 find_get_entry+0x1bc/0x254 mm/filemap.c:1996 find_lock_entries+0x4ec/0x828 mm/filemap.c:2092 shmem_undo_range+0x1dc/0x1234 mm/shmem.c:943 shmem_truncate_range mm/shmem.c:1063 [inline] shmem_evict_inode+0x1c0/0x838 mm/shmem.c:1145 evict+0x3c8/0x810 fs/inode.c:647 iput_final fs/inode.c:1769 [inline] iput+0x6c4/0x77c fs/inode.c:1795 dentry_unlink_inode+0x360/0x438 fs/dcache.c:380 __dentry_kill+0x320/0x598 fs/dcache.c:586 dentry_kill+0xc8/0x248 fs/dcache.c:-1 dput+0x23c/0x458 fs/dcache.c:893 __fput+0x494/0x7f8 fs/file_table.c:319 ____fput+0x20/0x30 fs/file_table.c:339 task_work_run+0x12c/0x1e0 kernel/task_work.c:188 exit_task_work include/linux/task_work.h:33 [inline] do_exit+0x67c/0x1f58 kernel/exit.c:874 do_group_exit+0x100/0x268 kernel/exit.c:996 get_signal+0x73c/0x1340 kernel/signal.c:2900 do_signal arch/arm64/kernel/signal.c:893 [inline] do_notify_resume+0x35c/0x3128 arch/arm64/kernel/signal.c:946 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline] el0_svc+0xf0/0x1e0 arch/arm64/kernel/entry-common.c:609 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: 169497 hardirqs last enabled at (169496): [] __exit_to_kernel_mode arch/arm64/kernel/entry-common.c:81 [inline] hardirqs last enabled at (169496): [] exit_to_kernel_mode+0xe0/0x168 arch/arm64/kernel/entry-common.c:91 hardirqs last disabled at (169497): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396 softirqs last enabled at (166962): [] softirq_handle_end kernel/softirq.c:419 [inline] softirqs last enabled at (166962): [] handle_softirqs+0xa4c/0xbf0 kernel/softirq.c:604 softirqs last disabled at (169423): [] __do_softirq kernel/softirq.c:610 [inline] softirqs last disabled at (169423): [] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] softirqs last disabled at (169423): [] invoke_softirq kernel/softirq.c:457 [inline] softirqs last disabled at (169423): [] __irq_exit_rcu+0x240/0x440 kernel/softirq.c:659 ---[ end trace 590f5ac4643b812a ]--- ------------[ cut here ]------------ refcount_t: saturated; leaking memory. WARNING: CPU: 0 PID: 6312 at lib/refcount.c:22 refcount_warn_saturate+0x1b4/0x1f8 lib/refcount.c:22 Modules linked in: CPU: 0 PID: 6312 Comm: syz.5.579 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: ffff0000e7fd6000 x27: ffff0000da66e200 x26: 1fffe00018fc56d1 x25: dfff800000000000 x24: 1fffe0001b4cdc41 x23: ffff0000e9d10800 x22: ffff0000c1930154 x21: 000000007ffffffe x20: ffff0000c1930154 x19: ffff80001659e000 x18: 0000000000000102 x17: 0000000000000000 x16: ffff8000111a97c4 x15: 00000000ffffffff x14: 0000000000ff0100 x13: 0000000000000001 x12: 0000000000ff0100 x11: 0000000000000101 x10: 0000000000000000 x9 : 49db67ce81f3e000 x8 : 49db67ce81f3e000 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff8000080070f8 x4 : ffff80001423f280 x3 : ffff800008503958 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 __sanitizer_cov_trace_pc+0x18/0xac kernel/kcov.c:202 check_preemption_disabled+0x38/0x164 lib/smp_processor_id.c:16 debug_smp_processor_id+0x20/0x2c lib/smp_processor_id.c:60 rcu_lockdep_current_cpu_online+0x7c/0x1e0 kernel/rcu/tree.c:1171 rcu_read_lock_held_common kernel/rcu/update.c:112 [inline] rcu_read_lock_held+0x20/0x50 kernel/rcu/update.c:309 xa_entry include/linux/xarray.h:1182 [inline] xas_reload+0x18c/0x448 include/linux/xarray.h:1558 find_get_entry+0x1bc/0x254 mm/filemap.c:1996 find_lock_entries+0x4ec/0x828 mm/filemap.c:2092 shmem_undo_range+0x1dc/0x1234 mm/shmem.c:943 shmem_truncate_range mm/shmem.c:1063 [inline] shmem_evict_inode+0x1c0/0x838 mm/shmem.c:1145 evict+0x3c8/0x810 fs/inode.c:647 iput_final fs/inode.c:1769 [inline] iput+0x6c4/0x77c fs/inode.c:1795 dentry_unlink_inode+0x360/0x438 fs/dcache.c:380 __dentry_kill+0x320/0x598 fs/dcache.c:586 dentry_kill+0xc8/0x248 fs/dcache.c:-1 dput+0x23c/0x458 fs/dcache.c:893 __fput+0x494/0x7f8 fs/file_table.c:319 ____fput+0x20/0x30 fs/file_table.c:339 task_work_run+0x12c/0x1e0 kernel/task_work.c:188 exit_task_work include/linux/task_work.h:33 [inline] do_exit+0x67c/0x1f58 kernel/exit.c:874 do_group_exit+0x100/0x268 kernel/exit.c:996 get_signal+0x73c/0x1340 kernel/signal.c:2900 do_signal arch/arm64/kernel/signal.c:893 [inline] do_notify_resume+0x35c/0x3128 arch/arm64/kernel/signal.c:946 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline] el0_svc+0xf0/0x1e0 arch/arm64/kernel/entry-common.c:609 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: 169555 hardirqs last enabled at (169554): [] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:257 hardirqs last disabled at (169555): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396 softirqs last enabled at (166962): [] softirq_handle_end kernel/softirq.c:419 [inline] softirqs last enabled at (166962): [] handle_softirqs+0xa4c/0xbf0 kernel/softirq.c:604 softirqs last disabled at (169423): [] __do_softirq kernel/softirq.c:610 [inline] softirqs last disabled at (169423): [] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] softirqs last disabled at (169423): [] invoke_softirq kernel/softirq.c:457 [inline] softirqs last disabled at (169423): [] __irq_exit_rcu+0x240/0x440 kernel/softirq.c:659 ---[ end trace 590f5ac4643b812b ]---