syzbot


kernel BUG in bch2_quota_check_limit

Status: upstream: reported C repro on 2024/09/22 13:58
Subsystems: bcachefs
[Documentation on labels]
Reported-by: syzbot+8364d1e040a88ed5657d@syzkaller.appspotmail.com
First crash: 240d, last: 5h23m
Cause bisection: introduced by (bisect log) :
commit 03ef80b469d5d83530ce1ce15be78a40e5300f9b
Author: Kent Overstreet <kent.overstreet@linux.dev>
Date: Sat Sep 23 22:41:51 2023 +0000

  bcachefs: Ignore unknown mount options

Crash: kernel BUG in bch2_quota_check_limit (log)
Repro: C syz .config
  
Discussions (2)
Title Replies (including bot) Last reply
[syzbot] Monthly bcachefs report (Apr 2025) 0 (1) 2025/04/22 12:41
[syzbot] [bcachefs?] kernel BUG in bch2_quota_check_limit 0 (3) 2025/02/13 12:45

Sample crash report:
bcachefs (loop0): check_subvolume_structure... done
bcachefs (loop0): check_directory_structure... done
bcachefs (loop0): check_nlinks... done
bcachefs (loop0): resume_logged_ops... done
bcachefs (loop0): delete_dead_inodes... done
bcachefs (loop0): set_fs_needs_rebalance... done
bcachefs (loop0): reading quotas
------------[ cut here ]------------
kernel BUG at fs/bcachefs/quota.c:232!
Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI
CPU: 1 UID: 0 PID: 5822 Comm: syz-executor846 Not tainted 6.14.0-rc2-syzkaller-00041-g4dc1d1bec898 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
RIP: 0010:bch2_quota_check_limit+0xd48/0xd70 fs/bcachefs/quota.c:232
Code: de e8 4c b4 ac 00 e9 9b fa ff ff e8 62 d3 52 fd 48 c7 c7 d0 11 f7 8e 48 89 de e8 33 b4 ac 00 e9 d8 fa ff ff e8 49 d3 52 fd 90 <0f> 0b e8 41 d3 52 fd 90 0f 0b e8 39 d3 52 fd 90 0f 0b e8 31 d3 52
RSP: 0000:ffffc90003a26eb0 EFLAGS: 00010293
RAX: ffffffff846c7bf7 RBX: 0000000000000000 RCX: ffff888034491e00
RDX: 0000000000000000 RSI: f7c0f28a20bd2430 RDI: 0000000000000000
RBP: f7c0f28a20bd2418 R08: ffffffff846c6f3f R09: f7c0f28a20bd2418
R10: dffffc0000000000 R11: fffffbfff20346cf R12: ffff88801c2ab000
R13: 0000000000000000 R14: f7c0f28a20bd2430 R15: ffffc90003a26fe0
FS:  0000555575981380(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005593feb8d028 CR3: 0000000034268000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 bch2_quota_acct+0x3fb/0x750 fs/bcachefs/quota.c:299
 bch2_fs_quota_read_inode fs/bcachefs/quota.c:514 [inline]
 bch2_fs_quota_read+0x13d7/0x24b0 fs/bcachefs/quota.c:536
 bch2_fs_recovery+0x307d/0x3de0 fs/bcachefs/recovery.c:988
 bch2_fs_start+0x37c/0x610 fs/bcachefs/super.c:1041
 bch2_fs_get_tree+0xd8d/0x1740 fs/bcachefs/fs.c:2203
 vfs_get_tree+0x90/0x2b0 fs/super.c:1814
 do_new_mount+0x2be/0xb40 fs/namespace.c:3560
 do_mount fs/namespace.c:3900 [inline]
 __do_sys_mount fs/namespace.c:4111 [inline]
 __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:4088
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f175b6dcf6a
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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc927aa508 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffc927aa520 RCX: 00007f175b6dcf6a
RDX: 0000400000000000 RSI: 0000400000000200 RDI: 00007ffc927aa520
RBP: 0000400000000200 R08: 00007ffc927aa560 R09: 000000000000f631
R10: 0000000002a18414 R11: 0000000000000282 R12: 0000400000000000
R13: 00007ffc927aa560 R14: 0000000000000003 R15: 0000000002a18414
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:bch2_quota_check_limit+0xd48/0xd70 fs/bcachefs/quota.c:232
Code: de e8 4c b4 ac 00 e9 9b fa ff ff e8 62 d3 52 fd 48 c7 c7 d0 11 f7 8e 48 89 de e8 33 b4 ac 00 e9 d8 fa ff ff e8 49 d3 52 fd 90 <0f> 0b e8 41 d3 52 fd 90 0f 0b e8 39 d3 52 fd 90 0f 0b e8 31 d3 52
RSP: 0000:ffffc90003a26eb0 EFLAGS: 00010293
RAX: ffffffff846c7bf7 RBX: 0000000000000000 RCX: ffff888034491e00
RDX: 0000000000000000 RSI: f7c0f28a20bd2430 RDI: 0000000000000000
RBP: f7c0f28a20bd2418 R08: ffffffff846c6f3f R09: f7c0f28a20bd2418
R10: dffffc0000000000 R11: fffffbfff20346cf R12: ffff88801c2ab000
R13: 0000000000000000 R14: f7c0f28a20bd2430 R15: ffffc90003a26fe0
FS:  0000555575981380(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005607afcf4000 CR3: 0000000034268000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (725):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/02/13 03:11 upstream 4dc1d1bec898 b27c2402 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs kernel BUG in bch2_quota_check_limit
2025/02/13 02:49 upstream 4dc1d1bec898 2afad16e .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/17 00:37 upstream 3c21441eeffc cfde8269 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/09 00:41 upstream 2c89c1b655c0 bb813bcc .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/08 16:48 upstream d76bb1ebb558 dbf35fa1 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/08 14:03 upstream d76bb1ebb558 dbf35fa1 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/08 13:00 upstream d76bb1ebb558 dbf35fa1 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/08 09:16 upstream d76bb1ebb558 dbf35fa1 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/08 07:52 upstream d76bb1ebb558 dbf35fa1 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/08 01:34 upstream 707df3375124 dbf35fa1 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/07 23:48 upstream 707df3375124 dbf35fa1 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/07 22:34 upstream 707df3375124 dbf35fa1 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/07 20:18 upstream 707df3375124 dbf35fa1 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/07 09:45 upstream 0d8d44db295c 350f4ffc .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/07 08:11 upstream 0d8d44db295c 350f4ffc .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/07 06:38 upstream 0d8d44db295c 350f4ffc .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/07 04:23 upstream 0d8d44db295c 350f4ffc .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/06 22:46 upstream 0d8d44db295c 350f4ffc .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/06 14:26 upstream 01f95500a162 ae98e6b9 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/06 14:24 upstream 01f95500a162 ae98e6b9 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/06 09:46 upstream 01f95500a162 ae98e6b9 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/06 02:55 upstream 01f95500a162 ae98e6b9 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/05 23:44 upstream 01f95500a162 ae98e6b9 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/05 18:37 upstream 92a09c47464d 6ca47dd8 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/05 16:32 upstream 92a09c47464d 6ca47dd8 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/05 11:42 upstream 92a09c47464d 6ca47dd8 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/05 10:27 upstream 92a09c47464d 6ca47dd8 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/05 06:34 upstream 92a09c47464d b0714e37 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/05 04:51 upstream 92a09c47464d b0714e37 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/05 02:17 upstream e8ab83e34bdc b0714e37 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/04 21:37 upstream e8ab83e34bdc b0714e37 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/04 19:50 upstream e8ab83e34bdc b0714e37 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/04 18:33 upstream e8ab83e34bdc b0714e37 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/04 15:34 upstream e8ab83e34bdc b0714e37 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/04 12:16 upstream 2a239ffbebb5 b0714e37 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/04 11:54 upstream 2a239ffbebb5 b0714e37 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/04 10:15 upstream 2a239ffbebb5 b0714e37 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/04 05:53 upstream 2a239ffbebb5 b0714e37 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/04 02:56 upstream 2a239ffbebb5 b0714e37 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/03 21:25 upstream 95d3481af6dc b0714e37 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/03 20:13 upstream 95d3481af6dc b0714e37 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/03 08:12 upstream 00b827f0cffa b0714e37 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/03 06:42 upstream 00b827f0cffa b0714e37 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/03 03:38 upstream 00b827f0cffa b0714e37 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/03 02:34 upstream 00b827f0cffa b0714e37 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/02 16:36 upstream ebd297a2affa d7f099d1 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/02 15:11 upstream ebd297a2affa d7f099d1 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2024/09/19 05:43 upstream 4a39ac5b7d62 c673ca06 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2024/09/18 13:51 upstream 2f27fce67173 c673ca06 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/04/21 22:29 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci c72692105976 2a20f901 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in bch2_quota_check_limit
* Struck through repros no longer work on HEAD.