BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! turning off the locking correctness validator. CPU: 0 UID: 0 PID: 42 Comm: kworker/u8:3 Not tainted 6.17.0-rc1-syzkaller-g8f5ae30d69d7 #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/30/2025 Workqueue: btrfs-endio-write btrfs_work_helper Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:499 (C) __dump_stack+0x30/0x40 lib/dump_stack.c:94 dump_stack_lvl+0xd8/0x12c lib/dump_stack.c:120 dump_stack+0x1c/0x28 lib/dump_stack.c:129 add_chain_cache kernel/locking/lockdep.c:-1 [inline] lookup_chain_cache_add kernel/locking/lockdep.c:3855 [inline] validate_chain kernel/locking/lockdep.c:3876 [inline] __lock_acquire+0xf9c/0x30a4 kernel/locking/lockdep.c:5237 lock_acquire+0x14c/0x2e0 kernel/locking/lockdep.c:5868 local_lock_acquire+0x4c/0x19c include/linux/local_lock_internal.h:38 __folio_batch_add_and_move+0x23c/0x630 mm/swap.c:-1 folio_add_lru+0xc4/0x154 mm/swap.c:510 filemap_add_folio+0x188/0x298 mm/filemap.c:985 attach_eb_folio_to_filemap fs/btrfs/extent_io.c:3190 [inline] alloc_extent_buffer+0x568/0x237c fs/btrfs/extent_io.c:3320 btrfs_find_create_tree_block+0x3c/0x50 fs/btrfs/disk-io.c:606 btrfs_init_new_buffer fs/btrfs/extent-tree.c:5060 [inline] btrfs_alloc_tree_block+0x1c4/0xe5c fs/btrfs/extent-tree.c:5173 btrfs_force_cow_block+0x404/0x2044 fs/btrfs/ctree.c:517 btrfs_cow_block+0x3d4/0x934 fs/btrfs/ctree.c:699 btrfs_search_slot+0x9ec/0x2268 fs/btrfs/ctree.c:2097 btrfs_lookup_file_extent+0xd8/0x128 fs/btrfs/file-item.c:265 btrfs_drop_extents+0x348/0x248c fs/btrfs/file.c:187 insert_reserved_file_extent+0x254/0x7a4 fs/btrfs/inode.c:2961 insert_ordered_extent_file_extent fs/btrfs/inode.c:3063 [inline] btrfs_finish_one_ordered+0x918/0x1b98 fs/btrfs/inode.c:3183 btrfs_finish_ordered_io+0x120/0x134 fs/btrfs/inode.c:3325 finish_ordered_fn+0x20/0x30 fs/btrfs/ordered-data.c:347 btrfs_work_helper+0x380/0xca8 fs/btrfs/async-thread.c:312 process_one_work+0x7e8/0x155c kernel/workqueue.c:3236 process_scheduled_works kernel/workqueue.c:3319 [inline] worker_thread+0x958/0xed8 kernel/workqueue.c:3400 kthread+0x5fc/0x75c kernel/kthread.c:463 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:844 netdevsim netdevsim2 netdevsim3 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0 netdevsim netdevsim2 netdevsim2 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0 netdevsim netdevsim2 netdevsim1 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0 netdevsim netdevsim2 netdevsim0 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0 bridge_slave_1: left allmulticast mode bridge_slave_1: left promiscuous mode bridge0: port 2(bridge_slave_1) entered disabled state bridge_slave_0: left allmulticast mode bridge_slave_0: left promiscuous mode bridge0: port 1(bridge_slave_0) entered disabled state bond0 (unregistering): (slave bond_slave_0): Releasing backup interface bond0 (unregistering): (slave bond_slave_1): Releasing backup interface bond0 (unregistering): Released all slaves hsr_slave_0: left promiscuous mode hsr_slave_1: left promiscuous mode batman_adv: batadv0: Interface deactivated: batadv_slave_0 batman_adv: batadv0: Removing interface: batadv_slave_0 batman_adv: batadv0: Interface deactivated: batadv_slave_1 batman_adv: batadv0: Removing interface: batadv_slave_1 veth1_macvtap: left promiscuous mode veth0_macvtap: left promiscuous mode veth1_vlan: left promiscuous mode veth0_vlan: left promiscuous mode team0 (unregistering): Port device team_slave_1 removed team0 (unregistering): Port device team_slave_0 removed