syzbot


kernel BUG in ext4_alloc_file_blocks

Status: upstream: reported C repro on 2025/10/10 15:21
Bug presence: origin:lts
[Documentation on labels]
Reported-by: syzbot+8c381bcee2948a154ec6@syzkaller.appspotmail.com
First crash: 1d21h, last: 1d21h
Bug presence (2)
Date Name Commit Repro Result
2025/10/12 lts (merge base) f97f1002271b C [report] kernel BUG in ext4_alloc_file_blocks
2025/10/12 upstream (ToT) 67029a49db6c C Didn't crash
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in ext4_alloc_file_blocks ext4 -1 C error error 3 70d 198d 0/29 upstream: reported C repro on 2025/03/27 16:27

Sample crash report:
------------[ cut here ]------------
kernel BUG at fs/ext4/extents.c:4491!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 1901 Comm: syz.1.366 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025
RIP: 0010:ext4_alloc_file_blocks+0xb3d/0xb40 fs/ext4/extents.c:4491
Code: 8b 4c 24 10 80 e1 07 fe c1 38 c1 0f 8c 82 f6 ff ff 48 8b 7c 24 10 e8 52 dd d0 ff e9 73 f6 ff ff e8 58 bf 09 03 e8 b3 6f 8c ff <0f> 0b 90 55 48 89 e5 41 57 41 56 41 55 41 54 53 89 cb 41 89 d6 49
RSP: 0018:ffffc90001217b80 EFLAGS: 00010293
RAX: ffffffff81e3ae4d RBX: 0000000000000003 RCX: ffff88811012bcc0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90001217d00 R08: dffffc0000000000 R09: ffffed1026a200c2
R10: ffffed1026a200c2 R11: 1ffff11026a200c1 R12: ffff888135100608
R13: ffff888135100720 R14: 0000000000000000 R15: 0000000000000000
FS:  00007f0fb7fe36c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6171979d58 CR3: 000000011fbbc000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ext4_zero_range+0x449/0xd00 fs/ext4/extents.c:4641
 ext4_fallocate+0x56a/0x1dd0 fs/ext4/extents.c:4776
 vfs_fallocate+0x4c5/0x5a0 fs/open.c:324
 ksys_fallocate fs/open.c:347 [inline]
 __do_sys_fallocate fs/open.c:355 [inline]
 __se_sys_fallocate fs/open.c:353 [inline]
 __x64_sys_fallocate+0xc0/0x110 fs/open.c:353
 x64_sys_call+0x7fa/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:286
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f0fb718eec9
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:00007f0fb7fe3038 EFLAGS: 00000246 ORIG_RAX: 000000000000011d
RAX: ffffffffffffffda RBX: 00007f0fb73e6090 RCX: 00007f0fb718eec9
RDX: 0000000000000002 RSI: 0000000000000010 RDI: 0000000000000004
RBP: 00007f0fb7211f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000007fff R11: 0000000000000246 R12: 0000000000000000
R13: 00007f0fb73e6128 R14: 00007f0fb73e6090 R15: 00007fff2d06d848
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ext4_alloc_file_blocks+0xb3d/0xb40 fs/ext4/extents.c:4491
Code: 8b 4c 24 10 80 e1 07 fe c1 38 c1 0f 8c 82 f6 ff ff 48 8b 7c 24 10 e8 52 dd d0 ff e9 73 f6 ff ff e8 58 bf 09 03 e8 b3 6f 8c ff <0f> 0b 90 55 48 89 e5 41 57 41 56 41 55 41 54 53 89 cb 41 89 d6 49
RSP: 0018:ffffc90001217b80 EFLAGS: 00010293
RAX: ffffffff81e3ae4d RBX: 0000000000000003 RCX: ffff88811012bcc0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90001217d00 R08: dffffc0000000000 R09: ffffed1026a200c2
R10: ffffed1026a200c2 R11: 1ffff11026a200c1 R12: ffff888135100608
R13: ffff888135100720 R14: 0000000000000000 R15: 0000000000000000
FS:  00007f0fb7fe36c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f831413d000 CR3: 000000011fbbc000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/10/10 15:20 android14-6.1 1257aa4519ee ff1712fe .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-6-1 kernel BUG in ext4_alloc_file_blocks
* Struck through repros no longer work on HEAD.