BUG: MAX_LOCKDEP_CHAINS too low! turning off the locking correctness validator. CPU: 1 UID: 0 PID: 6664 Comm: kworker/u9:2 Not tainted 6.13.0-rc2-syzkaller-g2e7aff49b5da #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Workqueue: bcachefs_journal journal_write_done 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+0x2070/0x7904 kernel/locking/lockdep.c:5226 lock_acquire+0x23c/0x724 kernel/locking/lockdep.c:5849 do_write_seqcount_begin_nested include/linux/seqlock.h:454 [inline] do_write_seqcount_begin include/linux/seqlock.h:480 [inline] psi_group_change+0x270/0x11d8 kernel/sched/psi.c:792 psi_task_change+0xf4/0x228 kernel/sched/psi.c:912 psi_enqueue kernel/sched/stats.h:162 [inline] enqueue_task+0x1e8/0x23c kernel/sched/core.c:2068 activate_task kernel/sched/core.c:2108 [inline] ttwu_do_activate+0x1a0/0x684 kernel/sched/core.c:3720 ttwu_queue kernel/sched/core.c:3993 [inline] try_to_wake_up+0x64c/0x11d4 kernel/sched/core.c:4321 wake_up_process+0x18/0x24 kernel/sched/core.c:4454 kick_pool+0x3f0/0x59c kernel/workqueue.c:1279 __queue_work+0xe28/0x1308 kernel/workqueue.c:2340 queue_work_on+0xe0/0x1a0 kernel/workqueue.c:2390 queue_work include/linux/workqueue.h:662 [inline] bch2_dev_do_discards+0x14c/0x1bc fs/bcachefs/alloc_background.c:1912 bch2_do_discards+0x34/0x6c fs/bcachefs/alloc_background.c:1923 journal_write_done+0x5bc/0xba4 fs/bcachefs/journal_io.c:1625 process_one_work+0x7a8/0x15cc kernel/workqueue.c:3229 process_scheduled_works kernel/workqueue.c:3310 [inline] worker_thread+0x97c/0xeec kernel/workqueue.c:3391 kthread+0x288/0x310 kernel/kthread.c:389 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:862