BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! turning off the locking correctness validator. CPU: 1 PID: 6484 Comm: syz-executor Not tainted 6.1.114-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call trace: dump_backtrace+0x1c8/0x1f4 arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106 dump_stack+0x1c/0x58 lib/dump_stack.c:113 lookup_chain_cache_add kernel/locking/lockdep.c:3772 [inline] validate_chain kernel/locking/lockdep.c:3793 [inline] __lock_acquire+0x1b88/0x7680 kernel/locking/lockdep.c:5049 lock_acquire+0x26c/0x7cc kernel/locking/lockdep.c:5662 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x54/0x6c kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:351 [inline] sysfs_remove_dir+0x4c/0xec fs/sysfs/dir.c:95 __kobject_del+0xe8/0x2d4 lib/kobject.c:596 kobject_del+0x48/0x68 lib/kobject.c:619 cleanup_glue_dir+0x18c/0x204 drivers/base/core.c:3394 device_del+0x824/0x9bc drivers/base/core.c:3903 netdev_unregister_kobject+0x14c/0x204 net/core/net-sysfs.c:1985 unregister_netdevice_many+0x11b8/0x175c net/core/dev.c:10913 unregister_netdevice_queue+0x2d0/0x31c net/core/dev.c:10817 unregister_netdevice include/linux/netdevice.h:3045 [inline] nsim_destroy+0x58/0x164 drivers/net/netdevsim/netdev.c:382 __nsim_dev_port_del+0x148/0x1a8 drivers/net/netdevsim/dev.c:1430 nsim_dev_port_del_all drivers/net/netdevsim/dev.c:1442 [inline] nsim_dev_reload_destroy+0x240/0x43c drivers/net/netdevsim/dev.c:1659 nsim_drv_remove+0x64/0x154 drivers/net/netdevsim/dev.c:1675 nsim_bus_remove+0x20/0x30 drivers/net/netdevsim/bus.c:246 device_remove drivers/base/dd.c:548 [inline] __device_release_driver drivers/base/dd.c:1260 [inline] device_release_driver_internal+0x42c/0x724 drivers/base/dd.c:1286 device_release_driver+0x28/0x38 drivers/base/dd.c:1309 bus_remove_device+0x298/0x38c drivers/base/bus.c:531 device_del+0x57c/0x9bc drivers/base/core.c:3880 device_unregister+0x2c/0xcc drivers/base/core.c:3923 nsim_bus_dev_del drivers/net/netdevsim/bus.c:310 [inline] del_device_store+0x2c4/0x39c drivers/net/netdevsim/bus.c:219 bus_attr_store+0x80/0xa4 drivers/base/bus.c:124 sysfs_kf_write+0x200/0x280 fs/sysfs/file.c:136 kernfs_fop_write_iter+0x334/0x48c fs/kernfs/file.c:334 call_write_iter include/linux/fs.h:2265 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x610/0x91c fs/read_write.c:584 ksys_write+0x15c/0x26c fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __arm64_sys_write+0x7c/0x90 fs/read_write.c:646 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585