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: 338d, last: 2d22h
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 (4)
Title Replies (including bot) Last reply
[syzbot] Monthly bcachefs report (Jul 2025) 0 (1) 2025/07/25 12:39
[syzbot] Monthly bcachefs report (May 2025) 0 (1) 2025/05/24 10:04
[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
Last patch testing requests (3)
Created Duration User Patch Repo Result
2025/08/09 22:43 18m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log
2025/06/26 15:35 23m retest repro upstream OK log
2025/06/23 01:38 19m retest repro upstream OK log

Sample crash report:
------------[ cut here ]------------
kernel BUG at fs/bcachefs/quota.c:232!
Internal error: Oops - BUG: 00000000f2000800 [#1]  SMP
Modules linked in:
CPU: 1 UID: 0 PID: 6623 Comm: syz-executor Not tainted 6.16.0-rc4-syzkaller-g3c795c3404e8 #0 PREEMPT 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : bch2_quota_check_limit+0xb2c/0xb50 fs/bcachefs/quota.c:232
lr : bch2_quota_check_limit+0xb2c/0xb50 fs/bcachefs/quota.c:232
sp : ffff8000a1467810
x29: ffff8000a1467820 x28: dfff800000000000 x27: 0000000000000001
x26: ffffffffffffffff x25: ffff0000e9600000 x24: ffffffffffffffff
x23: ffff0000d03d6828 x22: 0000000000000000 x21: 0000000000000001
x20: 0000000000000001 x19: ffff8000a1467940 x18: 00000000ffffffff
x17: ffff800093340000 x16: ffff80008aedd760 x15: 0000000000000001
x14: 1ffff0001428ceb4 x13: 0000000000000000 x12: 0000000000000000
x11: ffff70001428ceb5 x10: 0000000000ff0100 x9 : 0000000000000000
x8 : ffff0000cfeb8000 x7 : ffff800082a30d78 x6 : 0000000000000001
x5 : ffffffffffffffff x4 : 0000000000000001 x3 : ffff8000a1467940
x2 : ffff0000d03d6800 x1 : ffffffffffffffff x0 : 0000000000000000
Call trace:
 bch2_quota_check_limit+0xb2c/0xb50 fs/bcachefs/quota.c:232 (P)
 bch2_quota_acct+0x360/0x6a4 fs/bcachefs/quota.c:299
 bch2_evict_inode+0x170/0x444 fs/bcachefs/fs.c:2182
 evict+0x414/0x928 fs/inode.c:810
 iput_final fs/inode.c:1898 [inline]
 iput+0x6e4/0x83c fs/inode.c:1924
 d_delete_notify include/linux/fsnotify.h:402 [inline]
 vfs_rmdir+0x358/0x464 fs/namei.c:4483
 do_rmdir+0x24c/0x56c fs/namei.c:4525
 __do_sys_unlinkat fs/namei.c:4699 [inline]
 __se_sys_unlinkat fs/namei.c:4693 [inline]
 __arm64_sys_unlinkat+0xc8/0xf8 fs/namei.c:4693
 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline]
 invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49
 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132
 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151
 el0_svc+0x58/0x180 arch/arm64/kernel/entry-common.c:771
 el0t_64_sync_handler+0x78/0x108 arch/arm64/kernel/entry-common.c:790
 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600
Code: aa1303e0 97883447 17fffed8 9773c11e (d4210000) 
---[ end trace 0000000000000000 ]---

Crashes (757):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/07/02 08:52 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 3c795c3404e8 ffe4b334 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 kernel BUG in bch2_quota_check_limit
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/08/19 17:51 upstream be48bcf004f9 523f460e .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/07/16 10:56 upstream 155a3c003e55 124ec9cc .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/07/06 02:55 upstream a79a588fc176 4f67c4ae .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/25 05:18 upstream b1427432d3b6 ed351ea7 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/24 01:16 upstream 7586ac7c340c ed351ea7 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/23 16:16 upstream 94305e83eccb f8cc0c83 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/23 06:08 upstream 5cdb2c77c4c3 fa44301a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/22 15:46 upstream d608703fcdd9 0919b50b .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/22 14:00 upstream d608703fcdd9 0919b50b .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/22 12:55 upstream d608703fcdd9 0919b50b .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/22 06:53 upstream d608703fcdd9 0919b50b .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/21 20:12 upstream 4a95bc121ccd f6063999 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/21 18:28 upstream 4a95bc121ccd f6063999 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/21 11:59 upstream b36ddb9210e6 b47f9e02 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/20 22:43 upstream a5806cd506af b47f9e02 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/20 05:10 upstream a5806cd506af b84f0537 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/19 02:17 upstream a5806cd506af f41472b0 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/18 20:31 upstream 5723cc3450bc f41472b0 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/18 06:53 upstream 205b2bd7939c f41472b0 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/18 02:36 upstream 205b2bd7939c f41472b0 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/18 00:08 upstream 205b2bd7939c f41472b0 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/17 12:50 upstream 172a9d94339c f41472b0 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/05/17 11:24 upstream 172a9d94339c f41472b0 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] 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/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
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/08/12 02:37 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8f5ae30d69d7 32a0e5ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in bch2_quota_check_limit
2025/07/26 21:37 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 82af5ea7c611 fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in bch2_quota_check_limit
2025/07/02 07:17 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 3c795c3404e8 ffe4b334 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in bch2_quota_check_limit
2025/06/09 01:02 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci d7fa1af5b33e 4826c28e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in bch2_quota_check_limit
2025/06/08 11:42 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci d7fa1af5b33e 4826c28e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in bch2_quota_check_limit
2025/06/07 21:24 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci d7fa1af5b33e 4826c28e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in bch2_quota_check_limit
2025/06/01 03:53 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci d7fa1af5b33e 3d2f584d .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.