BUG: MAX_LOCKDEP_CHAINS too low! turning off the locking correctness validator. CPU: 0 UID: 0 PID: 9732 Comm: syz.0.779 Not tainted 6.16.0-rc2-syzkaller-g9aa9b43d689e #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_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x5c/0x7c kernel/locking/spinlock.c:162 class_raw_spinlock_irqsave_constructor include/linux/spinlock.h:557 [inline] try_to_wake_up+0x68/0xdf0 kernel/sched/core.c:4226 swake_up_locked kernel/sched/swait.c:29 [inline] swake_up_one+0x78/0x13c kernel/sched/swait.c:52 rcu_gp_kthread_wake kernel/rcu/tree.c:1121 [inline] rcu_report_qs_rsp+0x234/0x36c kernel/rcu/tree.c:2281 rcu_report_unblock_qs_rnp kernel/rcu/tree.c:2385 [inline] rcu_preempt_deferred_qs_irqrestore+0x9b0/0xd64 kernel/rcu/tree_plugin.h:569 rcu_read_unlock_special+0x2ec/0x3e4 kernel/rcu/tree_plugin.h:693 __rcu_read_unlock+0xa4/0x108 kernel/rcu/tree_plugin.h:438 rcu_read_unlock include/linux/rcupdate.h:873 [inline] class_rcu_destructor include/linux/rcupdate.h:1155 [inline] kernfs_root+0x1f8/0x240 fs/kernfs/kernfs-internal.h:80 kernfs_next_descendant_post+0x5c/0x1fc fs/kernfs/dir.c:1373 __kernfs_remove+0x1e4/0x59c fs/kernfs/dir.c:1490 kernfs_remove_by_name_ns+0xac/0x14c fs/kernfs/dir.c:1717 kernfs_remove_by_name include/linux/kernfs.h:633 [inline] remove_files fs/sysfs/group.c:28 [inline] sysfs_remove_group+0xf8/0x29c fs/sysfs/group.c:322 sysfs_remove_groups+0x5c/0xb4 fs/sysfs/group.c:346 device_remove_groups drivers/base/core.c:2846 [inline] device_remove_attrs+0x19c/0x220 drivers/base/core.c:2979 device_del+0x474/0x808 drivers/base/core.c:3880 drop_partition+0x100/0x16c block/partitions/core.c:278 bdev_disk_changed+0x220/0x11fc block/partitions/core.c:674 __loop_clr_fd drivers/block/loop.c:1153 [inline] lo_release+0x3f4/0x684 drivers/block/loop.c:1719 bdev_release+0x4d8/0x654 block/bdev.c:-1 blkdev_release+0x20/0x34 block/fops.c:684 __fput+0x340/0x75c fs/file_table.c:465 ____fput+0x20/0x58 fs/file_table.c:493 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+0x16c/0x1ec arch/arm64/kernel/entry-common.c:151 exit_to_user_mode_prepare arch/arm64/kernel/entry-common.c:169 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:178 [inline] el0_svc+0xb4/0x17c arch/arm64/kernel/entry-common.c:768 el0t_64_sync_handler+0x78/0x108 arch/arm64/kernel/entry-common.c:786 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600