------------[ cut here ]------------ kernel BUG at fs/ext4/ext4_extents.h:200! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 9224 Comm: syz-executor.0 Not tainted 6.6.0-syzkaller-06824-g8bc9e6515183 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 RIP: 0010:ext4_ext_mark_unwritten fs/ext4/ext4_extents.h:200 [inline] RIP: 0010:ext4_split_extent_at+0x10ea/0x1100 fs/ext4/extents.c:3221 Code: 8a ab ff 4c 8b 74 24 70 48 8b 74 24 38 e9 43 fa ff ff e8 79 e6 4f ff 0f 0b e8 72 e6 4f ff 0f 0b e8 9b 4c d1 08 e8 66 e6 4f ff <0f> 0b e8 5f e6 4f ff 0f 0b e8 58 e6 4f ff 0f 0b 66 0f 1f 44 00 00 RSP: 0018:ffffc90009aa6ea0 EFLAGS: 00010293 RAX: ffffffff823ecbca RBX: 0000000000000000 RCX: ffff88802661d940 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90009aa7008 R08: ffffffff823ebfac R09: 1ffff1100ef41600 R10: dffffc0000000000 R11: ffffed100ef41601 R12: 0000000000000000 R13: ffff88801a720800 R14: 0000000000000000 R15: dffffc0000000000 FS: 00007efc810646c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f98f983e000 CR3: 0000000025397000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ext4_split_extent+0x370/0x4e0 fs/ext4/extents.c:3384 ext4_split_convert_extents fs/ext4/extents.c:3712 [inline] ext4_ext_handle_unwritten_extents fs/ext4/extents.c:3874 [inline] ext4_ext_map_blocks+0x18bf/0x7150 fs/ext4/extents.c:4166 ext4_map_blocks+0xa2f/0x1cb0 fs/ext4/inode.c:621 ext4_iomap_alloc fs/ext4/inode.c:3310 [inline] ext4_iomap_begin+0x8e4/0xd30 fs/ext4/inode.c:3360 iomap_iter+0x677/0xec0 fs/iomap/iter.c:91 __iomap_dio_rw+0xdd2/0x2320 fs/iomap/direct-io.c:658 iomap_dio_rw+0x46/0xa0 fs/iomap/direct-io.c:748 ext4_dio_write_iter fs/ext4/file.c:605 [inline] ext4_file_write_iter+0x165f/0x1ad0 fs/ext4/file.c:715 call_write_iter include/linux/fs.h:2020 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x792/0xb20 fs/read_write.c:584 ksys_write+0x1a0/0x2c0 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7efc8027cae9 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:00007efc810640c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007efc8039c050 RCX: 00007efc8027cae9 RDX: 0000000000000012 RSI: 0000000020000000 RDI: 0000000000000004 RBP: 00007efc802c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007efc8039c050 R15: 00007ffd67d60748 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:ext4_ext_mark_unwritten fs/ext4/ext4_extents.h:200 [inline] RIP: 0010:ext4_split_extent_at+0x10ea/0x1100 fs/ext4/extents.c:3221 Code: 8a ab ff 4c 8b 74 24 70 48 8b 74 24 38 e9 43 fa ff ff e8 79 e6 4f ff 0f 0b e8 72 e6 4f ff 0f 0b e8 9b 4c d1 08 e8 66 e6 4f ff <0f> 0b e8 5f e6 4f ff 0f 0b e8 58 e6 4f ff 0f 0b 66 0f 1f 44 00 00 RSP: 0018:ffffc90009aa6ea0 EFLAGS: 00010293 RAX: ffffffff823ecbca RBX: 0000000000000000 RCX: ffff88802661d940 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90009aa7008 R08: ffffffff823ebfac R09: 1ffff1100ef41600 R10: dffffc0000000000 R11: ffffed100ef41601 R12: 0000000000000000 R13: ffff88801a720800 R14: 0000000000000000 R15: dffffc0000000000 FS: 00007efc810646c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f14a283e000 CR3: 0000000025397000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400