NILFS error (device loop0): nilfs_bmap_last_key: broken bmap (inode number=16) NILFS (loop0): error -5 truncating bmap (ino=16) ------------[ cut here ]------------ WARNING: CPU: 0 PID: 5957 at fs/buffer.c:1193 mark_buffer_dirty+0x376/0x3e0 fs/buffer.c:1193 Modules linked in: CPU: 0 PID: 5957 Comm: syz-executor176 Not tainted 6.5.0-rc4-syzkaller-00251-gf0ab9f34e59e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023 RIP: 0010:mark_buffer_dirty+0x376/0x3e0 fs/buffer.c:1193 Code: e9 df e8 8c ff e8 da e8 8c ff 48 89 ef e8 c2 e9 e7 ff 5b 5d e9 cb e8 8c ff e8 c6 e8 8c ff 0f 0b e9 10 fe ff ff e8 ba e8 8c ff <0f> 0b e9 b7 fc ff ff e8 ae e8 8c ff 0f 0b e9 d6 fc ff ff 48 89 df RSP: 0018:ffffc900052c7a10 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff88806eb7f128 RCX: 0000000000000000 RDX: ffff88802ade8200 RSI: ffffffff81f83786 RDI: 0000000000000001 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 205d373539355420 R12: 1ffff92000a58f46 R13: 0000000000000007 R14: dffffc0000000000 R15: 0000000000000000 FS: 0000555556375380(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f094397b0f8 CR3: 00000000183f7000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __nilfs_mark_inode_dirty+0xb2/0x240 fs/nilfs2/inode.c:1115 nilfs_mark_inode_dirty fs/nilfs2/nilfs.h:288 [inline] nilfs_truncate+0x3e3/0x500 fs/nilfs2/inode.c:882 nilfs_write_failed fs/nilfs2/inode.c:246 [inline] nilfs_write_begin+0x15c/0x1a0 fs/nilfs2/inode.c:263 generic_perform_write+0x278/0x600 mm/filemap.c:3923 __generic_file_write_iter+0x1f9/0x240 mm/filemap.c:4018 generic_file_write_iter+0xe3/0x350 mm/filemap.c:4044 call_write_iter include/linux/fs.h:1871 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x650/0xe40 fs/read_write.c:584 ksys_write+0x12f/0x250 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f0943903169 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 21 18 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 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:00007ffd017c6e58 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f094394c08d RCX: 00007f0943903169 RDX: 000000000000002f RSI: 0000000020000040 RDI: 0000000000000004 RBP: 0000000000000004 R08: 00007ffd017c6bee R09: 0000000000000808 R10: 0000000000000014 R11: 0000000000000246 R12: 00007ffd017c6ea0 R13: 00007ffd017c6ee0 R14: 0000000000100000 R15: 0000000000000003