[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250515075626.43fbd0e0@kernel.org>
Date: Thu, 15 May 2025 07:56:26 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Stanislav Fomichev <stfomichev@...il.com>
Cc: netdev@...r.kernel.org, davem@...emloft.net, edumazet@...gle.com,
pabeni@...hat.com, jiri@...nulli.us, andrew+netdev@...n.ch,
sdf@...ichev.me, linux-kernel@...r.kernel.org,
syzbot+53485086a41dbb43270a@...kaller.appspotmail.com
Subject: Re: [PATCH net] team: grab team lock during team_change_rx_flags
On Wed, 14 May 2025 15:03:19 -0700 Stanislav Fomichev wrote:
> --- a/drivers/net/team/team_core.c
> +++ b/drivers/net/team/team_core.c
> @@ -1778,8 +1778,8 @@ static void team_change_rx_flags(struct net_device *dev, int change)
> struct team_port *port;
> int inc;
>
> - rcu_read_lock();
> - list_for_each_entry_rcu(port, &team->port_list, list) {
> + mutex_lock(&team->lock);
> + list_for_each_entry(port, &team->port_list, list) {
I'm not sure if change_rx_flags is allowed to sleep.
Could you try to test it on a bond with a child without IFF_UNICAST_FLT,
add an extra unicast address to the bond and remove it?
That should flip promisc on and off IIUC.
Powered by blists - more mailing lists