syzbot


BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! (3)

Status: closed as invalid on 2023/10/17 19:49
Subsystems: btrfs
[Documentation on labels]
Reported-by: syzbot+6aa88a2d31fbec170f8b@syzkaller.appspotmail.com
First crash: 363d, last: 359d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [btrfs?] BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! (3) 1 (2) 2023/10/17 19:42
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! (6) btrfs C 2 49d 50d 0/28 closed as invalid on 2024/08/30 15:02
upstream BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! (5) btrfs C 931 58d 88d 27/28 fixed on 2024/08/14 19:57
upstream BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! (4) btrfs C 8 353d 354d 0/28 closed as invalid on 2023/10/23 13:15
upstream BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! (7) btrfs C 24 15m 26d 0/28 upstream: reported C repro on 2024/09/14 09:10
upstream BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! C done error 25236 1605d 2045d 15/28 fixed on 2020/12/09 20:00
upstream BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! (2) kernel C 2688 365d 1321d 23/28 fixed on 2023/10/12 12:47
linux-5.15 BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! origin:upstream missing-backport C error 2 227d 424d 0/3 upstream: reported C repro on 2023/08/14 00:36
linux-6.1 BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! origin:upstream C error 21 283d 562d 0/3 upstream: reported C repro on 2023/03/28 22:33

Sample crash report:
BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low!
turning off the locking correctness validator.
CPU: 0 PID: 11455 Comm: kworker/u4:4 Not tainted 6.6.0-rc6-syzkaller-gc295ba49917a #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023
Workqueue: btrfs-qgroup-rescan btrfs_work_helper
Call trace:
 dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:233
 show_stack+0x2c/0x44 arch/arm64/kernel/stacktrace.c:240
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xd0/0x124 lib/dump_stack.c:106
 dump_stack+0x1c/0x28 lib/dump_stack.c:113
 lookup_chain_cache_add kernel/locking/lockdep.c:3815 [inline]
 validate_chain kernel/locking/lockdep.c:3836 [inline]
 __lock_acquire+0x1c60/0x75e8 kernel/locking/lockdep.c:5136
 lock_acquire+0x23c/0x71c kernel/locking/lockdep.c:5753
 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline]
 _raw_spin_lock+0x48/0x60 kernel/locking/spinlock.c:154
 spin_lock include/linux/spinlock.h:351 [inline]
 btrfs_reduce_alloc_profile fs/btrfs/block-group.c:83 [inline]
 btrfs_get_alloc_profile+0x2b8/0xad4 fs/btrfs/block-group.c:138
 get_alloc_profile_by_root fs/btrfs/extent-tree.c:2508 [inline]
 btrfs_reserve_extent+0x1b8/0x674 fs/btrfs/extent-tree.c:4502
 btrfs_alloc_tree_block+0x1b0/0x1444 fs/btrfs/extent-tree.c:4931
 __btrfs_cow_block+0x3f4/0x1924 fs/btrfs/ctree.c:546
 btrfs_cow_block+0x314/0xa0c fs/btrfs/ctree.c:724
 btrfs_search_slot+0xb8c/0x29d8
 btrfs_update_root+0xe4/0xa88 fs/btrfs/root-tree.c:137
 commit_fs_roots+0x428/0x69c fs/btrfs/transaction.c:1473
 btrfs_commit_transaction+0x10ec/0x2dd4 fs/btrfs/transaction.c:2418
 btrfs_qgroup_rescan_worker+0x15fc/0x1674 fs/btrfs/qgroup.c:3417
 btrfs_work_helper+0x340/0x1504 fs/btrfs/async-thread.c:314
 process_one_work+0x694/0x1204 kernel/workqueue.c:2630
 process_scheduled_works kernel/workqueue.c:2703 [inline]
 worker_thread+0x938/0xef4 kernel/workqueue.c:2784
 kthread+0x288/0x310 kernel/kthread.c:388
 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:857
BTRFS info (device loop3): qgroup scan completed (inconsistency flag cleared)
BTRFS info (device loop1): qgroup scan completed (inconsistency flag cleared)
BTRFS info (device loop2): qgroup scan completed (inconsistency flag cleared)
BTRFS info (device loop4): qgroup scan completed (inconsistency flag cleared)
BTRFS info (device loop2): qgroup scan completed (inconsistency flag cleared)
BTRFS info (device loop3): qgroup scan completed (inconsistency flag cleared)

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/10/17 13:22 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci c295ba49917a 342b9c55 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro #1] [mounted in repro #2] ci-upstream-gce-arm64 BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low!
2023/10/17 14:42 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci c295ba49917a 342b9c55 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low!
2023/10/17 08:17 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci c295ba49917a 342b9c55 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low!
2023/10/17 04:15 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci c295ba49917a 6388bc36 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low!
2023/10/14 16:51 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 249eb8f39efb 6388bc36 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low!
2023/10/14 06:44 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 249eb8f39efb 6388bc36 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low!
2023/10/13 15:44 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 19af4a4ed414 6388bc36 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low!
* Struck through repros no longer work on HEAD.