[Android 5.10] kernel BUG in ext4_enable_quotas

0 views
Skip to first unread message

syzbot

unread,
Aug 20, 2023, 3:02:53 PM8/20/23
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 8a427269c016 Merge branch 'android13-5.10' into branch 'an..
git tree: android13-5.10-lts
console+strace: https://syzkaller.appspot.com/x/log.txt?x=1255a860680000
kernel config: https://syzkaller.appspot.com/x/.config?x=fefd86e1c1b1e951
dashboard link: https://syzkaller.appspot.com/bug?extid=3ec9881a02d462661bd1
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=10638a4ba80000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=17184307a80000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/42a188936754/disk-8a427269.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/0d4218277015/vmlinux-8a427269.xz
kernel image: https://storage.googleapis.com/syzbot-assets/a504bff7c461/bzImage-8a427269.xz
mounted in repro #1: https://storage.googleapis.com/syzbot-assets/29045c027dd6/mount_0.gz
mounted in repro #2: https://storage.googleapis.com/syzbot-assets/4080cb21d467/mount_7.gz

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

------------[ cut here ]------------
kernel BUG at fs/ext4/super.c:6399!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 879 Comm: syz-executor417 Not tainted 5.10.187-syzkaller-00057-g8a427269c016 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
RIP: 0010:ext4_quota_enable fs/ext4/super.c:6399 [inline]
RIP: 0010:ext4_enable_quotas+0x9e1/0x9f0 fs/ext4/super.c:6446
Code: 38 c1 0f 8c d1 f8 ff ff 49 89 f6 48 89 df e8 a6 eb bb ff 4c 89 f6 48 ba 00 00 00 00 00 fc ff df e9 b4 f8 ff ff e8 df bc 7e ff <0f> 0b e8 d8 bc 7e ff 0f 0b e8 41 07 be 02 90 55 48 89 e5 41 57 41
RSP: 0018:ffffc900029677c0 EFLAGS: 00010293
RAX: ffffffff81ebd0c1 RBX: 0000000000000000 RCX: ffff88810ffae2c0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90002967930 R08: ffffffff81ebcb60 R09: ffffed10238267c4
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000001
R13: 0000000000000004 R14: ffffc90002967848 R15: ffff8881198af464
FS: 00007fc1322066c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fc13229da18 CR3: 0000000117d8c000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
ext4_fill_super+0x87e7/0x9280 fs/ext4/super.c:5060
mount_bdev+0x262/0x370 fs/super.c:1420
ext4_mount+0x34/0x40 fs/ext4/super.c:6625
legacy_get_tree+0xf1/0x190 fs/fs_context.c:592
vfs_get_tree+0x88/0x290 fs/super.c:1550
do_new_mount+0x28b/0xad0 fs/namespace.c:2899
path_mount+0x56f/0xcb0 fs/namespace.c:3229
do_mount fs/namespace.c:3242 [inline]
__do_sys_mount fs/namespace.c:3450 [inline]
__se_sys_mount+0x2c4/0x3b0 fs/namespace.c:3427
__x64_sys_mount+0xbf/0xd0 fs/namespace.c:3427
do_syscall_64+0x34/0x70
entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7fc13224b35a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 5e 04 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:00007fc132206038 EFLAGS: 00000206 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000007 RCX: 00007fc13224b35a
RDX: 00000000200005c0 RSI: 0000000020000000 RDI: 00007fc132206090
RBP: 00000000200005c0 R08: 00007fc1322060d0 R09: 00000000000004d4
R10: 0000000000200810 R11: 0000000000000206 R12: 00007fc132206090
R13: 0000000020000000 R14: 00000000000004da R15: 00007fc1322060d0
Modules linked in:
---[ end trace ddd9eeb0fecebd4e ]---
RIP: 0010:ext4_quota_enable fs/ext4/super.c:6399 [inline]
RIP: 0010:ext4_enable_quotas+0x9e1/0x9f0 fs/ext4/super.c:6446
Code: 38 c1 0f 8c d1 f8 ff ff 49 89 f6 48 89 df e8 a6 eb bb ff 4c 89 f6 48 ba 00 00 00 00 00 fc ff df e9 b4 f8 ff ff e8 df bc 7e ff <0f> 0b e8 d8 bc 7e ff 0f 0b e8 41 07 be 02 90 55 48 89 e5 41 57 41
RSP: 0018:ffffc900029677c0 EFLAGS: 00010293
RAX: ffffffff81ebd0c1 RBX: 0000000000000000 RCX: ffff88810ffae2c0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90002967930 R08: ffffffff81ebcb60 R09: ffffed10238267c4
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000001
R13: 0000000000000004 R14: ffffc90002967848 R15: ffff8881198af464
FS: 00007fc1322066c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fc13229da18 CR3: 0000000117d8c000 CR4: 00000000003506a0
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 bug is already fixed, 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 bug's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

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

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

syzbot

unread,
Aug 21, 2023, 12:17:50 AM8/21/23
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: c2611a04b92f ANDROID: GKI: update symbol list file for xia..
git tree: android14-6.1
console+strace: https://syzkaller.appspot.com/x/log.txt?x=117a673da80000
kernel config: https://syzkaller.appspot.com/x/.config?x=c5b8b7a65c87c651
dashboard link: https://syzkaller.appspot.com/bug?extid=2bf413b73340f4011a9f
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=12d40c97a80000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=163dbd7fa80000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/61093a06c07e/disk-c2611a04.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/4178a231c0bf/vmlinux-c2611a04.xz
kernel image: https://storage.googleapis.com/syzbot-assets/ca97438b22a6/bzImage-c2611a04.xz
mounted in repro #1: https://storage.googleapis.com/syzbot-assets/fe422f879a02/mount_0.gz
mounted in repro #2: https://storage.googleapis.com/syzbot-assets/c8ae98a24960/mount_5.gz

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

loop1: detected capacity change from 0 to 512
------------[ cut here ]------------
kernel BUG at fs/ext4/super.c:6918!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 493 Comm: syz-executor326 Not tainted 6.1.25-syzkaller-00052-gc2611a04b92f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
RIP: 0010:ext4_quota_enable fs/ext4/super.c:6918 [inline]
RIP: 0010:ext4_enable_quotas+0x96a/0x980 fs/ext4/super.c:6965
Code: ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 4f f9 ff ff 49 89 d7 48 89 df e8 93 a8 bb ff 4c 89 fa e9 3c f9 ff ff e8 06 59 75 ff <0f> 0b e8 ff 58 75 ff 0f 0b e8 b8 78 f4 02 0f 1f 84 00 00 00 00 00
RSP: 0018:ffffc900014377c0 EFLAGS: 00010293
RAX: ffffffff81ff958a RBX: 0000000000000000 RCX: ffff888115729440
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90001437930 R08: ffffffff81ff9087 R09: ffffed102170dc83
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000001
R13: 0000000000000004 R14: dffffc0000000000 R15: ffff88812317f464
FS: 00007efd4eb8c6c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffc3690dff8 CR3: 0000000113b49000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
__ext4_fill_super fs/ext4/super.c:5501 [inline]
ext4_fill_super+0x7b1f/0x8450 fs/ext4/super.c:5644
get_tree_bdev+0x440/0x680 fs/super.c:1348
ext4_get_tree+0x1c/0x20 fs/ext4/super.c:5674
vfs_get_tree+0x88/0x290 fs/super.c:1555
do_new_mount+0x28b/0xac0 fs/namespace.c:3040
path_mount+0x671/0x1070 fs/namespace.c:3370
do_mount fs/namespace.c:3383 [inline]
__do_sys_mount fs/namespace.c:3591 [inline]
__se_sys_mount+0x2c4/0x3b0 fs/namespace.c:3568
__x64_sys_mount+0xbf/0xd0 fs/namespace.c:3568
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7efd4ebd95aa
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 6e 07 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:00007efd4eb8bf88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 00007efd4ebd95aa
RDX: 00000000200005c0 RSI: 0000000020000000 RDI: 00007efd4eb8bfe0
RBP: 00000000200005c0 R08: 00007efd4eb8c020 R09: 00000000000004d4
R10: 0000000000200810 R11: 0000000000000202 R12: 00007efd4eb8bfe0
R13: 0000000020000000 R14: 00000000000004da R15: 00007efd4eb8c020
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ext4_quota_enable fs/ext4/super.c:6918 [inline]
RIP: 0010:ext4_enable_quotas+0x96a/0x980 fs/ext4/super.c:6965
Code: ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 4f f9 ff ff 49 89 d7 48 89 df e8 93 a8 bb ff 4c 89 fa e9 3c f9 ff ff e8 06 59 75 ff <0f> 0b e8 ff 58 75 ff 0f 0b e8 b8 78 f4 02 0f 1f 84 00 00 00 00 00
RSP: 0018:ffffc900014377c0 EFLAGS: 00010293
RAX: ffffffff81ff958a RBX: 0000000000000000 RCX: ffff888115729440
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90001437930 R08: ffffffff81ff9087 R09: ffffed102170dc83
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000001
R13: 0000000000000004 R14: dffffc0000000000 R15: ffff88812317f464
FS: 00007efd4eb8c6c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007efd4ec24194 CR3: 0000000113b49000 CR4: 00000000003506a0
Reply all
Reply to author
Forward
0 new messages