[Android 6.1] kernel BUG in mb_mark_used

6 views
Skip to first unread message

syzbot

unread,
Mar 9, 2025, 5:53:24 AM3/9/25
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 44db4837f75e ANDROID: Update the ABI symbol list
git tree: android14-6.1
console+strace: https://syzkaller.appspot.com/x/log.txt?x=13d41fa0580000
kernel config: https://syzkaller.appspot.com/x/.config?x=686f10664ad3cd36
dashboard link: https://syzkaller.appspot.com/bug?extid=3aa81381a13faa056f88
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=11cf7a54580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=15018664580000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/3a2d269ac638/disk-44db4837.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/5edd296838cd/vmlinux-44db4837.xz
kernel image: https://storage.googleapis.com/syzbot-assets/7e63d0601130/bzImage-44db4837.xz
mounted in repro #1: https://storage.googleapis.com/syzbot-assets/f0e999feb906/mount_0.gz
fsck result: OK (log: https://syzkaller.appspot.com/x/fsck.log?x=11018664580000)
mounted in repro #2: https://storage.googleapis.com/syzbot-assets/3d8af95caf07/mount_2.gz
fsck result: OK (log: https://syzkaller.appspot.com/x/fsck.log?x=1076d4b7980000)
mounted in repro #3: https://storage.googleapis.com/syzbot-assets/5df3afeedf24/mount_3.gz
fsck result: OK (log: https://syzkaller.appspot.com/x/fsck.log?x=15d41fa0580000)

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+3aa813...@syzkaller.appspotmail.com

------------[ 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


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

syzbot

unread,
Mar 16, 2025, 1:45:33 PM3/16/25
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 7d1f9b5c2ff5 Merge branch 'android13-5.15' into android13-..
git tree: android13-5.15-lts
console+strace: https://syzkaller.appspot.com/x/log.txt?x=1596184c580000
kernel config: https://syzkaller.appspot.com/x/.config?x=965f2bb6f70e8842
dashboard link: https://syzkaller.appspot.com/bug?extid=111f30c98c5ace9f8e60
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1402283f980000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12c843b0580000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/36970cc43bac/disk-7d1f9b5c.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/5316820505f2/vmlinux-7d1f9b5c.xz
kernel image: https://storage.googleapis.com/syzbot-assets/96af69e20c57/bzImage-7d1f9b5c.xz
mounted in repro #1: https://storage.googleapis.com/syzbot-assets/4383a6c48965/mount_0.gz
fsck result: OK (log: https://syzkaller.appspot.com/x/fsck.log?x=1196184c580000)
mounted in repro #2: https://storage.googleapis.com/syzbot-assets/75c0100529aa/mount_2.gz
fsck result: OK (log: https://syzkaller.appspot.com/x/fsck.log?x=10047ff8580000)
mounted in repro #3: https://storage.googleapis.com/syzbot-assets/960913c10205/mount_3.gz
fsck result: OK (log: https://syzkaller.appspot.com/x/fsck.log?x=15a57698580000)

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+111f30...@syzkaller.appspotmail.com

ext4 filesystem being mounted at /root/file0 supports timestamps until 2038-01-19 (0x7fffffff)
------------[ cut here ]------------
kernel BUG at fs/ext4/mballoc.c:1982!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 293 Comm: syz-executor116 Not tainted 5.15.178-syzkaller-00013-g7d1f9b5c2ff5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:mb_mark_used+0x1402/0x1420 fs/ext4/mballoc.c:1982
Code: 0f 0b e8 d1 c6 83 ff 0f 0b e8 ca c6 83 ff 0f 0b e8 c3 c6 83 ff 0f 0b e8 bc c6 83 ff 0f 0b e8 b5 c6 83 ff 0f 0b e8 ae c6 83 ff <0f> 0b e8 a7 c6 83 ff 0f 0b e8 a0 c6 83 ff 0f 0b 66 2e 0f 1f 84 00
RSP: 0018:ffffc90000967590 EFLAGS: 00010293
RAX: ffffffff81eca602 RBX: 0000000000008000 RCX: ffff88810d060000
RDX: 0000000000000000 RSI: ffffffff80000000 RDI: 0000000000008000
RBP: ffffc90000967650 R08: ffffffff81ec92e3 R09: ffffed1020370e01
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888101b80000
R13: ffffffff80000000 R14: 0000000080000000 R15: ffffc90000967760
FS: 000055558deb0380(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000400000015000 CR3: 000000011de03000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
ext4_trim_extent fs/ext4/mballoc.c:6459 [inline]
ext4_try_to_trim_range+0x6b9/0x11d0 fs/ext4/mballoc.c:6519
ext4_trim_all_free fs/ext4/mballoc.c:6581 [inline]
ext4_trim_fs+0xd9b/0x16a0 fs/ext4/mballoc.c:6672
__ext4_ioctl fs/ext4/ioctl.c:1122 [inline]
ext4_ioctl+0x21ad/0x5830 fs/ext4/ioctl.c:1276
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:874 [inline]
__se_sys_ioctl+0x114/0x190 fs/ioctl.c:860
__x64_sys_ioctl+0x7b/0x90 fs/ioctl.c:860
x64_sys_call+0x98/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:17
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f50cdad9ef9
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:00007ffda8ff9e68 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00004000000001c0 RCX: 00007f50cdad9ef9
RDX: 0000400000000b40 RSI: 00000000c0185879 RDI: 0000000000000006
RBP: 0000000000000073 R08: 00007f50cdb53260 R09: 00007f50cdb53260
R10: 00007f50cdb53260 R11: 0000000000000246 R12: 0000000000000073
R13: 00004000000004c0 R14: 0000000000000001 R15: 0000000000000001
</TASK>
Modules linked in:
---[ end trace c99fc14bc7c0ec3b ]---
RIP: 0010:mb_mark_used+0x1402/0x1420 fs/ext4/mballoc.c:1982
Code: 0f 0b e8 d1 c6 83 ff 0f 0b e8 ca c6 83 ff 0f 0b e8 c3 c6 83 ff 0f 0b e8 bc c6 83 ff 0f 0b e8 b5 c6 83 ff 0f 0b e8 ae c6 83 ff <0f> 0b e8 a7 c6 83 ff 0f 0b e8 a0 c6 83 ff 0f 0b 66 2e 0f 1f 84 00
RSP: 0018:ffffc90000967590 EFLAGS: 00010293
RAX: ffffffff81eca602 RBX: 0000000000008000 RCX: ffff88810d060000
RDX: 0000000000000000 RSI: ffffffff80000000 RDI: 0000000000008000
RBP: ffffc90000967650 R08: ffffffff81ec92e3 R09: ffffed1020370e01
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888101b80000
R13: ffffffff80000000 R14: 0000000080000000 R15: ffffc90000967760
FS: 000055558deb0380(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000400000015000 CR3: 000000011de03000 CR4: 00000000003506b0
Reply all
Reply to author
Forward
0 new messages