Netdev List
 help / color / mirror / Atom feed
From: Oliver Neukum <oneukum@suse.com>
To: petkan@nucleusys.com, netdev@vger.kernel.org
Subject: [RFT 0/2] net: usb: rtl8150: cleaning up races with ceasing IO
Date: Wed, 25 Nov 2026 15:43:06 +0100	[thread overview]
Message-ID: <20261125145313.58434-1-oneukum@suse.com> (raw)

The driver has the fundamental issue that it uses a tasklet that
reschedules itself and resubmits an URB, which in case of an error
can schedule the tasklet and so on.
This cycle cannot be broken by adding primitives for cancelling
tasklets and URBs but it also takes a flag preventing rescheduling
or resubmission of tasklet and URB.

It turns out that this is quite complex because the issue hits in
close(), suspend() and disconnect(). The required changes became
so complex that I decided that this needs to be broken up in series
of patches and needs testing.

V3: Added patches for close() and suspend() which Sashiko noted
to be absent
V2: V2: Sashiko pointed out errors which conceptually arose from handling
close() and disconnect() in the same way. Treating disconnect()
separatly makes them go away


             reply	other threads:[~2026-11-25 14:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25 14:43 Oliver Neukum [this message]
2026-11-25 14:43 ` [RFT 1/3] net: usb: rtl8150: break cycle between tasklet and URB Oliver Neukum
2026-11-25 14:43 ` [RFT 2/3] net: usb: rtl8150: fix race in open() error handling Oliver Neukum
2026-11-25 14:43 ` [RFT 3/3] net: usb: rtl8150: cease all IO upon close Oliver Neukum
2026-11-25 14:59 ` [RFT 0/2] net: usb: rtl8150: cleaning up races with ceasing IO netdev-bot+sinfo

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=20261125145313.58434-1-oneukum@suse.com \
    --to=oneukum@suse.com \
    --cc=netdev@vger.kernel.org \
    --cc=petkan@nucleusys.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox