------------[ cut here ]------------ refcount_t: underflow; use-after-free. WARNING: CPU: 0 PID: 3064 at lib/refcount.c:87 refcount_dec_and_lock+0x180/0x1ec lib/refcount.c:146 Modules linked in: CPU: 0 PID: 3064 Comm: syz-executor.1 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 : ffff800012773b20 x29: ffff800012773b20 x28: ffff80000cc15062 x27: ffff00012fa13640 x26: 0000000000000002 x25: 00000000ffffffff x24: 0000000000000000 x23: 00000000c0000000 x22: 0000000000000000 x21: ffff80000d5eb4a0 x20: ffff000129ae0d20 x19: ffff80000d8c8000 x18: 00000000000003bb x17: ffff80000bffd6bc x16: ffff80000db49158 x15: ffff0000c2348000 x14: 0000000000000000 x13: 00000000ffffffff x12: ffff0000c2348000 x11: ff808000081c0d5c x10: 0000000000000000 x9 : 93f9ba2dc2959c00 x8 : 93f9ba2dc2959c00 x7 : ffff800008161d1c x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000001 x3 : 0000000000000000 x2 : 0000000000000006 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_segctor_destroy fs/nilfs2/segment.c:2747 [inline] nilfs_detach_log_writer+0x3b8/0x4d0 fs/nilfs2/segment.c:2810 nilfs_put_super+0x28/0x9c fs/nilfs2/super.c:468 generic_shutdown_super+0x8c/0x190 fs/super.c:491 kill_block_super+0x30/0x78 fs/super.c:1427 deactivate_locked_super+0x70/0xe8 fs/super.c:332 deactivate_super+0xd0/0xd4 fs/super.c:363 cleanup_mnt+0x1f8/0x234 fs/namespace.c:1186 __cleanup_mnt+0x20/0x30 fs/namespace.c:1193 task_work_run+0xc4/0x14c kernel/task_work.c:177 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] do_notify_resume+0x174/0x1f0 arch/arm64/kernel/signal.c:1127 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline] el0_svc+0x9c/0x150 arch/arm64/kernel/entry-common.c:637 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: 8386620 hardirqs last enabled at (8386619): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1367 [inline] hardirqs last enabled at (8386619): [] finish_lock_switch+0x94/0xe8 kernel/sched/core.c:4942 hardirqs last disabled at (8386620): [] el1_dbg+0x24/0x5c arch/arm64/kernel/entry-common.c:404 softirqs last enabled at (8385942): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (8385940): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ kernel BUG at fs/inode.c:612! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 3064 Comm: syz-executor.1 Tainted: G W 6.0.0-rc7-syzkaller-18095-gbbed346d5a96 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/30/2022 pstate: 804000c5 (Nzcv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : clear_inode+0xac/0xd0 fs/inode.c:612 lr : clear_inode+0xac/0xd0 fs/inode.c:612 sp : ffff800012773a50 x29: ffff800012773a50 x28: ffff00010a8fda00 x27: ffff0001039820d0 x26: ffff0000c2348000 x25: 0000000000000000 x24: 0000000000000001 x23: ffff0001300fca50 x22: ffff80000c135750 x21: ffff80000ef34990 x20: ffff0001300fcac8 x19: ffff0001300fc898 x18: 00000000000001ec x17: 0000000000000000 x16: ffff80000db49158 x15: ffff0000c2348000 x14: 0000000000000050 x13: 00000000ffffffff x12: ffff0000c2348000 x11: ff808000085e7d0c x10: 0000000000000000 x9 : ffff8000085e7d0c x8 : ffff0000c2348000 x7 : ffff8000085e7c88 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000001 x3 : 0000000000000000 x2 : 0000000000000001 x1 : ffff80000ef34990 x0 : 0000000000000000 Call trace: clear_inode+0xac/0xd0 fs/inode.c:612 nilfs_evict_inode+0x60/0x1cc fs/nilfs2/inode.c:907 evict+0xec/0x334 fs/inode.c:665 iput_final fs/inode.c:1748 [inline] iput+0x2c4/0x324 fs/inode.c:1774 nilfs_detach_btree_node_cache fs/nilfs2/inode.c:696 [inline] nilfs_clear_inode+0xcc/0x140 fs/nilfs2/inode.c:892 nilfs_evict_inode+0x68/0x1cc fs/nilfs2/inode.c:908 evict+0xec/0x334 fs/inode.c:665 dispose_list fs/inode.c:698 [inline] evict_inodes+0x2e0/0x354 fs/inode.c:748 generic_shutdown_super+0x50/0x190 fs/super.c:480 kill_block_super+0x30/0x78 fs/super.c:1427 deactivate_locked_super+0x70/0xe8 fs/super.c:332 deactivate_super+0xd0/0xd4 fs/super.c:363 cleanup_mnt+0x1f8/0x234 fs/namespace.c:1186 __cleanup_mnt+0x20/0x30 fs/namespace.c:1193 task_work_run+0xc4/0x14c kernel/task_work.c:177 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] do_notify_resume+0x174/0x1f0 arch/arm64/kernel/signal.c:1127 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline] el0_svc+0x9c/0x150 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:654 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581 Code: a8c37bfd d50323bf d65f03c0 97f2dfc3 (d4210000) ---[ end trace 0000000000000000 ]---