======================================================
WARNING: possible circular locking dependency detected
syzkaller #0 Tainted: G             L     
------------------------------------------------------
kworker/u8:1/24180 is trying to acquire lock:
ffff888103ad1fd0 (&net->xdp.lock){+.+.}-{4:4}, at: xsk_notifier+0x89/0x230

but task is already holding lock:
ffff88810433c8c0 (&port->pnodes_lock){+.+.}-{4:4}, at: ipvlan_device_event+0x489/0xfb0

which lock already depends on the new lock.


the existing dependency chain (in reverse order) is:

-> #3 (&port->pnodes_lock){+.+.}-{4:4}:
       __mutex_lock+0x19d/0x1550
       ipvlan_device_event+0x489/0xfb0
       notifier_call_chain+0x1a5/0x3d0
       netif_set_mtu_ext+0x442/0x830
       netif_set_mtu+0xd7/0x1b0
       dev_set_mtu+0x105/0x210
       dev_ioctl+0x7b4/0x1150
       sock_do_ioctl+0x23e/0x320
       sock_ioctl+0x57a/0x7e0
       __se_sys_ioctl+0xfc/0x170
       do_syscall_64+0x166/0x520
       entry_SYSCALL_64_after_hwframe+0x77/0x7f

-> #2 (&dev_instance_lock_key#3){+.+.}-{4:4}:
       __mutex_lock+0x19d/0x1550
       xsk_bind+0x331/0x1380
       __sys_bind+0x2e3/0x410
       __x64_sys_bind+0x7a/0x90
       do_syscall_64+0x166/0x520
       entry_SYSCALL_64_after_hwframe+0x77/0x7f

-> #1 (&xs->mutex){+.+.}-{4:4}:
       __mutex_lock+0x19d/0x1550
       xsk_notifier+0xcd/0x230
       notifier_call_chain+0x1a5/0x3d0
       unregister_netdevice_many_notify+0x17f9/0x2140
       rtnl_dellink+0x5be/0x810
       rtnetlink_rcv_msg+0x802/0xc00
       netlink_rcv_skb+0x226/0x4a0
       netlink_unicast+0x7bd/0x940
       netlink_sendmsg+0x813/0xb40
       sock_sendmsg_nosec+0x13a/0x180
       ____sys_sendmsg+0x54e/0x850
       ___sys_sendmsg+0x2a5/0x360
       __x64_sys_sendmsg+0x1b1/0x290
       do_syscall_64+0x166/0x520
       entry_SYSCALL_64_after_hwframe+0x77/0x7f

-> #0 (&net->xdp.lock){+.+.}-{4:4}:
       __lock_acquire+0x15ff/0x2e50
       lock_acquire+0x115/0x350
       __mutex_lock+0x19d/0x1550
       xsk_notifier+0x89/0x230
       notifier_call_chain+0x1a5/0x3d0
       unregister_netdevice_many_notify+0x17f9/0x2140
       ipvlan_device_event+0xf1f/0xfb0
       notifier_call_chain+0x1a5/0x3d0
       unregister_netdevice_many_notify+0x17f9/0x2140
       unregister_netdevice_queue+0x2f5/0x340
       _cfg80211_unregister_wdev+0x156/0x5a0
       ieee80211_remove_interfaces+0x49c/0x6a0
       ieee80211_unregister_hw+0x5d/0x2c0
       mac80211_hwsim_del_radio+0x28a/0x4a0
       hwsim_exit_net+0xe91/0xf50
       ops_undo_list+0x43d/0x8d0
       cleanup_net+0x572/0x810
       process_scheduled_works+0xc3d/0x1630
       worker_thread+0xa47/0xfb0
       kthread+0x38b/0x480
       ret_from_fork+0x514/0xb70
       ret_from_fork_asm+0x1a/0x30

other info that might help us debug this:

Chain exists of:
  &net->xdp.lock --> &dev_instance_lock_key#3 --> &port->pnodes_lock

 Possible unsafe locking scenario:

       CPU0                    CPU1
       ----                    ----
  lock(&port->pnodes_lock);
                               lock(&dev_instance_lock_key#3);
                               lock(&port->pnodes_lock);
  lock(&net->xdp.lock);

 *** DEADLOCK ***

locks held by kworker/u8:1/24180: 6, last CPU#1:
 #0: ffff8881012d5940 ((wq_completion)netns){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #1: ffffc9000661fc40 (net_cleanup_work){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #2: ffffffff90242548 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0xf5/0x810
 #3: ffffffff90250dc0 (rtnl_mutex){+.+.}-{4:4}, at: ieee80211_unregister_hw+0x55/0x2c0
 #4: ffff8881bc1107a0 (&rdev->wiphy.mtx){+.+.}-{4:4}, at: ieee80211_remove_interfaces+0x132/0x6a0
 #5: ffff88810433c8c0 (&port->pnodes_lock){+.+.}-{4:4}, at: ipvlan_device_event+0x489/0xfb0

stack backtrace:
CPU: 1 UID: 0 PID: 24180 Comm: kworker/u8:1 Tainted: G             L      syzkaller #0 PREEMPT(full) 
Tainted: [L]=SOFTLOCKUP
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Workqueue: netns cleanup_net
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150
 print_circular_bug+0x2e2/0x300
 check_noncircular+0x12f/0x150
 __lock_acquire+0x15ff/0x2e50
 lock_acquire+0x115/0x350
 __mutex_lock+0x19d/0x1550
 xsk_notifier+0x89/0x230
 notifier_call_chain+0x1a5/0x3d0
 unregister_netdevice_many_notify+0x17f9/0x2140
 ipvlan_device_event+0xf1f/0xfb0
 notifier_call_chain+0x1a5/0x3d0
 unregister_netdevice_many_notify+0x17f9/0x2140
 unregister_netdevice_queue+0x2f5/0x340
 _cfg80211_unregister_wdev+0x156/0x5a0
 ieee80211_remove_interfaces+0x49c/0x6a0
 ieee80211_unregister_hw+0x5d/0x2c0
 mac80211_hwsim_del_radio+0x28a/0x4a0
 hwsim_exit_net+0xe91/0xf50
 ops_undo_list+0x43d/0x8d0
 cleanup_net+0x572/0x810
 process_scheduled_works+0xc3d/0x1630
 worker_thread+0xa47/0xfb0
 kthread+0x38b/0x480
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30
 </TASK>
batman_adv: batadv0: Removing interface: ipvlan3
hsr_slave_0: left promiscuous mode
hsr_slave_1: left promiscuous mode
IPVS: stop unused estimator thread 0...
