Re: [PATCH net] team: fix possible recursive locking when add slaves

2019-04-19 Thread Jiri Pirko
Wed, Apr 17, 2019 at 02:12:11PM CEST, liuhang...@gmail.com wrote: >If we add a bond device which is already the master of the team interface, >we will hold the team->lock in team_add_slave() first and then request the >lock in team_set_mac_address() again. The functions are called like: > >- team_a

Re: [PATCH net] team: fix possible recursive locking when add slaves

2019-04-18 Thread David Miller
From: Hangbin Liu Date: Wed, 17 Apr 2019 20:12:11 +0800 > If we add a bond device which is already the master of the team interface, > we will hold the team->lock in team_add_slave() first and then request the > lock in team_set_mac_address() again. The functions are called like: > > - team_add_

[PATCH net] team: fix possible recursive locking when add slaves

2019-04-17 Thread Hangbin Liu
If we add a bond device which is already the master of the team interface, we will hold the team->lock in team_add_slave() first and then request the lock in team_set_mac_address() again. The functions are called like: - team_add_slave() - team_port_add() - team_port_enter() - team_modeop