------------[ cut here ]------------ kernel BUG at fs/ext4/inode.c:2435! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 1639 Comm: syz.0.252 Not tainted 5.10.223-syzkaller-01561-g0890c03b8b7d #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 RIP: 0010:mpage_map_one_extent fs/ext4/inode.c:2435 [inline] RIP: 0010:mpage_map_and_submit_extent fs/ext4/inode.c:2476 [inline] RIP: 0010:ext4_writepages+0x3b44/0x3c00 fs/ext4/inode.c:2844 Code: 00 74 08 48 89 df e8 6b e1 c9 ff 48 8b 3b 48 8b 74 24 28 48 8b 54 24 50 44 89 e1 45 89 f8 e8 b3 d8 07 00 eb 5d e8 6c 48 8c ff <0f> 0b e8 65 48 8c ff eb 3b e8 5e 48 8c ff eb 77 e8 57 48 8c ff 31 RSP: 0018:ffffc90000d17060 EFLAGS: 00010293 RAX: ffffffff81de6094 RBX: dffffc0000000000 RCX: ffff888117094f00 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90000d17450 R08: ffffffff81de3c99 R09: ffffed10248bbee8 R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc90000d17370 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 00007fdc399b16c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: fffffffffffffffd CR3: 000000011ee57000 CR4: 00000000003526a0 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 filemap_write_and_wait_range+0x64/0xe0 mm/filemap.c:660 filemap_write_and_wait include/linux/fs.h:2780 [inline] fiemap_prep+0x1e0/0x230 fs/ioctl.c:191 ext4_get_es_cache+0x2aa/0x940 fs/ext4/extents.c:5024 ext4_ioctl_get_es_cache fs/ext4/ioctl.c:813 [inline] __ext4_ioctl fs/ext4/ioctl.c:1252 [inline] ext4_ioctl+0x1ae5/0x66d0 fs/ext4/ioctl.c:1334 vfs_ioctl fs/ioctl.c:48 [inline] __do_sys_ioctl fs/ioctl.c:753 [inline] __se_sys_ioctl+0x114/0x190 fs/ioctl.c:739 __x64_sys_ioctl+0x7b/0x90 fs/ioctl.c:739 do_syscall_64+0x34/0x70 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fdc3ad33e79 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fdc399b1038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fdc3aecff80 RCX: 00007fdc3ad33e79 RDX: 0000000020000880 RSI: 00000000c020662a RDI: 0000000000000008 RBP: 00007fdc3ada1916 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fdc3aecff80 R15: 00007fffcdfd3e78 Modules linked in: ---[ end trace d6e8ff217da7369b ]--- RIP: 0010:mpage_map_one_extent fs/ext4/inode.c:2435 [inline] RIP: 0010:mpage_map_and_submit_extent fs/ext4/inode.c:2476 [inline] RIP: 0010:ext4_writepages+0x3b44/0x3c00 fs/ext4/inode.c:2844 Code: 00 74 08 48 89 df e8 6b e1 c9 ff 48 8b 3b 48 8b 74 24 28 48 8b 54 24 50 44 89 e1 45 89 f8 e8 b3 d8 07 00 eb 5d e8 6c 48 8c ff <0f> 0b e8 65 48 8c ff eb 3b e8 5e 48 8c ff eb 77 e8 57 48 8c ff 31 RSP: 0018:ffffc90000d17060 EFLAGS: 00010293 RAX: ffffffff81de6094 RBX: dffffc0000000000 RCX: ffff888117094f00 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90000d17450 R08: ffffffff81de3c99 R09: ffffed10248bbee8 R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc90000d17370 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 00007fdc399b16c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: fffffffffffffffd CR3: 000000011ee57000 CR4: 00000000003526a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400