------------[ cut here ]------------ refcount_t: addition on 0; use-after-free. WARNING: CPU: 0 PID: 4032 at lib/refcount.c:25 refcount_warn_saturate+0x134/0x1f8 lib/refcount.c:25 Modules linked in: CPU: 0 PID: 4032 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 : ffff800008007800 x29: ffff800008007800 x28: ffff0000d33d5c00 x27: ffff0000d5edd200 x26: 1fffe0001a37b369 x25: dfff800000000000 x24: 1fffe0001abdba41 x23: ffff0000cfbbbc00 x22: ffff0000d71e1bd4 x21: ffff0000ead30880 x20: ffff0000d71e1bd4 x19: ffff80001659e000 x18: 0000000000000102 x17: 0000000000000000 x16: ffff8000111a97c4 x15: 00000000ffffffff x14: 0000000000ff0100 x13: 0000000000000001 x12: 0000000000ff0100 x11: 0000000000000101 x10: 0000000000000000 x9 : 8415ef8f414a2e00 x8 : 8415ef8f414a2e00 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 unwind_frame+0xf0/0x544 arch/arm64/kernel/stacktrace.c:-1 walk_stackframe+0x6c/0xa8 arch/arm64/kernel/stacktrace.c:148 return_address+0xd0/0x144 arch/arm64/kernel/return_address.c:46 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] inode_wait_for_writeback+0x84/0x1cc fs/fs-writeback.c:1527 evict+0x39c/0x810 fs/inode.c:644 iput_final fs/inode.c:1769 [inline] iput+0x6c4/0x77c fs/inode.c:1795 ntfs_put_super+0x7d0/0xdec fs/ntfs/super.c:2351 generic_shutdown_super+0x130/0x2f0 fs/super.c:475 kill_block_super+0x70/0xdc fs/super.c:1427 deactivate_locked_super+0xb8/0x13c fs/super.c:335 deactivate_super+0xf8/0x118 fs/super.c:366 cleanup_mnt+0x3a4/0x458 fs/namespace.c:1139 __cleanup_mnt+0x20/0x30 fs/namespace.c:1146 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: 3216751 hardirqs last enabled at (3216750): [] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:257 hardirqs last disabled at (3216751): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396 softirqs last enabled at (3215662): [] spin_unlock_bh include/linux/spinlock.h:408 [inline] softirqs last enabled at (3215662): [] __tun_set_ebpf+0x114/0x1bc drivers/net/tun.c:2273 softirqs last disabled at (3216725): [] __do_softirq kernel/softirq.c:610 [inline] softirqs last disabled at (3216725): [] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] softirqs last disabled at (3216725): [] invoke_softirq kernel/softirq.c:457 [inline] softirqs last disabled at (3216725): [] __irq_exit_rcu+0x240/0x440 kernel/softirq.c:659 ---[ end trace 7876eafba9370966 ]--- ------------[ cut here ]------------ refcount_t: underflow; use-after-free. WARNING: CPU: 0 PID: 4032 at lib/refcount.c:28 refcount_warn_saturate+0x154/0x1f8 lib/refcount.c:28 Modules linked in: CPU: 0 PID: 4032 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 : ffff800008007800 x29: ffff800008007800 x28: ffff0000d33d5c00 x27: 0000000000000000 x26: 1fffe0001a37b369 x25: dfff800000000000 x24: 1fffe0001abdba41 x23: ffff0000d271f538 x22: ffff0000d71e1a80 x21: ffff0000ead30880 x20: ffff0000d71e1bd4 x19: ffff80001659e000 x18: 0000000000000102 x17: 0000000000000000 x16: ffff8000083008fc x15: 00000000ffffffff x14: 0000000000ff0100 x13: 0000000000000001 x12: 0000000000ff0100 x11: 0000000000000101 x10: 0000000000000000 x9 : 8415ef8f414a2e00 x8 : 8415ef8f414a2e00 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 unwind_frame+0xf0/0x544 arch/arm64/kernel/stacktrace.c:-1 walk_stackframe+0x6c/0xa8 arch/arm64/kernel/stacktrace.c:148 return_address+0xd0/0x144 arch/arm64/kernel/return_address.c:46 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] inode_wait_for_writeback+0x84/0x1cc fs/fs-writeback.c:1527 evict+0x39c/0x810 fs/inode.c:644 iput_final fs/inode.c:1769 [inline] iput+0x6c4/0x77c fs/inode.c:1795 ntfs_put_super+0x7d0/0xdec fs/ntfs/super.c:2351 generic_shutdown_super+0x130/0x2f0 fs/super.c:475 kill_block_super+0x70/0xdc fs/super.c:1427 deactivate_locked_super+0xb8/0x13c fs/super.c:335 deactivate_super+0xf8/0x118 fs/super.c:366 cleanup_mnt+0x3a4/0x458 fs/namespace.c:1139 __cleanup_mnt+0x20/0x30 fs/namespace.c:1146 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: 3216779 hardirqs last enabled at (3216778): [] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:257 hardirqs last disabled at (3216779): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396 softirqs last enabled at (3215662): [] spin_unlock_bh include/linux/spinlock.h:408 [inline] softirqs last enabled at (3215662): [] __tun_set_ebpf+0x114/0x1bc drivers/net/tun.c:2273 softirqs last disabled at (3216725): [] __do_softirq kernel/softirq.c:610 [inline] softirqs last disabled at (3216725): [] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] softirqs last disabled at (3216725): [] invoke_softirq kernel/softirq.c:457 [inline] softirqs last disabled at (3216725): [] __irq_exit_rcu+0x240/0x440 kernel/softirq.c:659 ---[ end trace 7876eafba9370967 ]--- ------------[ cut here ]------------ refcount_t: saturated; leaking memory. WARNING: CPU: 0 PID: 4735 at lib/refcount.c:22 refcount_warn_saturate+0x1b4/0x1f8 lib/refcount.c:22 Modules linked in: CPU: 0 PID: 4735 Comm: dhcpcd 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 : ffff80001f456b60 x29: ffff80001f456b60 x28: ffff0000caf35c00 x27: ffff0000d5edd200 x26: 1fffe0001991aa39 x25: dfff800000000000 x24: 1fffe0001abdba41 x23: ffff0000cfbbbc00 x22: ffff0000d71e1bd4 x21: 000000007ffffffe x20: ffff0000d71e1bd4 x19: ffff80001659e000 x18: 0000000000000102 x17: 0000000000000000 x16: ffff8000111a97c4 x15: 00000000ffffffff x14: 0000000000ff0100 x13: 0000000000000001 x12: 0000000000ff0100 x11: 0000000000000101 x10: 0000000000000000 x9 : 367e53f41cc24700 x8 : 367e53f41cc24700 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff80001f456458 x4 : ffff80001423f280 x3 : ffff800008503958 x2 : 0000000000000001 x1 : 0000000100000101 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] do_softirq+0xfc/0x1b0 kernel/softirq.c:477 __local_bh_enable_ip+0x250/0x380 kernel/softirq.c:401 local_bh_enable+0x28/0x34 include/linux/bottom_half.h:32 rcu_read_unlock_bh include/linux/rcupdate.h:809 [inline] __dev_queue_xmit+0x11c0/0x2800 net/core/dev.c:4315 dev_queue_xmit+0x24/0x34 net/core/dev.c:4321 packet_snd net/packet/af_packet.c:3090 [inline] packet_sendmsg+0x3064/0x3fd4 net/packet/af_packet.c:3121 sock_sendmsg_nosec net/socket.c:704 [inline] __sock_sendmsg net/socket.c:716 [inline] sock_write_iter+0x23c/0x31c net/socket.c:1079 do_iter_readv_writev+0x3a0/0x4f8 fs/read_write.c:-1 do_iter_write+0x1c4/0x670 fs/read_write.c:855 vfs_writev fs/read_write.c:928 [inline] do_writev+0x1e0/0x380 fs/read_write.c:971 __do_sys_writev fs/read_write.c:1044 [inline] __se_sys_writev fs/read_write.c:1041 [inline] __arm64_sys_writev+0x80/0x94 fs/read_write.c:1041 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x1fc/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: 2997 hardirqs last enabled at (2996): [] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:257 hardirqs last disabled at (2997): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396 softirqs last enabled at (2710): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:31 softirqs last disabled at (2711): [] __do_softirq kernel/softirq.c:610 [inline] softirqs last disabled at (2711): [] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] softirqs last disabled at (2711): [] do_softirq+0xfc/0x1b0 kernel/softirq.c:477 ---[ end trace 7876eafba9370968 ]---