forked fromtorvalds/linux
- Notifications
You must be signed in to change notification settings - Fork0
Commitd640761
Revert "usbip: Implement a match function to fix usbip"
This commit reverts commit7a2f297 ("usbip: Implement a matchfunction to fix usbip").In summary, commitd5643d2 ("USB: Fix device driver race")inadvertently broke usbip functionality, which I resolved in an incorrectmanner by introducing a match function to usbip, usbip_match(), thatunconditionally returns true.However, the usbip_match function, as is, causes usbip to take overvirtual devices used by syzkaller for USB fuzzing, which is a regressionreported by Andrey Konovalov.Furthermore, in conjunction with the fix of another bug, handled by anotherpatch titled "usbcore/driver: Fix specific driver selection" in this patchset, the usbip_match function causes unexpected USB subsystem behaviourwhen the usbip_host driver is loaded. The unexpected behaviour can bequalified as follows:- If commit 41160802ab8e ("USB: Simplify USB ID table match") is included in the kernel, then all USB devices are bound to the usbip_host driver, which appears to the user as if all USB devices were disconnected.- If the same commit (41160802ab8e) is not in the kernel (as is the case with v5.8.10) then all USB devices are re-probed and re-bound to their original device drivers, which appears to the user as a disconnection and re-connection of USB devices.Please note that this commit will make usbip non-operational again,until yet another patch in this patch set is merged, titled"usbcore/driver: Accommodate usbip".Cc: <stable@vger.kernel.org> # 5.8: 41160802ab8e: USB: Simplify USB ID table matchCc: <stable@vger.kernel.org> # 5.8Cc: Bastien Nocera <hadess@hadess.net>Cc: Valentina Manea <valentina.manea.m@gmail.com>Cc: Shuah Khan <shuah@kernel.org>Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>Cc: Alan Stern <stern@rowland.harvard.edu>Cc: <syzkaller@googlegroups.com>Reported-by: Andrey Konovalov <andreyknvl@google.com>Tested-by: Andrey Konovalov <andreyknvl@google.com>Acked-by: Shuah Khan <skhan@linuxfoundation.org>Signed-off-by: M. Vefa Bicakci <m.v.b@runbox.com>Link:https://lore.kernel.org/r/20200922110703.720960-2-m.v.b@runbox.comSigned-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent2b40553 commitd640761
1 file changed
+0
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
461 | 461 | | |
462 | 462 | | |
463 | 463 | | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | 464 | | |
470 | 465 | | |
471 | 466 | | |
| |||
491 | 486 | | |
492 | 487 | | |
493 | 488 | | |
494 | | - | |
495 | 489 | | |
496 | 490 | | |
497 | 491 | | |
| |||
0 commit comments
Comments
(0)