CDC_WDM: fix hangs and error reporting in multithreaded cases
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest7 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | CDC-WDM: fix hangs in flush() in multithreaded casesdrivers/ | +7 | 0 replies | |
| 2/7 | CDC-WDM: introduce a timeout in flush()drivers/ | +9 | 0 replies | |
| 3/7 | CDC-WDM: remove use of intf->dev after potential disconnectdrivers/ | +5 | 0 replies | |
| 4/7 | CDC-WDM: fix race reporting errors in flushdrivers/ | +3 | 0 replies | |
| 5/7 | CDC-WDM: correct error reporting in write()drivers/ | +3 | 0 replies | |
| 6/7 | CDC-WDM: implement fsyncdrivers/ | +28 | 0 replies | |
| 7/7 | CDC-WDM: making flush() interruptibledrivers/ | +3 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/7]CDC_WDM: fix hangs and error reporting in multithreaded cases
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 <[email protected]>