BUG: MAX_LOCKDEP_CHAINS too low! turning off the locking correctness validator. CPU: 1 PID: 355 Comm: kworker/u4:4 Not tainted 5.15.173-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 Workqueue: btrfs-cache btrfs_work_helper Call trace: dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106 dump_stack+0x1c/0x58 lib/dump_stack.c:113 lookup_chain_cache_add kernel/locking/lockdep.c:3735 [inline] validate_chain kernel/locking/lockdep.c:3756 [inline] __lock_acquire+0x1b64/0x7638 kernel/locking/lockdep.c:5012 lock_acquire+0x240/0x77c kernel/locking/lockdep.c:5623 do_write_seqcount_begin_nested include/linux/seqlock.h:519 [inline] do_write_seqcount_begin include/linux/seqlock.h:545 [inline] vtime_task_switch_generic+0x220/0xb38 kernel/sched/cputime.c:774 vtime_task_switch include/linux/vtime.h:95 [inline] finish_task_switch+0x3e0/0x6b4 kernel/sched/core.c:4895 context_switch kernel/sched/core.c:5030 [inline] __schedule+0xf14/0x1e48 kernel/sched/core.c:6373 preempt_schedule_irq+0x90/0x274 kernel/sched/core.c:6777 arm64_preempt_schedule_irq+0x174/0x2c4 arch/arm64/kernel/entry-common.c:260 el1_interrupt+0x40/0x58 arch/arm64/kernel/entry-common.c:463 el1h_64_irq_handler+0x18/0x24 arch/arm64/kernel/entry-common.c:470 el1h_64_irq+0x78/0x7c arch/arm64/kernel/entry.S:522 arch_local_irq_restore arch/arm64/include/asm/irqflags.h:122 [inline] lock_acquire+0x280/0x77c kernel/locking/lockdep.c:5626 down_read+0xc0/0x398 kernel/locking/rwsem.c:1498 caching_thread+0xe0/0xe50 fs/btrfs/block-group.c:661 btrfs_work_helper+0x348/0x1554 fs/btrfs/async-thread.c:325 process_one_work+0x790/0x11b8 kernel/workqueue.c:2310 worker_thread+0x910/0x1034 kernel/workqueue.c:2457 kthread+0x37c/0x45c kernel/kthread.c:334 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870