======================================================
WARNING: possible circular locking dependency detected
syzkaller #0 Not tainted
------------------------------------------------------
syz.0.975/9556 is trying to acquire lock:
ffff8881bc5cce70 (&dev_instance_lock_key#23){+.+.}-{4:4}, at: xsk_bind+0x331/0x1290

but task is already holding lock:
ffff888113d356b0 (&xs->mutex){+.+.}-{4:4}, at: xsk_bind+0x14b/0x1290

which lock already depends on the new lock.


the existing dependency chain (in reverse order) is:

-> #3 (&xs->mutex){+.+.}-{4:4}:
       __mutex_lock+0x19d/0x1550
       xsk_notifier+0xcd/0x230
       notifier_call_chain+0x1a5/0x3d0
       unregister_netdevice_many_notify+0x17de/0x2150
       rtnl_newlink_create+0x664/0x7b0
       rtnl_newlink+0x166d/0x1c30
       rtnetlink_rcv_msg+0x802/0xc00
       netlink_rcv_skb+0x226/0x4a0
       netlink_unicast+0x7bb/0x940
       netlink_sendmsg+0x813/0xb40
       sock_sendmsg_nosec+0x13a/0x180
       ____sys_sendmsg+0x54e/0x850
       ___sys_sendmsg+0x2a5/0x360
       __sys_sendmmsg+0x273/0x4d0
       __x64_sys_sendmmsg+0xa0/0xc0
       do_syscall_64+0x174/0x580
       entry_SYSCALL_64_after_hwframe+0x77/0x7f

-> #2 (&net->xdp.lock){+.+.}-{4:4}:
       __mutex_lock+0x19d/0x1550
       xsk_notifier+0x89/0x230
       notifier_call_chain+0x1a5/0x3d0
       unregister_netdevice_many_notify+0x17de/0x2150
       ipvlan_device_event+0xdd4/0xe60
       notifier_call_chain+0x1a5/0x3d0
       unregister_netdevice_many_notify+0x17de/0x2150
       rtnl_dellink+0x5be/0x810
       rtnetlink_rcv_msg+0x802/0xc00
       netlink_rcv_skb+0x226/0x4a0
       netlink_unicast+0x7bb/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+0x174/0x580
       entry_SYSCALL_64_after_hwframe+0x77/0x7f

-> #1 (&port->pnodes_lock){+.+.}-{4:4}:
       __mutex_lock+0x19d/0x1550
       ipvlan_device_event+0x468/0xe60
       notifier_call_chain+0x1a5/0x3d0
       netdev_compute_master_upper_features+0x944/0xb30
       bond_netdev_event+0x7a3/0xf80
       notifier_call_chain+0x1a5/0x3d0
       __netdev_update_features+0xde7/0x1ef0
       netdev_compute_master_upper_features+0x90c/0xb30
       bond_enslave+0x2327/0x3b10
       do_set_master+0x563/0x720
       do_setlink+0xe7b/0x4670
       rtnl_newlink+0x15a3/0x1c30
       rtnetlink_rcv_msg+0x802/0xc00
       netlink_rcv_skb+0x226/0x4a0
       netlink_unicast+0x7bb/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+0x174/0x580
       entry_SYSCALL_64_after_hwframe+0x77/0x7f

-> #0 (&dev_instance_lock_key#23){+.+.}-{4:4}:
       __lock_acquire+0x1520/0x2cf0
       lock_acquire+0x106/0x350
       __mutex_lock+0x19d/0x1550
       xsk_bind+0x331/0x1290
       __sys_bind+0x2e3/0x410
       __x64_sys_bind+0x7a/0x90
       do_syscall_64+0x174/0x580
       entry_SYSCALL_64_after_hwframe+0x77/0x7f

other info that might help us debug this:

Chain exists of:
  &dev_instance_lock_key#23 --> &net->xdp.lock --> &xs->mutex

 Possible unsafe locking scenario:

       CPU0                    CPU1
       ----                    ----
  lock(&xs->mutex);
                               lock(&net->xdp.lock);
                               lock(&xs->mutex);
  lock(&dev_instance_lock_key#23);

 *** DEADLOCK ***

2 locks held by syz.0.975/9556:
 #0: ffffffff90025c00 (rtnl_mutex){+.+.}-{4:4}, at: xsk_bind+0x13a/0x1290
 #1: ffff888113d356b0 (&xs->mutex){+.+.}-{4:4}, at: xsk_bind+0x14b/0x1290

stack backtrace:
CPU: 0 UID: 0 PID: 9556 Comm: syz.0.975 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150
 print_circular_bug+0x2e1/0x300
 check_noncircular+0x12e/0x150
 __lock_acquire+0x1520/0x2cf0
 lock_acquire+0x106/0x350
 __mutex_lock+0x19d/0x1550
 xsk_bind+0x331/0x1290
 __sys_bind+0x2e3/0x410
 __x64_sys_bind+0x7a/0x90
 do_syscall_64+0x174/0x580
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fcee479e0d9
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fcee5645028 EFLAGS: 00000246 ORIG_RAX: 0000000000000031
RAX: ffffffffffffffda RBX: 00007fcee4a26090 RCX: 00007fcee479e0d9
RDX: 0000000000000010 RSI: 00002000000003c0 RDI: 0000000000000004
RBP: 00007fcee4835024 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fcee4a26128 R14: 00007fcee4a26090 R15: 00007fff941718e8
 </TASK>
