------------[ cut here ]------------ refcount_t: underflow; use-after-free. WARNING: CPU: 1 PID: 26040 at lib/refcount.c:87 refcount_dec_and_lock+0x180/0x1ec lib/refcount.c:146 Modules linked in: CPU: 1 PID: 26040 Comm: syz-executor.5 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 : ffff8000157238b0 x29: ffff8000157238b0 x28: 0000000000000040 x27: ffff00012740e3a8 x26: ffff00012740e750 x25: 00000000ffffffff x24: 0000000000000000 x23: 00000000c0000000 x22: 0000000000000000 x21: ffff80000d5eb4a0 x20: ffff0001290a3a20 x19: ffff80000d8c8000 x18: 00000000000002a5 x17: 0000000000000001 x16: ffff80000db49158 x15: ffff000111d43500 x14: 0000000000000000 x13: 00000000ffffffff x12: 0000000000040000 x11: 00000000000030c6 x10: ffff800012a2d000 x9 : 95b490194b11e900 x8 : 95b490194b11e900 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: 4458 hardirqs last enabled at (4457): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1367 [inline] hardirqs last enabled at (4457): [] finish_lock_switch+0x94/0xe8 kernel/sched/core.c:4942 hardirqs last disabled at (4458): [] el1_dbg+0x24/0x5c arch/arm64/kernel/entry-common.c:404 softirqs last enabled at (4378): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (4376): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]---