------------[ cut here ]------------ WARNING: CPU: 0 PID: 5104 at fs/nilfs2/dat.c:158 nilfs_dat_prepare_end+0x24c/0x2a0 Modules linked in: CPU: 0 PID: 5104 Comm: syz-executor.0 Not tainted 6.2.0-syzkaller-05251-g5b7c4cabbb65 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 RIP: 0010:nilfs_dat_prepare_end+0x24c/0x2a0 fs/nilfs2/dat.c:158 Code: e7 38 fe 89 eb 89 d8 48 83 c4 10 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 73 e7 38 fe e8 3e e1 ac fd e9 5a ff ff ff e8 64 e7 38 fe <0f> 0b bb fe ff ff ff eb d2 44 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c RSP: 0018:ffffc9000427f618 EFLAGS: 00010293 RAX: ffffffff8353b8ac RBX: 00000000fffffffe RCX: ffff888029a157c0 RDX: 0000000000000000 RSI: 00000000fffffffe RDI: 00000000fffffffe RBP: 1ffff9200084fed8 R08: ffffffff8353b825 R09: ffffffff8351f3eb R10: 0000000000000002 R11: ffff888029a157c0 R12: ffffc9000427f6c0 R13: ffff888073bf0e28 R14: ffffc9000427f6d8 R15: dffffc0000000000 FS: 0000555555a5d400(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000555555a66848 CR3: 0000000045afd000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: nilfs_bmap_prepare_end_ptr fs/nilfs2/bmap.h:211 [inline] nilfs_direct_delete+0x17f/0x310 fs/nilfs2/direct.c:155 nilfs_bmap_do_delete fs/nilfs2/bmap.c:176 [inline] nilfs_bmap_do_truncate fs/nilfs2/bmap.c:264 [inline] nilfs_bmap_truncate+0x300/0x560 fs/nilfs2/bmap.c:297 nilfs_truncate_bmap+0x207/0x3d0 fs/nilfs2/inode.c:846 nilfs_evict_inode+0x17c/0x420 fs/nilfs2/inode.c:933 evict+0x2a4/0x620 fs/inode.c:665 __dentry_kill+0x436/0x650 fs/dcache.c:607 shrink_dentry_list+0x39c/0x6a0 fs/dcache.c:1201 shrink_dcache_parent+0xcd/0x480 do_one_tree+0x23/0xe0 fs/dcache.c:1682 shrink_dcache_for_umount+0x7d/0x120 fs/dcache.c:1699 generic_shutdown_super+0x67/0x340 fs/super.c:472 kill_block_super+0x7e/0xe0 fs/super.c:1398 deactivate_locked_super+0xa4/0x110 fs/super.c:331 cleanup_mnt+0x490/0x520 fs/namespace.c:1177 task_work_run+0x24a/0x300 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xd9/0x100 kernel/entry/common.c:171 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:203 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x64/0x2e0 kernel/entry/common.c:296 do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f1b90a8d567 Code: ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffd2d21bd08 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f1b90a8d567 RDX: 00007ffd2d21bddb RSI: 000000000000000a RDI: 00007ffd2d21bdd0 RBP: 00007ffd2d21bdd0 R08: 00000000ffffffff R09: 00007ffd2d21bba0 R10: 0000555555a5e8b3 R11: 0000000000000246 R12: 00007f1b90ae6b24 R13: 00007ffd2d21ce90 R14: 0000555555a5e810 R15: 00007ffd2d21ced0