kernel BUG in ext4_enable_quotas

Status: upstream: reported C repro on 2023/09/16 16:19
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+c5b6ba07e8810feb43e3@syzkaller.appspotmail.com
First crash: 1138d, last: 10d
Fix bisection: failed (error log, bisect log)
  
▶ ▼ Bug presence (2)
Date Name Commit Repro Result
2023/09/16 lts (merge base) aff03380bda4 C [report] kernel BUG in ext4_enable_quotas
2023/09/16 upstream (ToT) 57d88e8a5974 C [report] kernel BUG in ext4_enable_quotas
▶ ▼ Similar bugs (5)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 kernel BUG in ext4_enable_quotas origin:upstream -1 syz error 1 866d 899d 0/3 upstream: reported syz repro on 2024/05/11 18:29
android-5-10 kernel BUG in ext4_enable_quotas -1 syz, C error 4 74d 1164d 0/2 upstream: reported C repro on 2023/08/20 19:02
upstream kernel BUG in ext4_enable_quotas ext4 -1 syz, C error done 16 1029d 1209d 25/29 fixed on 2024/02/16 19:40
android-6-1 kernel BUG in ext4_enable_quotas origin:upstream -1 syz, C error error 1 167d 1164d 0/2 upstream: reported C repro on 2023/08/21 04:17
linux-6.1 kernel BUG in ext4_enable_quotas origin:upstream -1 syz inconclusive 1 692d 692d 0/3 upstream: reported syz repro on 2024/12/04 21:05
▶ ▼ Last patch testing requests (3)
Created Duration User Patch Repo Result
2026/07/23 08:36 13m retest repro android13-5.15-lts log
2026/05/13 00:46 22m retest repro android13-5.15-lts report log
2026/02/26 07:54 12m retest repro android13-5.15-lts report log
▶ ▼ Fix bisection attempts (11)
Created Duration User Patch Repo Result
2024/10/14 23:47 0m bisect fix android13-5.15-lts error job log
2024/08/31 17:48 1h22m bisect fix android13-5.15-lts OK (0) job log log
2024/07/25 18:08 1h05m bisect fix android13-5.15-lts OK (0) job log log
2024/06/10 12:31 1h19m bisect fix android13-5.15-lts OK (0) job log log
2024/05/10 22:25 52m bisect fix android13-5.15-lts OK (0) job log log
2024/04/07 00:49 1h48m bisect fix android13-5.15-lts OK (0) job log log
2024/03/07 10:26 1h15m bisect fix android13-5.15-lts OK (0) job log log
2024/01/31 16:54 1h14m bisect fix android13-5.15-lts OK (0) job log log
2023/12/31 03:33 1h10m bisect fix android13-5.15-lts OK (0) job log log
2023/11/30 23:18 1h43m bisect fix android13-5.15-lts OK (0) job log log
2023/10/30 17:39 1h34m bisect fix android13-5.15-lts OK (0) job log log

Sample crash report:
------------[ cut here ]------------
kernel BUG at fs/ext4/super.c:6424!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 10313 Comm: syz-executor907 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
RIP: 0010:ext4_quota_enable fs/ext4/super.c:6424 [inline]
RIP: 0010:ext4_enable_quotas+0x6c9/0x6d0 fs/ext4/super.c:6471
Code: ff ff 44 89 f1 80 e1 07 80 c1 03 38 c1 0f 8c a4 fa ff ff 4c 89 f7 e8 d6 8f c1 ff e9 97 fa ff ff e8 0c 92 c7 02 e8 47 0f 82 ff <0f> 0b 0f 1f 44 00 00 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83
RSP: 0018:ffffc90004277930 EFLAGS: 00010293
RAX: ffffffff81e7cc99 RBX: ffff88811caa7000 RCX: ffff888112010000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc900042779d0 R08: ffff88812072ebfb R09: 1ffff110240e5d7f
R10: dffffc0000000000 R11: ffffed10240e5d80 R12: 0000000000000004
R13: ffff88811e4c2464 R14: 0000000000000000 R15: 0000000000000001
FS:  00007f92a039c6c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f92a043b53c CR3: 00000001283c4000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ext4_fill_super+0x831d/0x8bf0 fs/ext4/super.c:4982
 mount_bdev+0x28d/0x3c0 fs/super.c:1411
 ext4_mount+0x34/0x40 fs/ext4/super.c:6650
 legacy_get_tree+0xed/0x190 fs/fs_context.c:611
 vfs_get_tree+0x89/0x260 fs/super.c:1541
 do_new_mount+0x251/0xb40 fs/namespace.c:3037
 path_mount+0x640/0xff0 fs/namespace.c:3367
 do_mount fs/namespace.c:3380 [inline]
 __do_sys_mount fs/namespace.c:3588 [inline]
 __se_sys_mount+0x320/0x390 fs/namespace.c:3565
 __x64_sys_mount+0xbf/0xd0 fs/namespace.c:3565
 x64_sys_call+0x6bf/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:166
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f92a03d46ba
Code: 48 c7 c2 d0 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 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 d0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f92a039bf98 EFLAGS: 00000206 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00002000000000c0 RCX: 00007f92a03d46ba
RDX: 00002000000000c0 RSI: 0000200000000240 RDI: 00007f92a039bff0
RBP: 00007f92a039c030 R08: 00007f92a039c030 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000206 R12: 0000200000000240
R13: 0000000000000507 R14: 0000000000000000 R15: 0000200000000080
 </TASK>
Modules linked in:
---[ end trace 6101905dc9f2b4ea ]---
RIP: 0010:ext4_quota_enable fs/ext4/super.c:6424 [inline]
RIP: 0010:ext4_enable_quotas+0x6c9/0x6d0 fs/ext4/super.c:6471
Code: ff ff 44 89 f1 80 e1 07 80 c1 03 38 c1 0f 8c a4 fa ff ff 4c 89 f7 e8 d6 8f c1 ff e9 97 fa ff ff e8 0c 92 c7 02 e8 47 0f 82 ff <0f> 0b 0f 1f 44 00 00 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83
RSP: 0018:ffffc90004277930 EFLAGS: 00010293
RAX: ffffffff81e7cc99 RBX: ffff88811caa7000 RCX: ffff888112010000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc900042779d0 R08: ffff88812072ebfb R09: 1ffff110240e5d7f
R10: dffffc0000000000 R11: ffffed10240e5d80 R12: 0000000000000004
R13: ffff88811e4c2464 R14: 0000000000000000 R15: 0000000000000001
FS:  00007f92a039c6c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f92a037afd0 CR3: 00000001283c4000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/10/17 21:39 android13-5.15-lts ff23d765b06f 432c0077 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro #1 (clean fs)] [mounted in repro #2 (corrupt fs)] ci2-android-5-15 kernel BUG in ext4_enable_quotas
2023/09/16 16:17 android13-5.15-lts ea586874d2f9 0b6a67ac .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro #1] [mounted in repro #2] ci2-android-5-15 kernel BUG in ext4_enable_quotas
* Struck through repros no longer work on HEAD.