syzbot


kernel BUG in ext4_ext_insert_index

Status: upstream: reported C repro on 2025/05/12 05:54
Reported-by: syzbot+fbce9d1fb2a8d5af8fa7@syzkaller.appspotmail.com
First crash: 187d, last: 20d
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-15 kernel BUG in ext4_ext_insert_index origin:lts -1 C 3 2d14h 17d 0/2 upstream: reported C repro on 2025/10/28 23:50
Last patch testing requests (10)
Created Duration User Patch Repo Result
2025/10/25 12:13 7m retest repro android13-5.10-lts report log
2025/10/25 12:13 6m retest repro android13-5.10-lts report log
2025/10/25 12:13 9m retest repro android13-5.10-lts report log
2025/10/25 12:13 7m retest repro android13-5.10-lts report log
2025/10/10 23:11 5m retest repro android13-5.10-lts report log
2025/10/10 23:11 9m retest repro android13-5.10-lts report log
2025/10/10 23:11 13m retest repro android13-5.10-lts report log
2025/10/10 23:11 40m retest repro android13-5.10-lts report log
2025/10/10 23:11 11m retest repro android13-5.10-lts report log
2025/09/10 17:04 5m retest repro android13-5.10-lts report log

Sample crash report:
EXT4-fs (loop3): pa ffff888125de2a80: logic 176, phys. 481, len 2
EXT4-fs error (device loop3): ext4_mb_release_inode_pa:4359: group 0, free 0, pa_free 1
------------[ cut here ]------------
kernel BUG at fs/ext4/extents.c:1014!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 386 Comm: syz.3.20 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025
RIP: 0010:ext4_ext_insert_index+0x52d/0x530 fs/ext4/extents.c:1014
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 9d 96 d3 ff e9 d0 fd ff ff e8 83 a9 99 ff <0f> 0b 90 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 81 ec c0 00 00
RSP: 0018:ffffc90001686ae0 EFLAGS: 00010293
RAX: ffffffff81c9fc8d RBX: ffff88813012f430 RCX: ffff8881125c13c0
RDX: 0000000000000000 RSI: 00000000fffffffd RDI: 0000000000000000
RBP: ffffc90001686b50 R08: dffffc0000000000 R09: ffffed1024bbdf27
R10: ffffed1024bbdf27 R11: 1ffff11024bbdf26 R12: 0000000000000000
R13: 000000000000010a R14: 00000000fffffffd R15: 0000000000000054
FS:  0000555560d20500(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000042000 CR3: 0000000111d8a000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 ext4_ext_split fs/ext4/extents.c:1272 [inline]
 ext4_ext_create_new_leaf fs/ext4/extents.c:1414 [inline]
 ext4_ext_insert_extent+0x38c3/0x4530 fs/ext4/extents.c:2098
 ext4_ext_map_blocks+0x148f/0x5d40 fs/ext4/extents.c:4356
 ext4_map_blocks+0x978/0x1bc0 fs/ext4/inode.c:674
 _ext4_get_block+0x1bb/0x4b0 fs/ext4/inode.c:817
 ext4_get_block_unwritten+0x2a/0x40 fs/ext4/inode.c:848
 ext4_block_write_begin+0x567/0x1330 fs/ext4/inode.c:1101
 ext4_write_begin+0x651/0x15a0 fs/ext4/ext4_jbd2.h:-1
 ext4_da_write_begin+0x455/0xe80 fs/ext4/inode.c:3033
 generic_perform_write+0x2be/0x510 mm/filemap.c:3509
 ext4_buffered_write_iter+0x4b8/0x640 fs/ext4/file.c:271
 ext4_file_write_iter+0x536/0x1980 fs/ext4/file.c:-1
 call_write_iter include/linux/fs.h:2066 [inline]
 new_sync_write fs/read_write.c:518 [inline]
 vfs_write+0x725/0xd60 fs/read_write.c:605
 ksys_write+0x140/0x240 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+0x31/0x40 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f3c71415ec9
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:00007fffcb197328 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f3c7166cfa0 RCX: 00007f3c71415ec9
RDX: 00000000fffffdab RSI: 0000200000000000 RDI: 0000000000000006
RBP: 00007f3c71498f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f3c7166cfa0 R14: 00007f3c7166cfa0 R15: 0000000000000003
Modules linked in:
---[ end trace 7e6c4a68463a76b9 ]---
RIP: 0010:ext4_ext_insert_index+0x52d/0x530 fs/ext4/extents.c:1014
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 9d 96 d3 ff e9 d0 fd ff ff e8 83 a9 99 ff <0f> 0b 90 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 81 ec c0 00 00
RSP: 0018:ffffc90001686ae0 EFLAGS: 00010293
RAX: ffffffff81c9fc8d RBX: ffff88813012f430 RCX: ffff8881125c13c0
RDX: 0000000000000000 RSI: 00000000fffffffd RDI: 0000000000000000
RBP: ffffc90001686b50 R08: dffffc0000000000 R09: ffffed1024bbdf27
R10: ffffed1024bbdf27 R11: 1ffff11024bbdf26 R12: 0000000000000000
R13: 000000000000010a R14: 00000000fffffffd R15: 0000000000000054
FS:  0000555560d20500(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f10d7df5000 CR3: 0000000111d8a000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (16):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/09/26 12:45 android13-5.10-lts 911f602c2237 0abd0691 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-10 kernel BUG in ext4_ext_insert_index
2025/07/11 09:51 android13-5.10-lts 59e9a7228857 3cda49cf .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-10 kernel BUG in ext4_ext_insert_index
2025/07/11 08:46 android13-5.10-lts 59e9a7228857 3cda49cf .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-10 kernel BUG in ext4_ext_insert_index
2025/07/11 06:50 android13-5.10-lts 59e9a7228857 3cda49cf .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-10 kernel BUG in ext4_ext_insert_index
2025/07/11 05:37 android13-5.10-lts 59e9a7228857 3cda49cf .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-10 kernel BUG in ext4_ext_insert_index
2025/06/17 07:53 android13-5.10-lts d76d4cd0623a cfebc887 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-10 kernel BUG in ext4_ext_insert_index
2025/06/17 06:33 android13-5.10-lts d76d4cd0623a cfebc887 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-10 kernel BUG in ext4_ext_insert_index
2025/06/16 19:21 android13-5.10-lts d76d4cd0623a d1716036 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-10 kernel BUG in ext4_ext_insert_index
2025/05/12 07:52 android13-5.10-lts 7e2543346ff7 77908e5f .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-10 kernel BUG in ext4_ext_insert_index
2025/05/12 06:29 android13-5.10-lts 7e2543346ff7 77908e5f .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-10 kernel BUG in ext4_ext_insert_index
2025/05/12 05:47 android13-5.10-lts 7e2543346ff7 77908e5f .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-10 kernel BUG in ext4_ext_insert_index
2025/05/12 07:09 android13-5.10-lts 7e2543346ff7 77908e5f .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-10 kernel BUG in ext4_ext_insert_index
2025/06/01 07:39 android13-5.10-lts cf6ed0f1511d 3d2f584d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 kernel BUG in ext4_ext_insert_index
2025/05/31 04:44 android13-5.10-lts cf6ed0f1511d 3d2f584d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 kernel BUG in ext4_ext_insert_index
2025/05/12 07:53 android13-5.10-lts 7e2543346ff7 77908e5f .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 kernel BUG in ext4_ext_insert_index
2025/05/12 05:02 android13-5.10-lts 7e2543346ff7 77908e5f .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 kernel BUG in ext4_ext_insert_index
* Struck through repros no longer work on HEAD.