netdevsim netdevsim4 netdevsim3 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0 BUG: MAX_LOCKDEP_CHAINS too low! turning off the locking correctness validator. CPU: 0 UID: 0 PID: 8118 Comm: kworker/u8:17 Not tainted 6.13.0-rc7-syzkaller-g1950a0af2d55 #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:466 (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 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x5c/0x7c kernel/locking/spinlock.c:162 uart_port_lock_irqsave include/linux/serial_core.h:715 [inline] pl011_console_write+0x158/0xdc0 drivers/tty/serial/amba-pl011.c:2323 console_emit_next_record kernel/printk/printk.c:3122 [inline] console_flush_all+0x604/0xb90 kernel/printk/printk.c:3210 __console_flush_and_unlock kernel/printk/printk.c:3269 [inline] console_unlock+0x138/0x3ac kernel/printk/printk.c:3309 vprintk_emit+0x308/0x55c kernel/printk/printk.c:2432 dev_vprintk_emit+0x29c/0x328 drivers/base/core.c:4935 dev_printk_emit+0xec/0x13c drivers/base/core.c:4946 __netdev_printk+0x2bc/0x3a4 net/core/dev.c:11957 netdev_info+0x104/0x150 net/core/dev.c:12012 nsim_udp_tunnel_unset_port+0x274/0x454 drivers/net/netdevsim/udp_tunnels.c:64 udp_tunnel_nic_device_sync_by_port net/ipv4/udp_tunnel_nic.c:246 [inline] __udp_tunnel_nic_device_sync+0x844/0x1030 net/ipv4/udp_tunnel_nic.c:289 udp_tunnel_nic_flush+0x440/0x8d0 net/ipv4/udp_tunnel_nic.c:670 udp_tunnel_nic_unregister net/ipv4/udp_tunnel_nic.c:864 [inline] udp_tunnel_nic_netdevice_event+0x788/0x11ac net/ipv4/udp_tunnel_nic.c:904 notifier_call_chain+0x1c4/0x550 kernel/notifier.c:85 raw_notifier_call_chain+0x3c/0x50 kernel/notifier.c:453 call_netdevice_notifiers_info net/core/dev.c:2026 [inline] call_netdevice_notifiers_extack net/core/dev.c:2064 [inline] call_netdevice_notifiers net/core/dev.c:2078 [inline] unregister_netdevice_many_notify+0xde0/0x1c6c net/core/dev.c:11545 unregister_netdevice_many net/core/dev.c:11609 [inline] unregister_netdevice_queue+0x2d8/0x324 net/core/dev.c:11481 unregister_netdevice include/linux/netdevice.h:3192 [inline] nsim_destroy+0x15c/0x50c drivers/net/netdevsim/netdev.c:821 __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:162 [inline] cleanup_net+0x4dc/0xa34 net/core/net_namespace.c:628 process_one_work+0x7a8/0x15cc kernel/workqueue.c:3236 process_scheduled_works kernel/workqueue.c:3317 [inline] worker_thread+0x97c/0xeec kernel/workqueue.c:3398 kthread+0x288/0x310 kernel/kthread.c:389 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:862 netdevsim netdevsim4 netdevsim2 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0 netdevsim netdevsim4 netdevsim1 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0 netdevsim netdevsim4 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:11422 in_atomic(): 0, irqs_disabled(): 0, non_block: 0, pid: 8118, name: kworker/u8:17 preempt_count: 0, expected: 0 RCU nest depth: 1, expected: 0 INFO: lockdep is turned off. CPU: 1 UID: 0 PID: 8118 Comm: kworker/u8:17 Not tainted 6.13.0-rc7-syzkaller-g1950a0af2d55 #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:466 (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:8758 __might_sleep+0x90/0xe4 kernel/sched/core.c:8687 synchronize_net+0x24/0x60 net/core/dev.c:11422 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:184 linkwatch_sync_dev+0x150/0x16c net/core/link_watch.c:272 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:2740 [inline] bond_mii_monitor+0x3d8/0x28b4 drivers/net/bonding/bond_main.c:2962 process_one_work+0x7a8/0x15cc kernel/workqueue.c:3236 process_scheduled_works kernel/workqueue.c:3317 [inline] worker_thread+0x97c/0xeec kernel/workqueue.c:3398 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: 1 PID: 8118 at kernel/rcu/tree_plugin.h:331 rcu_note_context_switch+0xb84/0x101c kernel/rcu/tree_plugin.h:331 Modules linked in: CPU: 1 UID: 0 PID: 8118 Comm: kworker/u8:17 Tainted: G W 6.13.0-rc7-syzkaller-g1950a0af2d55 #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 : ffff80009c186df0 x29: ffff80009c186e80 x28: dfff800000000000 x27: 1ffff00011f340ca x26: 0000000000000000 x25: ffff80008f900680 x24: 0000000000000000 x23: ffff0000c4ea15e0 x22: ffff800123f1c000 x21: ffff0000c4ea0000 x20: ffff0000c4ea0404 x19: ffff0000c4ea0000 x18: 0000000000000008 x17: 0000000000000000 x16: ffff80008327a354 x15: 0000000000000001 x14: 1fffe00036700eea x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000000003 x10: 0000000000ff0100 x9 : 9e783c02d9332200 x8 : 9e783c02d9332200 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff80009c186518 x4 : ffff80008fa90460 x3 : ffff80008073e504 x2 : 0000000000000001 x1 : 0000000100000001 x0 : 0000000000000000 Call trace: rcu_note_context_switch+0xb84/0x101c kernel/rcu/tree_plugin.h:331 (P) __schedule+0x2c8/0x27f0 kernel/sched/core.c:6661 __schedule_loop kernel/sched/core.c:6833 [inline] schedule+0xbc/0x238 kernel/sched/core.c:6848 schedule_preempt_disabled+0x18/0x2c kernel/sched/core.c:6905 __mutex_lock_common+0xeec/0x28f4 kernel/locking/mutex.c:665 __mutex_lock kernel/locking/mutex.c:735 [inline] mutex_lock_nested+0x2c/0x38 kernel/locking/mutex.c:787 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:11424 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:184 linkwatch_sync_dev+0x150/0x16c net/core/link_watch.c:272 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:2740 [inline] bond_mii_monitor+0x3d8/0x28b4 drivers/net/bonding/bond_main.c:2962 process_one_work+0x7a8/0x15cc kernel/workqueue.c:3236 process_scheduled_works kernel/workqueue.c:3317 [inline] worker_thread+0x97c/0xeec kernel/workqueue.c:3398 kthread+0x288/0x310 kernel/kthread.c:389 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:862 irq event stamp: 50378 hardirqs last enabled at (50377): [] __down_trylock_console_sem+0x6c/0xf8 kernel/printk/printk.c:327 hardirqs last disabled at (50378): [] console_emit_next_record kernel/printk/printk.c:3115 [inline] hardirqs last disabled at (50378): [] console_flush_all+0x5b4/0xb90 kernel/printk/printk.c:3210 softirqs last enabled at (50310): [] pneigh_ifdown_and_unlock net/core/neighbour.c:823 [inline] softirqs last enabled at (50310): [] __neigh_ifdown+0x198/0x390 net/core/neighbour.c:426 softirqs last disabled at (50308): [] __neigh_ifdown+0x48/0x390 net/core/neighbour.c:424 ---[ end trace 0000000000000000 ]---