fix(dra): load xz-compressed usbip kernel modules#2647
Merged
Conversation
615e270 to
4b8070c
Compare
4b8070c to
d7e1748
Compare
yaroslavborbat
requested changes
Jul 13, 2026
d7e1748 to
a635902
Compare
Pre-installed usbip modules may ship compressed as .ko.xz or .ko.gz depending on the host distribution, not only .ko or .ko.zst. Resolve all kernel-supported compression suffixes (zstd, xz, gzip) in the module path fallback and decompress accordingly before finit_module. Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com>
a635902 to
2b19636
Compare
yaroslavborbat
approved these changes
Jul 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
On nodes where the pre-installed usbip kernel modules are shipped compressed, the DRA USB driver failed to initialize with
module ...usbip-core.ko.zst not found, so USB passthrough was unavailable on those nodes. Kernel modules can be compressed with any of the three formats the kernel supports (zstd, xz, gzip), but only.koand.ko.zstwere recognized. The driver now finds and decompresses.ko.xzand.ko.gztoo, and the node-configuration check that installs the modules recognizes the same set of formats.Why do we need it, and what problem does it solve?
Some distributions (e.g. the observed node shipped
.ko.xz) compress kernel modules with xz or gzip instead of zstd. USB passthrough silently stayed broken on such nodes because the driver only knew about zstd. This makes module loading work regardless of the host's chosen compression format.What is the expected result?
On a node whose usbip modules are
.ko.xz(or.ko.gz), the DRA USB driver init loads the modules successfully and USB passthrough works, instead of failing withmodule not found.Checklist
Changelog entries