mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: team_change_rx flags sleeping with bh disabled
       [not found] <CALkFLLJ3Vwsb+idOxXrM4mPXOwjf9JwyV1Jg+tFqFhzx3-+v7g@mail.gmail.com>
@ 2025-07-27 17:36 ` syzbot
  0 siblings, 0 replies; only message in thread
From: syzbot @ 2025-07-27 17:36 UTC (permalink / raw)
  To: ujwal.kundur; +Cc: ujwal.kundur, linux-kernel, syzkaller-bugs

> #syz test

This crash does not have a reproducer. I cannot test it.

>
> diff --git a/drivers/net/team/team_core.c b/drivers/net/team/team_core.c
> index 8bc56186b2a3..4568075fea6e 100644
> --- a/drivers/net/team/team_core.c
> +++ b/drivers/net/team/team_core.c
> @@ -1778,7 +1778,7 @@ static void team_change_rx_flags(struct
> net_device *dev, int change)
>         struct team_port *port;
>         int inc;
>
> -       mutex_lock(&team->lock);
> +       spin_lock(&team->lock);
>         list_for_each_entry(port, &team->port_list, list) {
>                 if (change & IFF_PROMISC) {
>                         inc = dev->flags & IFF_PROMISC ? 1 : -1;
> @@ -1789,7 +1789,7 @@ static void team_change_rx_flags(struct
> net_device *dev, int change)
>                         dev_set_allmulti(port->dev, inc);
>                 }
>         }
> -       mutex_unlock(&team->lock);
> +       spin_unlock(&team->lock);
>  }
>
>  static void team_set_rx_mode(struct net_device *dev)
> -- 
> 2.30.2

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-07-27 17:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CALkFLLJ3Vwsb+idOxXrM4mPXOwjf9JwyV1Jg+tFqFhzx3-+v7g@mail.gmail.com>
2025-07-27 17:36 ` team_change_rx flags sleeping with bh disabled syzbot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®