EXT4-fs error (device loop2): ext4_truncate:4389: inode #19: comm syz-executor.2: mark_inode_dirty error ------------[ cut here ]------------ kernel BUG at fs/ext4/inode.c:2463! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 403 Comm: syz-executor.2 Not tainted 5.10.225-syzkaller-1003235-g8d23314f588a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 RIP: 0010:mpage_map_one_extent fs/ext4/inode.c:2463 [inline] RIP: 0010:mpage_map_and_submit_extent fs/ext4/inode.c:2504 [inline] RIP: 0010:ext4_writepages+0x3b44/0x3c00 fs/ext4/inode.c:2872 Code: 00 74 08 48 89 df e8 0b d4 c9 ff 48 8b 3b 48 8b 74 24 28 48 8b 54 24 50 44 89 e1 45 89 f8 e8 03 db 07 00 eb 5d e8 6c 3b 8c ff <0f> 0b e8 65 3b 8c ff eb 3b e8 5e 3b 8c ff eb 77 e8 57 3b 8c ff 31 RSP: 0018:ffffc90001157300 EFLAGS: 00010293 RAX: ffffffff81de7174 RBX: dffffc0000000000 RCX: ffff88810c3ccf00 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc900011576f0 R08: ffffffff81de4d79 R09: ffffed10239f2b37 R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc90001157610 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 00007f10910716c0(0000) GS:ffff8881f7300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002001b03f CR3: 000000010f67f000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: do_writepages+0x12e/0x270 mm/page-writeback.c:2380 __filemap_fdatawrite_range+0x33c/0x3f0 mm/filemap.c:427 file_write_and_wait_range+0x89/0x120 mm/filemap.c:766 ext4_sync_file+0x1a2/0xa30 fs/ext4/fsync.c:151 vfs_fsync_range+0x17b/0x190 fs/sync.c:202 generic_write_sync include/linux/fs.h:2875 [inline] ext4_buffered_write_iter+0x565/0x610 fs/ext4/file.c:278 ext4_file_write_iter+0x193/0x1c80 fs/ext4/file.c:685 call_write_iter include/linux/fs.h:2021 [inline] new_sync_write fs/read_write.c:518 [inline] vfs_write+0xb4c/0xe70 fs/read_write.c:605 ksys_write+0x199/0x2c0 fs/read_write.c:658 __do_sys_write fs/read_write.c:670 [inline] __se_sys_write fs/read_write.c:667 [inline] __x64_sys_write+0x7b/0x90 fs/read_write.c:667 do_syscall_64+0x34/0x70 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f10914ee859 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:00007f10910710c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f109160df80 RCX: 00007f10914ee859 RDX: 000000000208e24b RSI: 0000000020000040 RDI: 0000000000000007 RBP: 00007f109154aad0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f109160df80 R15: 00007fffc55cccd8 Modules linked in: ---[ end trace 57fc8b6b582927bc ]--- RIP: 0010:mpage_map_one_extent fs/ext4/inode.c:2463 [inline] RIP: 0010:mpage_map_and_submit_extent fs/ext4/inode.c:2504 [inline] RIP: 0010:ext4_writepages+0x3b44/0x3c00 fs/ext4/inode.c:2872 Code: 00 74 08 48 89 df e8 0b d4 c9 ff 48 8b 3b 48 8b 74 24 28 48 8b 54 24 50 44 89 e1 45 89 f8 e8 03 db 07 00 eb 5d e8 6c 3b 8c ff <0f> 0b e8 65 3b 8c ff eb 3b e8 5e 3b 8c ff eb 77 e8 57 3b 8c ff 31 RSP: 0018:ffffc90001157300 EFLAGS: 00010293 RAX: ffffffff81de7174 RBX: dffffc0000000000 RCX: ffff88810c3ccf00 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc900011576f0 R08: ffffffff81de4d79 R09: ffffed10239f2b37 R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc90001157610 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 00007f10910716c0(0000) GS:ffff8881f7300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc90747b32c CR3: 000000010f67f000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400