BUG: MAX_LOCKDEP_CHAINS too low! turning off the locking correctness validator. CPU: 0 UID: 0 PID: 213 Comm: kworker/u8:4 Not tainted 6.12.0-rc7-syzkaller-g887407160d72 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Workqueue: netns cleanup_net 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+0x1fb8/0x77c8 kernel/locking/lockdep.c:5202 lock_acquire+0x240/0x728 kernel/locking/lockdep.c:5825 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:126 [inline] _raw_spin_lock_bh+0x48/0x60 kernel/locking/spinlock.c:178 spin_lock_bh include/linux/spinlock.h:356 [inline] igmpv3_clear_delrec+0x40/0x6f4 net/ipv4/igmp.c:1265 ip_mc_destroy_dev+0x78/0x370 net/ipv4/igmp.c:1815 inetdev_destroy net/ipv4/devinet.c:336 [inline] inetdev_event+0x37c/0x1278 net/ipv4/devinet.c:1643 notifier_call_chain+0x1b4/0x538 kernel/notifier.c:93 raw_notifier_call_chain+0x3c/0x50 kernel/notifier.c:461 call_netdevice_notifiers_info net/core/dev.c:1996 [inline] call_netdevice_notifiers_extack net/core/dev.c:2034 [inline] call_netdevice_notifiers net/core/dev.c:2048 [inline] unregister_netdevice_many_notify+0xde0/0x1c64 net/core/dev.c:11407 unregister_netdevice_many net/core/dev.c:11469 [inline] unregister_netdevice_queue+0x2d8/0x324 net/core/dev.c:11343 unregister_netdevice include/linux/netdevice.h:3118 [inline] nsim_destroy+0x15c/0x50c drivers/net/netdevsim/netdev.c:778 __nsim_dev_port_del+0x140/0x1a0 drivers/net/netdevsim/dev.c:1428 nsim_dev_port_del_all drivers/net/netdevsim/dev.c:1440 [inline] nsim_dev_reload_destroy+0x240/0x43c drivers/net/netdevsim/dev.c:1661 nsim_dev_reload_down+0xac/0xe8 drivers/net/netdevsim/dev.c:968 devlink_reload+0x188/0x79c net/devlink/dev.c:461 devlink_pernet_pre_exit+0x1c0/0x418 net/devlink/core.c:509 ops_pre_exit_list net/core/net_namespace.c:163 [inline] cleanup_net+0x4dc/0x9b4 net/core/net_namespace.c:606 process_one_work+0x7bc/0x1600 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 netdevsim netdevsim7 netdevsim3 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0 netdevsim netdevsim7 netdevsim2 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0 netdevsim netdevsim7 netdevsim1 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0 netdevsim netdevsim7 netdevsim0 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0 bridge_slave_1: left allmulticast mode bridge_slave_1: left promiscuous mode bridge0: port 2(bridge_slave_1) entered disabled state bridge_slave_0: left allmulticast mode bridge_slave_0: left promiscuous mode bridge0: port 1(bridge_slave_0) entered disabled state bond0 (unregistering): (slave bond_slave_0): Releasing backup interface bond0 (unregistering): (slave bond_slave_1): Releasing backup interface bond0 (unregistering): Released all slaves hsr_slave_0: left promiscuous mode 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 veth1_macvtap: left promiscuous mode veth0_macvtap: left promiscuous mode veth1_vlan: left promiscuous mode veth0_vlan: left promiscuous mode team0 (unregistering): Port device team_slave_1 removed team0 (unregistering): Port device team_slave_0 removed BUG: sleeping function called from invalid context at net/core/dev.c:11284 in_atomic(): 0, irqs_disabled(): 0, non_block: 0, pid: 213, name: kworker/u8:4 preempt_count: 0, expected: 0 RCU nest depth: 1, expected: 0 INFO: lockdep is turned off. CPU: 0 UID: 0 PID: 213 Comm: kworker/u8:4 Not tainted 6.12.0-rc7-syzkaller-g887407160d72 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Workqueue: bond0 bond_mii_monitor 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 __might_resched+0x374/0x4d0 kernel/sched/core.c:8653 __might_sleep+0x90/0xe4 kernel/sched/core.c:8582 synchronize_net+0x24/0x60 net/core/dev.c:11284 dev_deactivate_many+0x4a8/0xa8c net/sched/sch_generic.c:1377 dev_deactivate+0x13c/0x1fc net/sched/sch_generic.c:1403 linkwatch_do_dev+0x100/0x1a8 net/core/link_watch.c:175 linkwatch_sync_dev+0x150/0x16c net/core/link_watch.c:263 ethtool_op_get_link+0x20/0x5c net/ethtool/ioctl.c:62 bond_check_dev_link+0x1ac/0x370 drivers/net/bonding/bond_main.c:873 bond_miimon_inspect drivers/net/bonding/bond_main.c:2717 [inline] bond_mii_monitor+0x3d8/0x28b4 drivers/net/bonding/bond_main.c:2939 process_one_work+0x7bc/0x1600 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 ------------[ cut here ]------------ Voluntary context switch within RCU read-side critical section! WARNING: CPU: 0 PID: 213 at kernel/rcu/tree_plugin.h:331 rcu_note_context_switch+0xb84/0x101c kernel/rcu/tree_plugin.h:331 Modules linked in: CPU: 0 UID: 0 PID: 213 Comm: kworker/u8:4 Tainted: G W 6.12.0-rc7-syzkaller-g887407160d72 #0 Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Workqueue: bond0 bond_mii_monitor pstate: 604000c5 (nZCv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : rcu_note_context_switch+0xb84/0x101c kernel/rcu/tree_plugin.h:331 lr : rcu_note_context_switch+0xb84/0x101c kernel/rcu/tree_plugin.h:331 sp : ffff80009bc26e70 x29: ffff80009bc26f00 x28: dfff800000000000 x27: 1ffff00011f020ba x26: 0000000000000000 x25: ffff80008f774900 x24: 0000000000000000 x23: 0000000000000000 x22: ffff800123ed7000 x21: ffff0000c61b0000 x20: ffff0000c61b0404 x19: ffff0000c61b0000 x18: 0000000000000008 x17: 0000000000000000 x16: ffff8000830ce3b0 x15: 0000000000000001 x14: 1fffe000366c6ce2 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000000003 x10: 0000000000ff0100 x9 : ee8ce6040ba6df00 x8 : ee8ce6040ba6df00 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff80009bc26598 x4 : ffff80008f8fd220 x3 : ffff800080626cb0 x2 : 0000000000000001 x1 : 0000000100000001 x0 : 0000000000000000 Call trace: rcu_note_context_switch+0xb84/0x101c kernel/rcu/tree_plugin.h:331 (P) rcu_note_context_switch+0xb84/0x101c kernel/rcu/tree_plugin.h:331 (L) __schedule+0x2c8/0x27d0 kernel/sched/core.c:6570 __schedule_loop kernel/sched/core.c:6767 [inline] schedule+0xbc/0x238 kernel/sched/core.c:6782 schedule_preempt_disabled+0x18/0x2c kernel/sched/core.c:6839 __mutex_lock_common+0xbd8/0x21a0 kernel/locking/mutex.c:684 __mutex_lock kernel/locking/mutex.c:752 [inline] mutex_lock_nested+0x2c/0x38 kernel/locking/mutex.c:804 exp_funnel_lock kernel/rcu/tree_exp.h:329 [inline] synchronize_rcu_expedited+0x324/0x674 kernel/rcu/tree_exp.h:976 synchronize_net+0x44/0x60 net/core/dev.c:11286 dev_deactivate_many+0x4a8/0xa8c net/sched/sch_generic.c:1377 dev_deactivate+0x13c/0x1fc net/sched/sch_generic.c:1403 linkwatch_do_dev+0x100/0x1a8 net/core/link_watch.c:175 linkwatch_sync_dev+0x150/0x16c net/core/link_watch.c:263 ethtool_op_get_link+0x20/0x5c net/ethtool/ioctl.c:62 bond_check_dev_link+0x1ac/0x370 drivers/net/bonding/bond_main.c:873 bond_miimon_inspect drivers/net/bonding/bond_main.c:2717 [inline] bond_mii_monitor+0x3d8/0x28b4 drivers/net/bonding/bond_main.c:2939 process_one_work+0x7bc/0x1600 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 irq event stamp: 1670372 hardirqs last enabled at (1670371): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline] hardirqs last enabled at (1670371): [] _raw_spin_unlock_irqrestore+0x38/0x98 kernel/locking/spinlock.c:194 hardirqs last disabled at (1670370): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline] hardirqs last disabled at (1670370): [] _raw_spin_lock_irqsave+0x2c/0x7c kernel/locking/spinlock.c:162 softirqs last enabled at (1670352): [] spin_unlock_bh include/linux/spinlock.h:396 [inline] softirqs last enabled at (1670352): [] __devlink_port_type_set+0x41c/0x590 net/devlink/port.c:1231 softirqs last disabled at (1670372): [] spin_lock_bh include/linux/spinlock.h:356 [inline] softirqs last disabled at (1670372): [] igmpv3_clear_delrec+0x40/0x6f4 net/ipv4/igmp.c:1265 ---[ end trace 0000000000000000 ]---