BUG: MAX_LOCKDEP_CHAINS too low! turning off the locking correctness validator. CPU: 0 UID: 0 PID: 15457 Comm: syz-executor344 Not tainted 6.12.0-syzkaller-g7b1d1d4cfac0 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:484 (C) __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0xe4/0x150 lib/dump_stack.c:120 dump_stack+0x1c/0x28 lib/dump_stack.c:129 lookup_chain_cache_add kernel/locking/lockdep.c:3851 [inline] validate_chain kernel/locking/lockdep.c:3872 [inline] __lock_acquire+0x1fb8/0x77c8 kernel/locking/lockdep.c:5202 lock_acquire+0x240/0x728 kernel/locking/lockdep.c:5825 _raw_spin_lock_nested+0x50/0x6c kernel/locking/spinlock.c:378 raw_spin_rq_lock_nested kernel/sched/core.c:598 [inline] raw_spin_rq_lock kernel/sched/sched.h:1506 [inline] rq_lock kernel/sched/sched.h:1805 [inline] __schedule+0x2e0/0x27d0 kernel/sched/core.c:6592 preempt_schedule_irq+0x80/0x188 kernel/sched/core.c:7015 arm64_preempt_schedule_irq arch/arm64/kernel/entry-common.c:301 [inline] __el1_irq arch/arm64/kernel/entry-common.c:563 [inline] el1_interrupt+0x4c/0x68 arch/arm64/kernel/entry-common.c:575 el1h_64_irq_handler+0x18/0x24 arch/arm64/kernel/entry-common.c:580 el1h_64_irq+0x6c/0x70 arch/arm64/kernel/entry.S:596 __daif_local_irq_restore arch/arm64/include/asm/irqflags.h:175 [inline] (P) arch_local_irq_restore arch/arm64/include/asm/irqflags.h:195 [inline] (P) lock_acquire+0x27c/0x728 kernel/locking/lockdep.c:5828 (P) lockdep_recursion_finish kernel/locking/lockdep.c:467 [inline] (L) lock_acquire+0x24c/0x728 kernel/locking/lockdep.c:5827 (L) touch_wq_lockdep_map+0xa8/0x164 kernel/workqueue.c:3880 __flush_workqueue+0x118/0x1174 kernel/workqueue.c:3922 drain_workqueue+0xb8/0x32c kernel/workqueue.c:4086 destroy_workqueue+0xb8/0xdc0 kernel/workqueue.c:5830 __bch2_fs_free fs/bcachefs/super.c:596 [inline] bch2_fs_release+0x5fc/0x728 fs/bcachefs/super.c:611 kobject_cleanup lib/kobject.c:689 [inline] kobject_release lib/kobject.c:720 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x2a8/0x41c lib/kobject.c:737 bch2_fs_free+0x2c4/0x334 fs/bcachefs/super.c:673 bch2_fs_alloc fs/bcachefs/super.c:960 [inline] bch2_fs_open+0x14e0/0x27c4 fs/bcachefs/super.c:2065 bch2_fs_get_tree+0x53c/0x1030 fs/bcachefs/fs.c:2157 vfs_get_tree+0x90/0x28c fs/super.c:1814 do_new_mount+0x278/0x900 fs/namespace.c:3507 path_mount+0x590/0xe04 fs/namespace.c:3834 do_mount fs/namespace.c:3847 [inline] __do_sys_mount fs/namespace.c:4057 [inline] __se_sys_mount fs/namespace.c:4034 [inline] __arm64_sys_mount+0x4d4/0x5ac fs/namespace.c:4034 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:744 el0t_64_sync_handler+0x84/0x108 arch/arm64/kernel/entry-common.c:762 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 bcachefs: bch2_fs_get_tree() error: EINVAL