BUG: MAX_LOCKDEP_CHAINS too low! turning off the locking correctness validator. CPU: 0 UID: 0 PID: 7404 Comm: syz-executor Not tainted 6.16.0-rc4-syzkaller-g7482bb149b9f #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:501 (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:3858 [inline] validate_chain kernel/locking/lockdep.c:3879 [inline] __lock_acquire+0xf9c/0x30a4 kernel/locking/lockdep.c:5240 lock_acquire+0x14c/0x2e0 kernel/locking/lockdep.c:5871 _raw_spin_lock_nested+0x50/0x6c kernel/locking/spinlock.c:378 raw_spin_rq_lock_nested kernel/sched/core.c:606 [inline] raw_spin_rq_lock kernel/sched/sched.h:1532 [inline] rq_lock kernel/sched/sched.h:1856 [inline] __schedule+0x340/0x2a28 kernel/sched/core.c:6709 preempt_schedule_irq+0x80/0x188 kernel/sched/core.c:7108 arm64_preempt_schedule_irq+0x44/0x58 arch/arm64/kernel/entry-common.c:305 __el1_irq arch/arm64/kernel/entry-common.c:656 [inline] el1_interrupt+0x3c/0x54 arch/arm64/kernel/entry-common.c:668 el1h_64_irq_handler+0x18/0x24 arch/arm64/kernel/entry-common.c:673 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+0x8/0xc arch/arm64/include/asm/irqflags.h:195 (P) lock_is_held include/linux/lockdep.h:249 [inline] rcu_read_lock_held+0x34/0x50 kernel/rcu/update.c:351 kernfs_root+0xf0/0x240 fs/kernfs/kernfs-internal.h:76 kernfs_find_ns+0xa4/0x320 fs/kernfs/dir.c:860 kernfs_remove_by_name_ns+0x4c/0x14c fs/kernfs/dir.c:1714 kernfs_remove_by_name include/linux/kernfs.h:633 [inline] sysfs_unmerge_group+0xd8/0x138 fs/sysfs/group.c:402 pm_qos_sysfs_remove_resume_latency+0x28/0x38 drivers/base/power/sysfs.c:797 dev_pm_qos_constraints_destroy+0x44/0x460 drivers/base/power/qos.c:260 dpm_sysfs_remove+0x74/0xd4 drivers/base/power/sysfs.c:831 device_del+0x20c/0x808 drivers/base/core.c:3856 device_unregister+0x2c/0xcc drivers/base/core.c:3922 bdi_unregister+0x3bc/0x494 mm/backing-dev.c:1170 generic_shutdown_super+0x228/0x2b8 fs/super.c:683 bch2_kill_sb+0x40/0x58 fs/bcachefs/fs.c:2619 deactivate_locked_super+0xc4/0x12c fs/super.c:474 deactivate_super+0xe0/0x100 fs/super.c:507 cleanup_mnt+0x31c/0x3ac fs/namespace.c:1417 __cleanup_mnt+0x20/0x30 fs/namespace.c:1424 task_work_run+0x1dc/0x260 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] do_notify_resume+0x174/0x1f4 arch/arm64/kernel/entry-common.c:155 exit_to_user_mode_prepare arch/arm64/kernel/entry-common.c:173 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:182 [inline] el0_svc+0xb8/0x180 arch/arm64/kernel/entry-common.c:880 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:898 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 bcachefs (loop0): shutdown complete bcachefs (loop0): shutting down bcachefs (loop0): going read-only bcachefs (loop0): finished waiting for writes to stop bcachefs (loop0): flushing journal and stopping allocators, journal seq 2 bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 3 bcachefs (loop0): clean shutdown complete, journal seq 4 bcachefs (loop0): marking filesystem clean bcachefs (loop0): shutdown complete bcachefs (loop0): shutting down bcachefs (loop0): going read-only bcachefs (loop0): finished waiting for writes to stop bcachefs (loop0): flushing journal and stopping allocators, journal seq 2 bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 3 bcachefs (loop0): clean shutdown complete, journal seq 4 bcachefs (loop0): marking filesystem clean bcachefs (loop0): shutdown complete bcachefs (loop0): shutting down bcachefs (loop0): going read-only bcachefs (loop0): finished waiting for writes to stop bcachefs (loop0): flushing journal and stopping allocators, journal seq 3 bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 3 bcachefs (loop0): clean shutdown complete, journal seq 4 bcachefs (loop0): marking filesystem clean bcachefs (loop0): shutdown complete bcachefs (loop0): shutting down bcachefs (loop0): going read-only bcachefs (loop0): finished waiting for writes to stop bcachefs (loop0): flushing journal and stopping allocators, journal seq 2 bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 2 bcachefs (loop0): clean shutdown complete, journal seq 3 bcachefs (loop0): marking filesystem clean bcachefs (loop0): shutdown complete bcachefs (loop0): shutting down bcachefs (loop0): going read-only bcachefs (loop0): finished waiting for writes to stop bcachefs (loop0): flushing journal and stopping allocators, journal seq 2 bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 3 bcachefs (loop0): clean shutdown complete, journal seq 4 bcachefs (loop0): marking filesystem clean bcachefs (loop0): shutdown complete bcachefs (loop0): shutting down bcachefs (loop0): going read-only bcachefs (loop0): finished waiting for writes to stop bcachefs (loop0): flushing journal and stopping allocators, journal seq 2 bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 3 bcachefs (loop0): clean shutdown complete, journal seq 4 bcachefs (loop0): marking filesystem clean bcachefs (loop0): shutdown complete bcachefs (loop0): shutting down bcachefs (loop0): going read-only bcachefs (loop0): finished waiting for writes to stop bcachefs (loop0): flushing journal and stopping allocators, journal seq 2 bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 3 bcachefs (loop0): clean shutdown complete, journal seq 4 bcachefs (loop0): marking filesystem clean bcachefs (loop0): shutdown complete bcachefs (loop0): shutting down bcachefs (loop0): going read-only bcachefs (loop0): finished waiting for writes to stop bcachefs (loop0): flushing journal and stopping allocators, journal seq 2 bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 3 bcachefs (loop0): clean shutdown complete, journal seq 4 bcachefs (loop0): marking filesystem clean bcachefs (loop0): shutdown complete bcachefs (loop0): shutting down bcachefs (loop0): going read-only bcachefs (loop0): finished waiting for writes to stop bcachefs (loop0): flushing journal and stopping allocators, journal seq 3 bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 3 bcachefs (loop0): clean shutdown complete, journal seq 4 bcachefs (loop0): marking filesystem clean bcachefs (loop0): shutdown complete bcachefs (loop0): shutting down bcachefs (loop0): going read-only bcachefs (loop0): finished waiting for writes to stop bcachefs (loop0): flushing journal and stopping allocators, journal seq 3 bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 3 bcachefs (loop0): clean shutdown complete, journal seq 4 bcachefs (loop0): marking filesystem clean bcachefs (loop0): shutdown complete bcachefs (loop0): shutting down bcachefs (loop0): going read-only bcachefs (loop0): finished waiting for writes to stop bcachefs (loop0): flushing journal and stopping allocators, journal seq 2 bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 3 bcachefs (loop0): clean shutdown complete, journal seq 4 bcachefs (loop0): marking filesystem clean bcachefs (loop0): shutdown complete bcachefs (loop0): shutting down bcachefs (loop0): going read-only bcachefs (loop0): finished waiting for writes to stop bcachefs (loop0): flushing journal and stopping allocators, journal seq 2 bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 2 bcachefs (loop0): clean shutdown complete, journal seq 3 bcachefs (loop0): marking filesystem clean bcachefs (loop0): shutdown complete bcachefs (loop0): shutting down bcachefs (loop0): going read-only bcachefs (loop0): finished waiting for writes to stop bcachefs (loop0): flushing journal and stopping allocators, journal seq 2 bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 3 bcachefs (loop0): clean shutdown complete, journal seq 4 bcachefs (loop0): marking filesystem clean bcachefs (loop0): shutdown complete bcachefs (loop0): shutting down bcachefs (loop0): going read-only bcachefs (loop0): finished waiting for writes to stop bcachefs (loop0): flushing journal and stopping allocators, journal seq 1 bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 2 bcachefs (loop0): clean shutdown complete, journal seq 3 bcachefs (loop0): marking filesystem clean bcachefs (loop0): shutdown complete bcachefs (loop0): shutting down bcachefs (loop0): going read-only bcachefs (loop0): finished waiting for writes to stop bcachefs (loop0): flushing journal and stopping allocators, journal seq 2 bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 3 bcachefs (loop0): clean shutdown complete, journal seq 4 bcachefs (loop0): marking filesystem clean bcachefs (loop0): shutdown complete bcachefs (loop0): shutting down bcachefs (loop0): going read-only bcachefs (loop0): finished waiting for writes to stop bcachefs (loop0): flushing journal and stopping allocators, journal seq 3 bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 3 bcachefs (loop0): clean shutdown complete, journal seq 4 bcachefs (loop0): marking filesystem clean