BUG: MAX_LOCKDEP_ENTRIES too low! turning off the locking correctness validator. CPU: 3 PID: 8621 Comm: syz-executor.0 Not tainted 5.12.0-rc8-syzkaller #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x141/0x1d7 lib/dump_stack.c:120 alloc_list_entry kernel/locking/lockdep.c:1353 [inline] add_lock_to_list.constprop.0.cold+0x11/0x18 kernel/locking/lockdep.c:1374 check_prev_add kernel/locking/lockdep.c:3007 [inline] check_prevs_add kernel/locking/lockdep.c:3060 [inline] validate_chain kernel/locking/lockdep.c:3675 [inline] __lock_acquire+0x2f37/0x54c0 kernel/locking/lockdep.c:4901 lock_acquire kernel/locking/lockdep.c:5511 [inline] lock_acquire+0x1ab/0x740 kernel/locking/lockdep.c:5476 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:151 __queue_work+0x366/0xf00 kernel/workqueue.c:1454 queue_work_on+0xee/0x110 kernel/workqueue.c:1524 queue_work include/linux/workqueue.h:507 [inline] schedule_work include/linux/workqueue.h:568 [inline] __vfree_deferred mm/vmalloc.c:2307 [inline] vfree_atomic+0xac/0xe0 mm/vmalloc.c:2325 free_thread_stack kernel/fork.c:291 [inline] release_task_stack kernel/fork.c:428 [inline] put_task_stack+0x29c/0x480 kernel/fork.c:439 finish_task_switch.isra.0+0x5c0/0x810 kernel/sched/core.c:4231 context_switch kernel/sched/core.c:4325 [inline] __schedule+0x919/0x21b0 kernel/sched/core.c:5073 schedule+0xcf/0x270 kernel/sched/core.c:5152 btrfs_wait_block_group_cache_progress+0x321/0x430 fs/btrfs/block-group.c:406 find_free_extent_clustered fs/btrfs/extent-tree.c:3657 [inline] do_allocation_clustered fs/btrfs/extent-tree.c:3743 [inline] do_allocation fs/btrfs/extent-tree.c:3870 [inline] find_free_extent+0x1ec5/0x3a70 fs/btrfs/extent-tree.c:4309 btrfs_reserve_extent+0x1f1/0x510 fs/btrfs/extent-tree.c:4441 btrfs_alloc_tree_block+0x1c6/0xf30 fs/btrfs/extent-tree.c:4840 alloc_tree_block_no_bg_flush+0x1bb/0x260 fs/btrfs/ctree.c:992 __btrfs_cow_block+0x41e/0x1300 fs/btrfs/ctree.c:1048 btrfs_cow_block+0x2b9/0x870 fs/btrfs/ctree.c:1495 commit_cowonly_roots+0x13a/0xac0 fs/btrfs/transaction.c:1233 btrfs_commit_transaction+0xd47/0x2c50 fs/btrfs/transaction.c:2293 btrfs_commit_super+0xc1/0x100 fs/btrfs/disk-io.c:4210 close_ctree+0x2ea/0x789 fs/btrfs/disk-io.c:4275 generic_shutdown_super+0x144/0x370 fs/super.c:464 kill_anon_super+0x36/0x60 fs/super.c:1056 btrfs_kill_super+0x38/0x50 fs/btrfs/super.c:2353 deactivate_locked_super+0x94/0x160 fs/super.c:335 deactivate_super+0xad/0xd0 fs/super.c:366 cleanup_mnt+0x3a3/0x530 fs/namespace.c:1136 task_work_run+0xdd/0x1a0 kernel/task_work.c:140 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:174 [inline] exit_to_user_mode_prepare+0x249/0x250 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:301 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x467a57 Code: ff d0 48 89 c7 b8 3c 00 00 00 0f 05 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 b8 a6 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffc04600538 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000467a57 RDX: 00007ffc0460060b RSI: 0000000000000002 RDI: 00007ffc04600600 RBP: 00007ffc04600600 R08: 00000000ffffffff R09: 00007ffc046003d0 R10: 0000000001dea8e3 R11: 0000000000000246 R12: 00000000004bee98 R13: 00007ffc046016d0 R14: 0000000001dea810 R15: 00007ffc04601710