[v6.1] kernel BUG in ext4_mb_release_inode_pa (2)

0 views
Skip to first unread message

syzbot

unread,
5:03 AM (7 hours ago) 5:03 AM
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 882efbdd9d34 Linux 6.1.155
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1280aee2580000
kernel config: https://syzkaller.appspot.com/x/.config?x=7eb38bd5021fec61
dashboard link: https://syzkaller.appspot.com/bug?extid=af8b8549e5d36a5cd75f
compiler: Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/23ee6a61dc15/disk-882efbdd.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/0bb5f10b3f6e/vmlinux-882efbdd.xz
kernel image: https://storage.googleapis.com/syzbot-assets/64776e288bcc/bzImage-882efbdd.xz

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

EXT4-fs (loop1): encrypted files will use data=ordered instead of data journaling mode
EXT4-fs (loop1): 1 truncate cleaned up
EXT4-fs (loop1): mounted filesystem without journal. Quota mode: none.
------------[ cut here ]------------
kernel BUG at fs/ext4/mballoc.c:4849!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 10538 Comm: syz.1.1335 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025
RIP: 0010:ext4_mb_release_inode_pa+0xaa4/0xab0 fs/ext4/mballoc.c:4849
Code: 80 c2 03 38 c2 0f 8c 3a fe ff ff 48 89 df 41 89 ce e8 f0 56 ab ff 44 89 f1 e9 27 fe ff ff e8 d3 29 5b ff 0f 0b e8 cc 29 5b ff <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 55 41 57 41 56 53 48 89 fb 49
RSP: 0018:ffffc90006016d20 EFLAGS: 00010283
RAX: ffffffff8225a524 RBX: 000000000000000c RCX: 0000000000080000
RDX: ffffc90005589000 RSI: 00000000000357f1 RDI: 00000000000357f2
RBP: ffffc90006016e70 R08: dffffc0000000000 R09: ffffed100e24973c
R10: ffffed100e24973c R11: 1ffff1100e24973b R12: dffffc0000000000
R13: ffff888053628cb0 R14: 0000000000000000 R15: 0000000000000eb5
FS: 00007fec357bd6c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fead6459eb8 CR3: 000000005ddca000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
ext4_mb_discard_group_preallocations+0xb62/0xdc0 fs/ext4/mballoc.c:4995
ext4_mb_discard_preallocations fs/ext4/mballoc.c:5564 [inline]
ext4_mb_discard_preallocations_should_retry+0x1f2/0x710 fs/ext4/mballoc.c:5585
ext4_mb_new_blocks+0x3329/0x4720 fs/ext4/mballoc.c:5788
ext4_alloc_branch fs/ext4/indirect.c:340 [inline]
ext4_ind_map_blocks+0xe2a/0x21d0 fs/ext4/indirect.c:635
ext4_map_blocks+0x970/0x1b60 fs/ext4/inode.c:681
_ext4_get_block+0x1d7/0x4e0 fs/ext4/inode.c:822
ext4_block_write_begin+0x637/0x12f0 fs/ext4/inode.c:1124
ext4_write_begin+0x624/0xf50 fs/ext4/ext4_jbd2.h:-1
generic_perform_write+0x2db/0x560 mm/filemap.c:3846
ext4_buffered_write_iter+0x11a/0x3e0 fs/ext4/file.c:285
ext4_file_write_iter+0x1d6/0x16e0 fs/ext4/file.c:-1
call_write_iter include/linux/fs.h:2265 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x44c/0x960 fs/read_write.c:584
ksys_pwrite64 fs/read_write.c:699 [inline]
__do_sys_pwrite64 fs/read_write.c:709 [inline]
__se_sys_pwrite64 fs/read_write.c:706 [inline]
__x64_sys_pwrite64+0x191/0x220 fs/read_write.c:706
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:0x7fec3498eec9
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:00007fec357bd038 EFLAGS: 00000246 ORIG_RAX: 0000000000000012
RAX: ffffffffffffffda RBX: 00007fec34be5fa0 RCX: 00007fec3498eec9
RDX: 00000000ffffff07 RSI: 0000200000000140 RDI: 0000000000000004
RBP: 00007fec34a11f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000008000c61 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fec34be6038 R14: 00007fec34be5fa0 R15: 00007fff6b611b98
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ext4_mb_release_inode_pa+0xaa4/0xab0 fs/ext4/mballoc.c:4849
Code: 80 c2 03 38 c2 0f 8c 3a fe ff ff 48 89 df 41 89 ce e8 f0 56 ab ff 44 89 f1 e9 27 fe ff ff e8 d3 29 5b ff 0f 0b e8 cc 29 5b ff <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 55 41 57 41 56 53 48 89 fb 49
RSP: 0018:ffffc90006016d20 EFLAGS: 00010283
RAX: ffffffff8225a524 RBX: 000000000000000c RCX: 0000000000080000
RDX: ffffc90005589000 RSI: 00000000000357f1 RDI: 00000000000357f2
RBP: ffffc90006016e70 R08: dffffc0000000000 R09: ffffed100e24973c
R10: ffffed100e24973c R11: 1ffff1100e24973b R12: dffffc0000000000
R13: ffff888053628cb0 R14: 0000000000000000 R15: 0000000000000eb5
FS: 00007fec357bd6c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fead6459eb8 CR3: 000000005ddca000 CR4: 00000000003506f0
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 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,
9:34 AM (2 hours ago) 9:34 AM
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 882efbdd9d34 Linux 6.1.155
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=12fb9092580000
kernel config: https://syzkaller.appspot.com/x/.config?x=7eb38bd5021fec61
dashboard link: https://syzkaller.appspot.com/bug?extid=af8b8549e5d36a5cd75f
compiler: Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=12f3e5cd980000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=167aa92f980000
mounted in repro: https://storage.googleapis.com/syzbot-assets/b2437ccb254f/mount_0.gz
fsck result: OK (log: https://syzkaller.appspot.com/x/fsck.log?x=13505ee2580000)

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

------------[ cut here ]------------
kernel BUG at fs/ext4/mballoc.c:4849!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 6323 Comm: syz.2.462 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025
RIP: 0010:ext4_mb_release_inode_pa+0xaa4/0xab0 fs/ext4/mballoc.c:4849
Code: 80 c2 03 38 c2 0f 8c 3a fe ff ff 48 89 df 41 89 ce e8 f0 56 ab ff 44 89 f1 e9 27 fe ff ff e8 d3 29 5b ff 0f 0b e8 cc 29 5b ff <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 55 41 57 41 56 53 48 89 fb 49
RSP: 0018:ffffc90004976d20 EFLAGS: 00010293
RAX: ffffffff8225a524 RBX: 00000000000000cb RCX: ffff888079d39dc0
RDX: 0000000000000000 RSI: 00000000000000cb RDI: 0000000000000000
RBP: ffffc90004976e70 R08: dffffc0000000000 R09: ffffed100d22f9be
R10: ffffed100d22f9be R11: 1ffff1100d22f9bd R12: dffffc0000000000
R13: ffff888070180e80 R14: 0000000000000000 R15: 0000000000000eb5
FS: 00007fcdc4d0f6c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000033000 CR3: 0000000025fcc000 CR4: 00000000003506e0
RIP: 0033:0x7fcdc3d8eec9
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:00007fcdc4d0f038 EFLAGS: 00000246 ORIG_RAX: 0000000000000012
RAX: ffffffffffffffda RBX: 00007fcdc3fe5fa0 RCX: 00007fcdc3d8eec9
RDX: 00000000ffffff07 RSI: 0000200000000140 RDI: 0000000000000004
RBP: 00007fcdc3e11f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000008000c61 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fcdc3fe6038 R14: 00007fcdc3fe5fa0 R15: 00007ffc5b2a8db8
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ext4_mb_release_inode_pa+0xaa4/0xab0 fs/ext4/mballoc.c:4849
Code: 80 c2 03 38 c2 0f 8c 3a fe ff ff 48 89 df 41 89 ce e8 f0 56 ab ff 44 89 f1 e9 27 fe ff ff e8 d3 29 5b ff 0f 0b e8 cc 29 5b ff <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 55 41 57 41 56 53 48 89 fb 49
RSP: 0018:ffffc90004976d20 EFLAGS: 00010293
RAX: ffffffff8225a524 RBX: 00000000000000cb RCX: ffff888079d39dc0
RDX: 0000000000000000 RSI: 00000000000000cb RDI: 0000000000000000
RBP: ffffc90004976e70 R08: dffffc0000000000 R09: ffffed100d22f9be
R10: ffffed100d22f9be R11: 1ffff1100d22f9bd R12: dffffc0000000000
R13: ffff888070180e80 R14: 0000000000000000 R15: 0000000000000eb5
FS: 00007fcdc4d0f6c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000033000 CR3: 0000000025fcc000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


---
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.
Reply all
Reply to author
Forward
0 new messages