------------[ cut here ]------------ WARNING: CPU: 1 PID: 5884 at fs/buffer.c:1193 mark_buffer_dirty+0x376/0x3e0 fs/buffer.c:1193 Modules linked in: CPU: 1 PID: 5884 Comm: syz-executor.4 Not tainted 6.5.0-rc6-syzkaller-00036-g4853c74bd7ab #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 RIP: 0010:mark_buffer_dirty+0x376/0x3e0 fs/buffer.c:1193 Code: e9 cf 08 8c ff e8 ca 08 8c ff 48 89 ef e8 62 ea e7 ff 5b 5d e9 bb 08 8c ff e8 b6 08 8c ff 0f 0b e9 10 fe ff ff e8 aa 08 8c ff <0f> 0b e9 b7 fc ff ff e8 9e 08 8c ff 0f 0b e9 d6 fc ff ff 48 89 df RSP: 0018:ffffc9000af077b0 EFLAGS: 00010287 RAX: 00000000000040e1 RBX: ffff8880759c10e8 RCX: ffffc9000e55b000 RDX: 0000000000040000 RSI: ffffffff81f9fff6 RDI: 0000000000000001 RBP: ffff88802a65a000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000094000 R12: ffff88804dc7ee40 R13: ffff88807c100fa0 R14: ffff88807c100fa8 R15: ffff888020a5e000 FS: 00007fc93534b6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c002db2000 CR3: 000000005296c000 CR4: 0000000000350ee0 Call Trace: nilfs_palloc_commit_free_entry+0x3b8/0x6c0 fs/nilfs2/alloc.c:626 nilfs_dat_commit_free fs/nilfs2/dat.c:134 [inline] nilfs_dat_commit_end+0x4e9/0x710 fs/nilfs2/dat.c:218 nilfs_bmap_commit_end_ptr fs/nilfs2/bmap.h:219 [inline] nilfs_btree_commit_delete fs/nilfs2/btree.c:1571 [inline] nilfs_btree_delete+0x884/0x10b0 fs/nilfs2/btree.c:1602 nilfs_bmap_do_delete+0x261/0x310 fs/nilfs2/bmap.c:184 nilfs_bmap_do_truncate fs/nilfs2/bmap.c:272 [inline] nilfs_bmap_truncate+0x110/0x310 fs/nilfs2/bmap.c:305 nilfs_truncate_bmap+0x14b/0x350 fs/nilfs2/inode.c:846 nilfs_truncate+0x26d/0x500 fs/nilfs2/inode.c:876 nilfs_setattr+0x26d/0x2c0 fs/nilfs2/inode.c:990 notify_change+0x670/0x1160 fs/attr.c:483 do_truncate+0x15c/0x220 fs/open.c:66 do_sys_ftruncate+0x6a2/0x790 fs/open.c:194 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:0x7fc93467cae9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fc93534b0c8 EFLAGS: 00000246 ORIG_RAX: 000000000000004d RAX: ffffffffffffffda RBX: 00007fc93479c120 RCX: 00007fc93467cae9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004 RBP: 00007fc9346c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007fc93479c120 R15: 00007fff179579f8