------------[ cut here ]------------ kernel BUG at fs/ext4/ext4_extents.h:200! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 9934 Comm: syz-executor.0 Not tainted 6.7.0-rc3-syzkaller-00033-g3b47bc037bd4 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 RIP: 0010:ext4_ext_mark_unwritten fs/ext4/ext4_extents.h:200 [inline] RIP: 0010:ext4_split_extent_at+0x10ee/0x1100 fs/ext4/extents.c:3221 Code: 4c 8b 74 24 70 48 8b 74 24 38 e9 42 fa ff ff e8 f8 77 4f ff 90 0f 0b e8 f0 77 4f ff 90 0f 0b e8 88 e2 d7 08 e8 e3 77 4f ff 90 <0f> 0b e8 db 77 4f ff 90 0f 0b e8 d3 77 4f ff 90 0f 0b 55 41 57 41 RSP: 0018:ffffc9000363eec0 EFLAGS: 00010293 RAX: ffffffff823f025d RBX: 0000000000000000 RCX: ffff8880200e5940 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc9000363f028 R08: ffffffff823ef63c R09: 1ffff1100c62b3d0 R10: dffffc0000000000 R11: ffffed100c62b3d1 R12: 0000000000000000 R13: ffff888022e35b00 R14: 0000000000000000 R15: dffffc0000000000 FS: 00007fd512c996c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002003f000 CR3: 000000001f889000 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+0x18a5/0x7150 fs/ext4/extents.c:4166 ext4_map_blocks+0xa2f/0x1cd0 fs/ext4/inode.c:621 ext4_iomap_alloc fs/ext4/inode.c:3320 [inline] ext4_iomap_begin+0x8e6/0xd30 fs/ext4/inode.c:3370 iomap_iter+0x677/0xee0 fs/iomap/iter.c:91 __iomap_dio_rw+0xdcf/0x2330 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:575 [inline] ext4_file_write_iter+0x15b3/0x19b0 fs/ext4/file.c:694 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+0x45/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7fd511e7cae9 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:00007fd512c990c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fd511f9c050 RCX: 00007fd511e7cae9 RDX: 0000000000000012 RSI: 0000000020000000 RDI: 0000000000000004 RBP: 00007fd511ec847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fd511f9c050 R15: 00007ffccb78d1f8 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+0x10ee/0x1100 fs/ext4/extents.c:3221 Code: 4c 8b 74 24 70 48 8b 74 24 38 e9 42 fa ff ff e8 f8 77 4f ff 90 0f 0b e8 f0 77 4f ff 90 0f 0b e8 88 e2 d7 08 e8 e3 77 4f ff 90 <0f> 0b e8 db 77 4f ff 90 0f 0b e8 d3 77 4f ff 90 0f 0b 55 41 57 41 RSP: 0018:ffffc9000363eec0 EFLAGS: 00010293 RAX: ffffffff823f025d RBX: 0000000000000000 RCX: ffff8880200e5940 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc9000363f028 R08: ffffffff823ef63c R09: 1ffff1100c62b3d0 R10: dffffc0000000000 R11: ffffed100c62b3d1 R12: 0000000000000000 R13: ffff888022e35b00 R14: 0000000000000000 R15: dffffc0000000000 FS: 00007fd512c996c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002003f000 CR3: 000000001f889000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400