All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Mahdi Yari" <m.yary16@gmail.com>
Cc: linux-usb@vger.kernel.org
Subject: Re: [PATCH net] usbnet: don't lose rx mode updates that arrive during set_rx_mode()
Date: Wed, 02 Dec 2026 06:11:15 +0000	[thread overview]
Message-ID: <sashiko-outbox-244936@kernel.org> (raw)
In-Reply-To: <20261202060513.660741-1-m.yary16@gmail.com>

> usbnet_deferred_kevent() tests EVENT_SET_RX_MODE, calls the
> minidriver's set_rx_mode() and only then clears the bit. set_rx_mode()
> may sleep in a control transfer. If the rx mode changes meanwhile,
> usbnet_set_rx_mode() sets the bit and requeues the kevent, but the
> trailing clear_bit() wipes that request, so the rerun finds the bit
> clear and the new filter is never sent.
> 
> This was observed on a machine in real use: an OpenWrt router whose LAN
> port, an ASIX AX88179A (0b95:1790) on cdc_ncm, is bridged with a WiFi
> AP. After boot or a USB replug, WiFi clients could not reach hosts
> behind the USB port. The bridge enables allmulti and promisc while the
> first SET_ETHERNET_PACKET_FILTER is in flight, and usbmon shows that
> request as the only one, without promisc:
> 
>   S Co:1:009:0 s 21 43 000e 0000 0000 0
> [ ... ]
> allmodconfig and allyesconfig without new warnings.
> 
> Fixes: 1efed2d06c70 ("usbnet: add a callback for set_rx_mode")
> Cc: stable@vger.kernel.org
> Signed-off-by: Mahdi Yari <m.yary16@gmail.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261202060513.660741-1-m.yary16@gmail.com?part=1

      reply	other threads:[~2026-12-02  6:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02  6:05 [PATCH net] usbnet: don't lose rx mode updates that arrive during set_rx_mode() Mahdi Yari
2026-12-02  6:11 ` sashiko-bot [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=sashiko-outbox-244936@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=m.yary16@gmail.com \
    --cc=sashiko-reviews@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.