refcount_t: underflow; use-after-free. WARNING: CPU: 0 PID: 429 at lib/refcount.c:87 refcount_dec_and_lock+0x180/0x1ec lib/refcount.c:146 Modules linked in: CPU: 0 PID: 429 Comm: syz-executor.2 Not tainted 6.0.0-rc7-syzkaller-18095-gbbed346d5a96 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/30/2022 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : refcount_dec_and_lock+0x180/0x1ec lib/refcount.c:146 lr : refcount_dec_not_one lib/refcount.c:87 [inline] lr : refcount_dec_and_lock+0x17c/0x1ec lib/refcount.c:146 sp : ffff800013abb8b0 x29: ffff800013abb8b0 x28: 0000000000000040 x27: ffff000124a76750 x26: ffff000124a723a8 x25: 00000000ffffffff x24: 0000000000000000 x23: 00000000c0000000 x22: 0000000000000000 x21: ffff80000d5eb4a0 x20: ffff00012224db20 x19: ffff80000d8c8000 x18: 000000000000018d x17: ffff80000bffd6bc x16: ffff80000db49158 x15: ffff0000c8a61a80 x14: 0000000000000000 x13: 00000000ffffffff x12: 0000000000040000 x11: 0000000000003423 x10: ffff800019f39000 x9 : ae98d0865355cb00 x8 : ae98d0865355cb00 x7 : ffff800008161d1c x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000001 x3 : 0000000000000000 x2 : 0000000000000007 x1 : 0000000100000000 x0 : 0000000000000000 Call trace: refcount_dec_and_lock+0x180/0x1ec lib/refcount.c:146 nilfs_put_root+0x30/0x80 fs/nilfs2/the_nilfs.c:797 nilfs_clear_inode+0x108/0x140 fs/nilfs2/inode.c:895 nilfs_evict_inode+0x110/0x1cc fs/nilfs2/inode.c:924 evict+0xec/0x334 fs/inode.c:665 iput_final fs/inode.c:1748 [inline] iput+0x2c4/0x324 fs/inode.c:1774 nilfs_new_inode+0x2c0/0x378 nilfs_create+0x74/0x17c fs/nilfs2/namei.c:85 lookup_open fs/namei.c:3413 [inline] open_last_lookups fs/namei.c:3481 [inline] path_openat+0x804/0x11c4 fs/namei.c:3688 do_filp_open+0xdc/0x1b8 fs/namei.c:3718 do_sys_openat2+0xb8/0x22c fs/open.c:1313 do_sys_open fs/open.c:1329 [inline] __do_sys_openat fs/open.c:1345 [inline] __se_sys_openat fs/open.c:1340 [inline] __arm64_sys_openat+0xb0/0xe0 fs/open.c:1340 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall arch/arm64/kernel/syscall.c:52 [inline] el0_svc_common+0x138/0x220 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x48/0x164 arch/arm64/kernel/syscall.c:206 el0_svc+0x58/0x150 arch/arm64/kernel/entry-common.c:636 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:654 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581 irq event stamp: 3200 hardirqs last enabled at (3199): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1367 [inline] hardirqs last enabled at (3199): [] finish_lock_switch+0x94/0xe8 kernel/sched/core.c:4942 hardirqs last disabled at (3200): [] el1_dbg+0x24/0x5c arch/arm64/kernel/entry-common.c:404 softirqs last enabled at (3112): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (3110): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]---