Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 916132 - sys-apps/kmod-31 cannot load XZ compressed modules
Summary: sys-apps/kmod-31 cannot load XZ compressed modules
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal critical (vote)
Assignee: Gentoo's Team for Core System packages
URL: https://lore.kernel.org/all/df84e672-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-22 16:29 UTC by Victor Mataré
Modified: 2023-12-28 06:22 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Victor Mataré 2023-10-22 16:29:42 UTC
Apparently kmod-31 does not really work with kernels that set MODULE_COMPRESS_XZ:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1050582

According to the debian bug they switched to the in-kernel XZ implementation with v31, but the in-kernel XZ implementation has some severe limitations that make it unable to deal with larger modules.

From what I've read so far, other module compression algos should be fine, but haven't tested it, yet.
Comment 1 Victor Mataré 2023-10-22 16:31:04 UTC
Added a kernel lore link that mentions a kernel patch which should remedy the situation.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-10-22 16:32:30 UTC
Not disputing the bug at all, I just wanted to note that I use MODULE_COMPRESS_XZ on two machines and nothing exploded there, which is curious.

Thanks for the report - someone had made a reference to kmod-31 not working but didn't give any more detail and I couldn't figure out what was going on there.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-10-28 00:27:42 UTC
mpagano put https://gitweb.gentoo.org/proj/linux-patches.git/commit/?h=6.5&id=51bcb2538941016f4ebd47dcc0c878f26a105a0c into genpatches so we should be good now.
Comment 4 Ionen Wolkens gentoo-dev 2023-12-28 06:22:01 UTC
ftr, got fixed anyway but see there was problems reproducing the issue here and, while looking at similar bug #920837 I couldn't either. It turned out need to set CONFIG_MODULE_DECOMPRESS=y.

It's also not a default ("if unsure, say N"), nor is it set for gentoo-kernel I can see, and kmod-31 NEWS mentions it needs kernel >=6.4 to work. So it should only have affected a few people in ~arch that manually enabled it.

Wasn't clear to me at first given I didn't know the option existed (thought only needed XZ decompression support), so thought I'd note it here.