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: 412d, last: 21d
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 (7)
Title Replies (including bot) Last reply
[syzbot] Monthly bcachefs report (Oct 2025) 0 (1) 2025/10/27 12:50
[syzbot] Monthly bcachefs report (Sep 2025) 0 (1) 2025/09/26 05:14
[syzbot] Monthly bcachefs report (Aug 2025) 0 (1) 2025/08/26 07:13
[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 (5)
Created Duration User Patch Repo Result
2025/10/28 17:21 27m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci OK log
2025/10/28 17:21 29m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci OK log
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:
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 (806):
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/09/27 18:31 upstream fec734e8d564 001c9061 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/09/27 05:53 upstream 083fc6d7fa0d 001c9061 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/09/26 10:15 upstream 4ff71af020ae 0abd0691 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/09/26 03:10 upstream 4ff71af020ae 0abd0691 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/09/25 06:47 upstream 4ea5af085908 0abd0691 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/09/10 02:54 upstream 9dd1835ecda5 fdeaa69b .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/09/04 20:31 upstream 08b06c30a445 d291dd2d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_quota_check_limit
2025/08/30 01:37 upstream fb679c832b64 807a3b61 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root 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/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/10/14 16:33 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bf45a62baffc b6605ba8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in bch2_quota_check_limit
2025/10/14 13:59 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bf45a62baffc b6605ba8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in bch2_quota_check_limit
2025/10/14 12:52 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bf45a62baffc b6605ba8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in bch2_quota_check_limit
2025/10/13 11:01 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bf45a62baffc ff1712fe .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in bch2_quota_check_limit
2025/10/11 16:17 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bf45a62baffc ff1712fe .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/10/11 15:20 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bf45a62baffc ff1712fe .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in bch2_quota_check_limit
2025/10/09 12:34 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bf45a62baffc 7e2882b3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in bch2_quota_check_limit
2025/10/07 20:22 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bf45a62baffc 8ef35d49 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in bch2_quota_check_limit
2025/10/07 01:30 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bf45a62baffc 91305dbe .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in bch2_quota_check_limit
2025/09/30 22:42 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2213e57a69f0 65a0eece .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in bch2_quota_check_limit
2025/09/22 08:48 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 506ba4ea4cf5 67c37560 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in bch2_quota_check_limit
2025/09/19 05:28 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci c9d61056440c e2beed91 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in bch2_quota_check_limit
2025/09/18 09:43 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 6edf2885ebeb e2beed91 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in bch2_quota_check_limit
2025/09/18 07:48 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 6edf2885ebeb e2beed91 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in bch2_quota_check_limit
2025/09/18 06:20 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 6edf2885ebeb e2beed91 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in bch2_quota_check_limit
2025/09/16 04:59 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8736259279a3 e2beed91 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in bch2_quota_check_limit
2025/09/16 02:11 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8736259279a3 e2beed91 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in bch2_quota_check_limit
2025/09/15 07:06 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8736259279a3 e2beed91 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in bch2_quota_check_limit
2025/09/14 20:07 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8736259279a3 e2beed91 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in bch2_quota_check_limit
2025/09/13 22:06 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8736259279a3 e2beed91 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in bch2_quota_check_limit
2025/09/13 16:27 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8736259279a3 e2beed91 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in bch2_quota_check_limit
2025/09/13 10:58 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8736259279a3 e2beed91 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in bch2_quota_check_limit
2025/09/13 00:22 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8736259279a3 e2beed91 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in bch2_quota_check_limit
2025/09/11 07:05 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci c199ef1fa61a fdeaa69b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in bch2_quota_check_limit
2025/09/10 16:06 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci c199ef1fa61a fdeaa69b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in bch2_quota_check_limit
2025/09/09 20:10 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci c199ef1fa61a d291dd2d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in bch2_quota_check_limit
2025/09/08 10:33 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci b320789d6883 d291dd2d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in bch2_quota_check_limit
2025/09/07 15:42 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci b320789d6883 d291dd2d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in bch2_quota_check_limit
2025/09/06 15:11 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci b320789d6883 d291dd2d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in bch2_quota_check_limit
2025/09/06 09:28 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci b320789d6883 d291dd2d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in bch2_quota_check_limit
2025/09/06 07:16 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci b320789d6883 d291dd2d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in bch2_quota_check_limit
2025/09/06 06:13 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci b320789d6883 d291dd2d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in bch2_quota_check_limit
2025/09/01 15:04 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8f5ae30d69d7 807a3b61 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in bch2_quota_check_limit
2025/08/30 19:57 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8f5ae30d69d7 807a3b61 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in bch2_quota_check_limit
2025/08/25 16:29 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8f5ae30d69d7 bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 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 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
* Struck through repros no longer work on HEAD.