Re: [PATCH net] team: call RCU read lock when walking the port_list

2019-10-08 Thread Jakub Kicinski
On Tue, 8 Oct 2019 16:13:59 +0200, Jiri Pirko wrote: > Tue, Oct 08, 2019 at 03:56:14PM CEST, liuhang...@gmail.com wrote: > >Before reading the team port list, we need to acquire the RCU read lock. > >Also change list_for_each_entry() to list_for_each_entry_rcu(). > > > >Fixes: 9ed68ca0d90b ("team:

Re: [PATCH net] team: call RCU read lock when walking the port_list

2019-10-08 Thread Jiri Pirko
Tue, Oct 08, 2019 at 03:56:14PM CEST, liuhang...@gmail.com wrote: >Before reading the team port list, we need to acquire the RCU read lock. >Also change list_for_each_entry() to list_for_each_entry_rcu(). > >Fixes: 9ed68ca0d90b ("team: add ethtool get_link_ksettings") >Reported-by: Paolo Abeni >Si

[PATCH net] team: call RCU read lock when walking the port_list

2019-10-08 Thread Hangbin Liu
Before reading the team port list, we need to acquire the RCU read lock. Also change list_for_each_entry() to list_for_each_entry_rcu(). Fixes: 9ed68ca0d90b ("team: add ethtool get_link_ksettings") Reported-by: Paolo Abeni Signed-off-by: Hangbin Liu Acked-by: Paolo Abeni --- drivers/net/team/t