------------[ cut here ]------------ refcount_t: addition on 0; use-after-free. WARNING: CPU: 0 PID: 4026 at lib/refcount.c:25 refcount_warn_saturate+0x134/0x1f8 lib/refcount.c:25 Modules linked in: CPU: 0 PID: 4026 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 : ffff800008007640 x29: ffff800008007640 x28: ffff0000c9323800 x27: ffff0000cec32a00 x26: 1fffe00018353001 x25: dfff800000000000 x24: 1fffe00019d86541 x23: ffff0000e70fb000 x22: ffff0000c20e0154 x21: ffff0000cd7ea880 x20: ffff0000c20e0154 x19: ffff80001659e000 x18: 0000000000000101 x17: 0000000000000000 x16: ffff8000082bf3c8 x15: 0000000000000012 x14: 0000000000ff0100 x13: 1ffff0000282c06b x12: 0000000000ff0100 x11: 0000000000000101 x10: 0000000000000000 x9 : 43ab083ec1da7a00 x8 : 43ab083ec1da7a00 x7 : 0000000000000000 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000000 x3 : ffff800008044e7c x2 : 0000000000000002 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_crypto_clone_msg+0x98/0x150 net/tipc/crypto.c:1667 tipc_crypto_xmit+0x17a0/0x2220 net/tipc/crypto.c:1728 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] console_unlock+0xc90/0x133c kernel/printk/printk.c:2748 vprintk_emit+0x13c/0x218 kernel/printk/printk.c:2274 vprintk_default+0x54/0x80 kernel/printk/printk.c:2289 vprintk+0x1e8/0x284 kernel/printk/printk_safe.c:45 _printk+0xd0/0x118 kernel/printk/printk.c:2299 __ext4_error_file+0x3e0/0x3f8 fs/ext4/super.c:-1 __ext4_check_dir_entry+0x64c/0x814 fs/ext4/dir.c:114 ext4_read_inline_dir+0x738/0xb80 fs/ext4/inline.c:1599 ext4_readdir+0x2ec/0x2fc8 fs/ext4/dir.c:161 iterate_dir+0x1f0/0x4cc fs/readdir.c:-1 __do_sys_getdents64 fs/readdir.c:369 [inline] __se_sys_getdents64 fs/readdir.c:354 [inline] __arm64_sys_getdents64+0x11c/0x340 fs/readdir.c:354 __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: 419251 hardirqs last enabled at (419250): [] console_trylock_spinning+0x160/0x268 kernel/printk/printk.c:1891 hardirqs last disabled at (419251): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396 softirqs last enabled at (419120): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:31 softirqs last disabled at (419231): [] __do_softirq kernel/softirq.c:610 [inline] softirqs last disabled at (419231): [] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] softirqs last disabled at (419231): [] invoke_softirq kernel/softirq.c:457 [inline] softirqs last disabled at (419231): [] __irq_exit_rcu+0x240/0x440 kernel/softirq.c:659 ---[ end trace ae6db92a397f6727 ]--- ------------[ cut here ]------------ refcount_t: underflow; use-after-free. WARNING: CPU: 0 PID: 4026 at lib/refcount.c:28 refcount_warn_saturate+0x154/0x1f8 lib/refcount.c:28 Modules linked in: CPU: 0 PID: 4026 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 : ffff800008007640 x29: ffff800008007640 x28: ffff0000c9323800 x27: 0000000000000000 x26: 1fffe00018353001 x25: dfff800000000000 x24: 1fffe00019d86541 x23: ffff0000d27aaa50 x22: ffff0000c20e0000 x21: ffff0000cd7ea880 x20: ffff0000c20e0154 x19: ffff80001659e000 x18: 0000000000000101 x17: 0000000000000000 x16: ffff8000111a97c4 x15: 0000000000000012 x14: 0000000000ff0100 x13: 1ffff0000282c06b x12: 0000000000ff0100 x11: 0000000000000101 x10: 0000000000000000 x9 : 43ab083ec1da7a00 x8 : 43ab083ec1da7a00 x7 : 0000000000000000 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000000 x3 : ffff800008503958 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_crypto_clone_msg+0x98/0x150 net/tipc/crypto.c:1667 tipc_crypto_xmit+0x17a0/0x2220 net/tipc/crypto.c:1728 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] console_unlock+0xc90/0x133c kernel/printk/printk.c:2748 vprintk_emit+0x13c/0x218 kernel/printk/printk.c:2274 vprintk_default+0x54/0x80 kernel/printk/printk.c:2289 vprintk+0x1e8/0x284 kernel/printk/printk_safe.c:45 _printk+0xd0/0x118 kernel/printk/printk.c:2299 __ext4_error_file+0x3e0/0x3f8 fs/ext4/super.c:-1 __ext4_check_dir_entry+0x64c/0x814 fs/ext4/dir.c:114 ext4_read_inline_dir+0x738/0xb80 fs/ext4/inline.c:1599 ext4_readdir+0x2ec/0x2fc8 fs/ext4/dir.c:161 iterate_dir+0x1f0/0x4cc fs/readdir.c:-1 __do_sys_getdents64 fs/readdir.c:369 [inline] __se_sys_getdents64 fs/readdir.c:354 [inline] __arm64_sys_getdents64+0x11c/0x340 fs/readdir.c:354 __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: 419271 hardirqs last enabled at (419270): [] console_trylock_spinning+0x160/0x268 kernel/printk/printk.c:1891 hardirqs last disabled at (419271): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396 softirqs last enabled at (419120): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:31 softirqs last disabled at (419231): [] __do_softirq kernel/softirq.c:610 [inline] softirqs last disabled at (419231): [] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] softirqs last disabled at (419231): [] invoke_softirq kernel/softirq.c:457 [inline] softirqs last disabled at (419231): [] __irq_exit_rcu+0x240/0x440 kernel/softirq.c:659 ---[ end trace ae6db92a397f6728 ]--- ------------[ cut here ]------------ refcount_t: saturated; leaking memory. WARNING: CPU: 0 PID: 4026 at lib/refcount.c:22 refcount_warn_saturate+0x1b4/0x1f8 lib/refcount.c:22 Modules linked in: CPU: 0 PID: 4026 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 : ffff800008007800 x29: ffff800008007800 x28: ffff0000c9320c00 x27: ffff0000d0098c00 x26: 1fffe00018353001 x25: dfff800000000000 x24: 1fffe0001a013181 x23: ffff0000e70fb000 x22: ffff0000c20e0154 x21: 000000007ffffffe x20: ffff0000c20e0154 x19: ffff80001659e000 x18: 0000000000000101 x17: 0000000000000000 x16: ffff8000111a97c4 x15: 0000000000000012 x14: 0000000000ff0100 x13: 1ffff0000282c06b x12: 0000000000ff0100 x11: 0000000000000101 x10: 0000000000000000 x9 : 43ab083ec1da7a00 x8 : 43ab083ec1da7a00 x7 : 0000000000000000 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000000 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 arch_local_irq_restore arch/arm64/include/asm/irqflags.h:122 [inline] console_unlock+0xc90/0x133c kernel/printk/printk.c:2748 vprintk_emit+0x13c/0x218 kernel/printk/printk.c:2274 vprintk_default+0x54/0x80 kernel/printk/printk.c:2289 vprintk+0x1e8/0x284 kernel/printk/printk_safe.c:45 _printk+0xd0/0x118 kernel/printk/printk.c:2299 __ext4_error_file+0x3e0/0x3f8 fs/ext4/super.c:-1 __ext4_check_dir_entry+0x64c/0x814 fs/ext4/dir.c:114 ext4_read_inline_dir+0x738/0xb80 fs/ext4/inline.c:1599 ext4_readdir+0x2ec/0x2fc8 fs/ext4/dir.c:161 iterate_dir+0x1f0/0x4cc fs/readdir.c:-1 __do_sys_getdents64 fs/readdir.c:369 [inline] __se_sys_getdents64 fs/readdir.c:354 [inline] __arm64_sys_getdents64+0x11c/0x340 fs/readdir.c:354 __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: 419325 hardirqs last enabled at (419324): [] console_trylock_spinning+0x160/0x268 kernel/printk/printk.c:1891 hardirqs last disabled at (419325): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396 softirqs last enabled at (419120): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:31 softirqs last disabled at (419231): [] __do_softirq kernel/softirq.c:610 [inline] softirqs last disabled at (419231): [] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] softirqs last disabled at (419231): [] invoke_softirq kernel/softirq.c:457 [inline] softirqs last disabled at (419231): [] __irq_exit_rcu+0x240/0x440 kernel/softirq.c:659 ---[ end trace ae6db92a397f6729 ]---