syzbot


kernel BUG in mb_mark_used

Status: upstream: reported C repro on 2025/03/09 09:53
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+3aa81381a13faa056f88@syzkaller.appspotmail.com
First crash: 51d, last: 2d13h
Bug presence (2)
Date Name Commit Repro Result
2025/03/24 lts (merge base) 0cbb5f65e52f C [report] kernel BUG in mb_mark_used
2025/03/24 upstream (ToT) 586de92313fc C [report] kernel BUG in mb_mark_used
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-15 kernel BUG in mb_mark_used origin:upstream C 1 29d 43d 0/2 upstream: reported C repro on 2025/03/16 17:45
Last patch testing requests (1)
Created Duration User Patch Repo Result
2025/03/24 02:48 14m retest repro android14-6.1 report log
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2025/04/26 22:07 1h44m bisect fix android14-6.1 OK (0) job log log

Sample crash report:
------------[ cut here ]------------
kernel BUG at fs/ext4/mballoc.c:1933!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 295 Comm: syz-executor619 Not tainted 6.1.128-syzkaller-00002-g44db4837f75e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:mb_mark_used+0x1607/0x1620 fs/ext4/mballoc.c:1933
Code: 0f 0b e8 5c 27 7c ff 0f 0b e8 55 27 7c ff 0f 0b e8 4e 27 7c ff 0f 0b e8 47 27 7c ff 0f 0b e8 40 27 7c ff 0f 0b e8 39 27 7c ff <0f> 0b e8 32 27 7c ff 0f 0b e8 2b 27 7c ff 0f 0b 66 0f 1f 84 00 00
RSP: 0018:ffffc90000e57488 EFLAGS: 00010293
RAX: ffffffff81f96da7 RBX: 0000000000008000 RCX: ffff888110e2bcc0
RDX: 0000000000000000 RSI: ffffffff80000000 RDI: 0000000000008000
RBP: ffffc90000e57550 R08: ffffffff81f9588c R09: ffffed1021365a01
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888109b28000
R13: ffffffff80000000 R14: 000000007ffffff4 R15: ffffc90000e57660
FS:  0000555588f9c380(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000400000015000 CR3: 00000001108e9000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ext4_trim_extent fs/ext4/mballoc.c:6446 [inline]
 ext4_try_to_trim_range+0x6a6/0x1180 fs/ext4/mballoc.c:6506
 ext4_trim_all_free fs/ext4/mballoc.c:6568 [inline]
 ext4_trim_fs+0xd51/0x1650 fs/ext4/mballoc.c:6659
 __ext4_ioctl fs/ext4/ioctl.c:1491 [inline]
 ext4_ioctl+0x2720/0x5900 fs/ext4/ioctl.c:1614
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl+0x114/0x190 fs/ioctl.c:856
 __x64_sys_ioctl+0x7b/0x90 fs/ioctl.c:856
 x64_sys_call+0x98/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:17
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fd302ff6ef9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffd3ed70518 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00004000000001c0 RCX: 00007fd302ff6ef9
RDX: 0000400000000b40 RSI: 00000000c0185879 RDI: 0000000000000006
RBP: 0000000000000073 R08: 00007fd303070260 R09: 00007fd303070260
R10: 00007fd303070260 R11: 0000000000000246 R12: 0000000000000073
R13: 00004000000004c0 R14: 0000000000000001 R15: 0000000000000001
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:mb_mark_used+0x1607/0x1620 fs/ext4/mballoc.c:1933
Code: 0f 0b e8 5c 27 7c ff 0f 0b e8 55 27 7c ff 0f 0b e8 4e 27 7c ff 0f 0b e8 47 27 7c ff 0f 0b e8 40 27 7c ff 0f 0b e8 39 27 7c ff <0f> 0b e8 32 27 7c ff 0f 0b e8 2b 27 7c ff 0f 0b 66 0f 1f 84 00 00
RSP: 0018:ffffc90000e57488 EFLAGS: 00010293
RAX: ffffffff81f96da7 RBX: 0000000000008000 RCX: ffff888110e2bcc0
RDX: 0000000000000000 RSI: ffffffff80000000 RDI: 0000000000008000
RBP: ffffc90000e57550 R08: ffffffff81f9588c R09: ffffed1021365a01
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888109b28000
R13: ffffffff80000000 R14: 000000007ffffff4 R15: ffffc90000e57660
FS:  0000555588f9c380(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000400000015000 CR3: 00000001108e9000 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/03/09 09:52 android14-6.1 44db4837f75e 163f510d .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro #1 (clean fs)] [mounted in repro #2 (clean fs)] [mounted in repro #3 (clean fs)] ci2-android-6-1 kernel BUG in mb_mark_used
* Struck through repros no longer work on HEAD.