Re: [PATCH net] team: Forbid enslaving team device to itself

2018-10-04 Thread David Miller
From: Ido Schimmel Date: Mon, 1 Oct 2018 12:21:59 +0300 > team's ndo_add_slave() acquires 'team->lock' and later tries to open the > newly enslaved device via dev_open(). This emits a 'NETDEV_UP' event > that causes the VLAN driver to add VLAN 0 on the team device. team's > ndo_vlan_rx_add_vid()

[PATCH net] team: Forbid enslaving team device to itself

2018-10-01 Thread Ido Schimmel
team's ndo_add_slave() acquires 'team->lock' and later tries to open the newly enslaved device via dev_open(). This emits a 'NETDEV_UP' event that causes the VLAN driver to add VLAN 0 on the team device. team's ndo_vlan_rx_add_vid() will also try to acquire 'team->lock' and deadlock. Fix this by c