syzbot


BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! (4)

Status: closed as invalid on 2023/10/23 13:15
Subsystems: btrfs
[Documentation on labels]
Reported-by: syzbot+b2869947e0c9467a41b6@syzkaller.appspotmail.com
First crash: 197d, last: 192d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [btrfs?] BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! (4) 3 (4) 2023/10/23 14:36
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! (3) btrfs C 7 198d 198d 0/26 closed as invalid on 2023/10/17 19:49
upstream BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! C done error 25236 1443d 1884d 15/26 fixed on 2020/12/09 20:00
upstream BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! (2) kernel C 2688 204d 1160d 23/26 fixed on 2023/10/12 12:47
linux-5.15 BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! origin:upstream missing-backport C error 2 66d 262d 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 122d 400d 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: 5571 Comm: kworker/u4:8 Not tainted 6.6.0-rc6-syzkaller-g78124b0c1d10 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023
Workqueue: btrfs-cache 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]
 __clear_extent_bit+0x1b4/0xaf0 fs/btrfs/extent-io-tree.c:596
 clear_extent_bit fs/btrfs/extent-io-tree.h:146 [inline]
 clear_extent_bits fs/btrfs/extent-io-tree.h:158 [inline]
 btrfs_free_excluded_extents fs/btrfs/block-group.c:840 [inline]
 caching_thread+0x18bc/0x1b64 fs/btrfs/block-group.c:909
 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 loop0): qgroup scan completed (inconsistency flag cleared)
BTRFS info (device loop0): qgroup scan completed (inconsistency flag cleared)
BTRFS info (device loop0): qgroup scan completed (inconsistency flag cleared)

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/10/20 23:04 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 78124b0c1d10 a42250d2 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low!
2023/10/23 01:40 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 78124b0c1d10 361b23dc .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low!
2023/10/21 17:34 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 78124b0c1d10 361b23dc .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low!
2023/10/21 16:17 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 78124b0c1d10 361b23dc .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low!
2023/10/20 18:32 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 78124b0c1d10 a42250d2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low!
2023/10/20 03:36 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 78124b0c1d10 42e1d524 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low!
2023/10/18 15:57 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 78124b0c1d10 342b9c55 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low!
2023/10/18 02:37 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!
* Struck through repros no longer work on HEAD.