linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/7]CDC_WDM: fix hangs and error reporting in multithreaded cases
@ 2020-09-23  9:21 Oliver Neukum
  2020-09-23  9:21 ` [PATCH 1/7] CDC-WDM: fix hangs in flush() " Oliver Neukum
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Oliver Neukum @ 2020-09-23  9:21 UTC (permalink / raw)
  To: penguin-kernel, bjorn, linux-usb, gregKH; +Cc: Oliver Neukum

Testing has shown

1. race conditions in the multithreaded use case
2. a vulnerability against malicious hardware
3. a minor race against disconnect() in flush()

in the CDC-WDM driver. All have a common cause in the interactions
of the flush() method with other parts of the driver. Hence they
require a common rework of the flush() method.

Long and exhaustive discussion and testing of these changes,
however, revealed that they in turn introduce problems
with error reporting and long periods of uninterruptible sleep.
Those require further changes to flush() and the implementation
of fsync().

The issue dates back to the introduction of the driver so the fixes
also should go into stable.

Signed-off-by: Oliver Neukum <oneukum@suse.com>


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-09-23  9:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-23  9:21 [PATCH 0/7]CDC_WDM: fix hangs and error reporting in multithreaded cases Oliver Neukum
2020-09-23  9:21 ` [PATCH 1/7] CDC-WDM: fix hangs in flush() " Oliver Neukum
2020-09-23  9:21 ` [PATCH 2/7] CDC-WDM: introduce a timeout in flush() Oliver Neukum
2020-09-23  9:21 ` [PATCH 3/7] CDC-WDM: remove use of intf->dev after potential disconnect Oliver Neukum
2020-09-23  9:21 ` [PATCH 4/7] CDC-WDM: fix race reporting errors in flush Oliver Neukum
2020-09-23  9:21 ` [PATCH 5/7] CDC-WDM: correct error reporting in write() Oliver Neukum
2020-09-23  9:21 ` [PATCH 6/7] CDC-WDM: implement fsync Oliver Neukum
2020-09-23  9:21 ` [PATCH 7/7] CDC-WDM: making flush() interruptible Oliver Neukum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).