BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! turning off the locking correctness validator. CPU: 0 PID: 1692 Comm: kworker/u4:5 Not tainted 6.1.114-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Workqueue: netns cleanup_net 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 local_lock_acquire+0x44/0x1ac include/linux/local_lock_internal.h:29 __radix_tree_preload+0x98/0x424 lib/radix-tree.c:332 idr_preload+0x24/0xd0 lib/radix-tree.c:1469 __kernfs_new_node+0xfc/0x684 fs/kernfs/dir.c:618 kernfs_new_node+0x11c/0x230 fs/kernfs/dir.c:690 kernfs_create_dir_ns+0x58/0x12c fs/kernfs/dir.c:1046 sysfs_create_dir_ns+0x150/0x318 fs/sysfs/dir.c:59 create_dir lib/kobject.c:63 [inline] kobject_add_internal+0x598/0xb14 lib/kobject.c:231 kobject_add_varg lib/kobject.c:366 [inline] kobject_add+0x14c/0x21c lib/kobject.c:418 class_dir_create_and_add drivers/base/core.c:3229 [inline] get_device_parent+0x364/0x3dc drivers/base/core.c:3284 device_add+0x2d0/0xef4 drivers/base/core.c:3613 netdev_register_kobject+0x15c/0x2d8 net/core/net-sysfs.c:2013 register_netdevice+0xdf4/0x130c net/core/dev.c:10103 nsim_init_netdevsim drivers/net/netdevsim/netdev.c:317 [inline] nsim_create+0x2c0/0x368 drivers/net/netdevsim/netdev.c:365 __nsim_dev_port_add+0x52c/0x8c8 drivers/net/netdevsim/dev.c:1393 nsim_dev_port_add_all drivers/net/netdevsim/dev.c:1451 [inline] nsim_dev_reload_create drivers/net/netdevsim/dev.c:1503 [inline] nsim_dev_reload_up+0x554/0x740 drivers/net/netdevsim/dev.c:985 devlink_reload+0x244/0x578 net/devlink/leftover.c:4479 devlink_pernet_pre_exit+0x138/0x318 net/devlink/leftover.c:12501 ops_pre_exit_list net/core/net_namespace.c:162 [inline] cleanup_net+0x488/0x994 net/core/net_namespace.c:592 process_one_work+0x7ac/0x1404 kernel/workqueue.c:2292 worker_thread+0x8e4/0xfec kernel/workqueue.c:2439 kthread+0x250/0x2d8 kernel/kthread.c:376 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:864 tipc: Left network mode device hsr_slave_0 left promiscuous mode device hsr_slave_1 left promiscuous mode batman_adv: batadv0: Interface deactivated: batadv_slave_0 batman_adv: batadv0: Removing interface: batadv_slave_0 batman_adv: batadv0: Interface deactivated: batadv_slave_1 batman_adv: batadv0: Removing interface: batadv_slave_1 device bridge_slave_1 left promiscuous mode bridge0: port 2(bridge_slave_1) entered disabled state device bridge_slave_0 left promiscuous mode bridge0: port 1(bridge_slave_0) entered disabled state device hsr_slave_0 left promiscuous mode device hsr_slave_1 left promiscuous mode batman_adv: batadv0: Interface deactivated: batadv_slave_0 batman_adv: batadv0: Removing interface: batadv_slave_0 batman_adv: batadv0: Interface deactivated: batadv_slave_1 batman_adv: batadv0: Removing interface: batadv_slave_1 device bridge_slave_1 left promiscuous mode bridge0: port 2(bridge_slave_1) entered disabled state device bridge_slave_0 left promiscuous mode bridge0: port 1(bridge_slave_0) entered disabled state device veth1_macvtap left promiscuous mode device veth0_macvtap left promiscuous mode device veth1_vlan left promiscuous mode device veth0_vlan left promiscuous mode device veth1_macvtap left promiscuous mode device veth0_macvtap left promiscuous mode device veth1_vlan left promiscuous mode device veth0_vlan left promiscuous mode team0 (unregistering): Port device team_slave_1 removed team0 (unregistering): Port device team_slave_0 removed bond0 (unregistering): (slave bond_slave_1): Releasing backup interface bond0 (unregistering): (slave bond_slave_0): Releasing backup interface team0 (unregistering): Port device bridge0 removed bond0 (unregistering): Released all slaves team0 (unregistering): Port device team_slave_1 removed team0 (unregistering): Port device team_slave_0 removed bond0 (unregistering): (slave bond_slave_1): Releasing backup interface bond0 (unregistering): (slave bond_slave_0): Releasing backup interface bond0 (unregistering): Released all slaves