kernel BUG in ext4_ext_insert_index

Status: auto-obsoleted due to no activity on 2026/10/10 02:44
Reported-by: syzbot+b9ae9e1fdb60be2bb2c8@syzkaller.appspotmail.com
First crash: 348d, last: 179d
Fix bisection: failed (error log, bisect log)
  
▶ ▼ Bug presence (2)
Date Name Commit Repro Result
2026/10/10 lts (merge base) 722980f27458 C Didn't crash
2026/10/10 upstream (ToT) 3857c2fe5449 C Didn't crash
▶ ▼ Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-10 kernel BUG in ext4_ext_insert_index -1 syz, C done 20 98d 518d 0/2 upstream: reported C repro on 2025/05/12 05:54
▶ ▼ Last patch testing requests (2)
Created Duration User Patch Repo Result
2026/08/23 21:02 16m retest repro android13-5.15-lts no crash job log log
2026/08/23 21:02 16m retest repro android13-5.15-lts no crash job log log
▶ ▼ Fix bisection attempts (2)
Created Duration User Patch Repo Result
2026/05/15 22:57 16m bisect fix android13-5.15-lts error job log
2026/01/16 10:27 1h28m bisect fix android13-5.15-lts OK (0) job log log

Sample crash report:
------------[ cut here ]------------
kernel BUG at fs/ext4/extents.c:1015!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 3238 Comm: syz.0.893 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026
RIP: 0010:ext4_ext_insert_index+0x54a/0x550 fs/ext4/extents.c:1015
Code: 4c 89 fa e9 ca fd ff ff 44 89 f1 80 e1 07 fe c1 38 c1 0f 8c dd fd ff ff 4c 89 f7 e8 b0 fa d2 ff e9 d0 fd ff ff e8 36 cc 93 ff <0f> 0b 0f 1f 40 00 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 81 ec
RSP: 0018:ffffc90000dd68e0 EFLAGS: 00010287
RAX: ffffffff81d5faaa RBX: ffff88812c59543c RCX: 0000000000080000
RDX: ffffc90002f17000 RSI: 000000000000cec8 RDI: 000000000000cec9
RBP: ffffc90000dd6950 R08: ffff8881298ccc7f R09: 1ffff1102531998f
R10: dffffc0000000000 R11: ffffed1025319990 R12: 0000000000000000
R13: 000000000000011f R14: 00000000fffffffc R15: 0000000000000054
FS:  00007f6312f3f6c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000042000 CR3: 00000001065af000 CR4: 00000000003506b0
DR0: 0000000000000065 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ext4_ext_split fs/ext4/extents.c:1275 [inline]
 ext4_ext_create_new_leaf fs/ext4/extents.c:1419 [inline]
 ext4_ext_insert_extent+0x3b09/0x47c0 fs/ext4/extents.c:2103
 ext4_ext_map_blocks+0x186c/0x61e0 fs/ext4/extents.c:4368
 ext4_map_blocks+0x988/0x1b30 fs/ext4/inode.c:674
 _ext4_get_block+0x1ea/0x540 fs/ext4/inode.c:817
 ext4_get_block_unwritten+0x2a/0x40 fs/ext4/inode.c:848
 ext4_block_write_begin+0x563/0x1160 fs/ext4/inode.c:1102
 ext4_write_begin+0x65a/0x12e0 fs/ext4/ext4_jbd2.h:-1
 ext4_da_write_begin+0x321/0xbf0 fs/ext4/inode.c:2988
 generic_perform_write+0x2b7/0x690 mm/filemap.c:3870
 ext4_buffered_write_iter+0x4ed/0x670 fs/ext4/file.c:270
 ext4_file_write_iter+0x440/0x1540 fs/ext4/file.c:-1
 do_iter_readv_writev+0x478/0x5f0 fs/read_write.c:-1
 do_iter_write+0x1fa/0x7b0 fs/read_write.c:855
 vfs_writev+0x2df/0x570 fs/read_write.c:928
 do_pwritev fs/read_write.c:1025 [inline]
 __do_sys_pwritev2 fs/read_write.c:1084 [inline]
 __se_sys_pwritev2+0x1af/0x2b0 fs/read_write.c:1075
 __x64_sys_pwritev2+0xbf/0xd0 fs/read_write.c:1075
 x64_sys_call+0x346/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:329
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f6314505799
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f6312f3f028 EFLAGS: 00000246 ORIG_RAX: 0000000000000148
RAX: ffffffffffffffda RBX: 00007f631477f090 RCX: 00007f6314505799
RDX: 0000000000000001 RSI: 0000200000000100 RDI: 0000000000000004
RBP: 00007f631459bc99 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000005405 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f631477f128 R14: 00007f631477f090 R15: 00007ffde85b78f8
 </TASK>
Modules linked in:
---[ end trace e7e50dfe749dbc4f ]---
RIP: 0010:ext4_ext_insert_index+0x54a/0x550 fs/ext4/extents.c:1015
Code: 4c 89 fa e9 ca fd ff ff 44 89 f1 80 e1 07 fe c1 38 c1 0f 8c dd fd ff ff 4c 89 f7 e8 b0 fa d2 ff e9 d0 fd ff ff e8 36 cc 93 ff <0f> 0b 0f 1f 40 00 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 81 ec
RSP: 0018:ffffc90000dd68e0 EFLAGS: 00010287
RAX: ffffffff81d5faaa RBX: ffff88812c59543c RCX: 0000000000080000
RDX: ffffc90002f17000 RSI: 000000000000cec8 RDI: 000000000000cec9
RBP: ffffc90000dd6950 R08: ffff8881298ccc7f R09: 1ffff1102531998f
R10: dffffc0000000000 R11: ffffed1025319990 R12: 0000000000000000
R13: 000000000000011f R14: 00000000fffffffc R15: 0000000000000054
FS:  00007f6312f3f6c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffccc33ce38 CR3: 00000001065af000 CR4: 00000000003506a0
DR0: 0000000000000065 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (9):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/03/18 19:02 android13-5.15-lts 60dba25bf158 0199f9a1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 kernel BUG in ext4_ext_insert_index
2026/02/10 03:01 android13-5.15-lts c3393955a6be 4ab09a02 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-15 kernel BUG in ext4_ext_insert_index
2025/11/30 04:04 android13-5.15-lts 057fdbf6d3c7 d6526ea3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-15 kernel BUG in ext4_ext_insert_index
2025/11/30 02:57 android13-5.15-lts 057fdbf6d3c7 d6526ea3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-15 kernel BUG in ext4_ext_insert_index
2025/11/29 19:40 android13-5.15-lts 057fdbf6d3c7 d6526ea3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-15 kernel BUG in ext4_ext_insert_index
2025/11/29 18:39 android13-5.15-lts 057fdbf6d3c7 d6526ea3 .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-15 kernel BUG in ext4_ext_insert_index
2025/10/29 09:56 android13-5.15-lts 1edb21e89ce4 fd2207e7 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-15 kernel BUG in ext4_ext_insert_index
2025/10/29 06:39 android13-5.15-lts 1edb21e89ce4 fd2207e7 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-15 kernel BUG in ext4_ext_insert_index
2025/10/28 23:49 android13-5.15-lts 1edb21e89ce4 fd2207e7 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-15 kernel BUG in ext4_ext_insert_index
* Struck through repros no longer work on HEAD.