BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! turning off the locking correctness validator. CPU: 0 PID: 4318 Comm: kworker/u4:12 Not tainted 6.6.0-rc3-syzkaller-g2e530aeb342b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/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 local_lock_acquire+0x3c/0x98 include/linux/local_lock_internal.h:29 ___slab_alloc+0x1b8/0xdf4 mm/slub.c:3142 __slab_alloc mm/slub.c:3322 [inline] __slab_alloc_node mm/slub.c:3375 [inline] slab_alloc_node mm/slub.c:3468 [inline] __kmem_cache_alloc_node+0x2c4/0x37c mm/slub.c:3517 kmalloc_trace+0x3c/0x88 mm/slab_common.c:1114 kmalloc include/linux/slab.h:599 [inline] ulist_add_merge+0x144/0x42c fs/btrfs/ulist.c:210 ulist_add+0x40/0x54 fs/btrfs/ulist.c:195 qgroup_update_refcnt+0x224/0x514 fs/btrfs/qgroup.c:2473 btrfs_qgroup_account_extent+0x5e0/0x880 fs/btrfs/qgroup.c:2731 qgroup_rescan_leaf fs/btrfs/qgroup.c:3360 [inline] btrfs_qgroup_rescan_worker+0xca8/0x1674 fs/btrfs/qgroup.c:3413 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 loop5): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop2): 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) BTRFS info (device loop2): qgroup scan completed (inconsistency flag cleared)