[v5.15] kernel BUG in ext4_enable_quotas

0 views
Skip to first unread message

syzbot

unread,
May 11, 2024, 2:29:28 PMMay 11
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 284087d4f7d5 Linux 5.15.158
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=12825c5c980000
kernel config: https://syzkaller.appspot.com/x/.config?x=b0dd54e4b5171ebc
dashboard link: https://syzkaller.appspot.com/bug?extid=b8184e50b27e383218a1
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=138de750980000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/c2e33c1db6bf/disk-284087d4.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/d9f77284af1d/vmlinux-284087d4.xz
kernel image: https://storage.googleapis.com/syzbot-assets/a600323dd149/bzImage-284087d4.xz
mounted in repro #1: https://storage.googleapis.com/syzbot-assets/5a2a721ba0d3/mount_0.gz
mounted in repro #2: https://storage.googleapis.com/syzbot-assets/75f5e646d459/mount_7.gz

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

loop3: detected capacity change from 0 to 517
------------[ cut here ]------------
kernel BUG at fs/ext4/super.c:6376!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 16292 Comm: syz-executor.3 Not tainted 5.15.158-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
RIP: 0010:ext4_quota_enable fs/ext4/super.c:6376 [inline]
RIP: 0010:ext4_enable_quotas+0xd30/0xd40 fs/ext4/super.c:6423
Code: ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 63 f5 ff ff 49 89 d6 48 89 df e8 dd 62 9f ff 4c 89 f2 e9 50 f5 ff ff e8 c0 8a 55 ff <0f> 0b e8 b9 8a 55 ff 0f 0b e8 92 fb f2 07 66 90 55 41 57 41 56 41
RSP: 0018:ffffc90003937840 EFLAGS: 00010293
RAX: ffffffff822ad200 RBX: 0000000000000000 RCX: ffff888079c85940
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90003937a10 R08: ffffffff822ac92b R09: ffffed100c9cea8e
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: dffffc0000000000 R14: ffff8880650cd464 R15: ffff88801e92e000
FS: 00007ff4863246c0(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020001400 CR3: 00000000619a3000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
ext4_fill_super+0x9598/0xa110 fs/ext4/super.c:4959
mount_bdev+0x2c9/0x3f0 fs/super.c:1387
legacy_get_tree+0xeb/0x180 fs/fs_context.c:611
vfs_get_tree+0x88/0x270 fs/super.c:1517
do_new_mount+0x2ba/0xb40 fs/namespace.c:3005
do_mount fs/namespace.c:3348 [inline]
__do_sys_mount fs/namespace.c:3556 [inline]
__se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3533
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:0x7ff486fa546a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 09 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ff486323ef8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ff486323f80 RCX: 00007ff486fa546a
RDX: 00000000200005c0 RSI: 0000000020000000 RDI: 00007ff486323f40
RBP: 00000000200005c0 R08: 00007ff486323f80 R09: 0000000000200810
R10: 0000000000200810 R11: 0000000000000246 R12: 0000000020000000
R13: 00007ff486323f40 R14: 00000000000004da R15: 0000000020001400
</TASK>
Modules linked in:
---[ end trace 809c595ef2dee42a ]---
RIP: 0010:ext4_quota_enable fs/ext4/super.c:6376 [inline]
RIP: 0010:ext4_enable_quotas+0xd30/0xd40 fs/ext4/super.c:6423
Code: ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 63 f5 ff ff 49 89 d6 48 89 df e8 dd 62 9f ff 4c 89 f2 e9 50 f5 ff ff e8 c0 8a 55 ff <0f> 0b e8 b9 8a 55 ff 0f 0b e8 92 fb f2 07 66 90 55 41 57 41 56 41
RSP: 0018:ffffc90003937840 EFLAGS: 00010293
RAX: ffffffff822ad200 RBX: 0000000000000000 RCX: ffff888079c85940
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90003937a10 R08: ffffffff822ac92b R09: ffffed100c9cea8e
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: dffffc0000000000 R14: ffff8880650cd464 R15: ffff88801e92e000
FS: 00007ff4863246c0(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8711f5ef38 CR3: 00000000619a3000 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 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
Reply all
Reply to author
Forward
0 new messages