Skip to content

Commit fbf5892

Browse files
tweek-dkmasahir0y
authored andcommitted
kbuild: Use CRC32 and a 1MiB dictionary for XZ compressed modules
Kmod is now (since kmod commit 09c9f8c5df04 ("libkmod: Use kernel decompression when available")) using the kernel decompressor, when loading compressed modules. However, the kernel XZ decompressor is XZ Embedded, which doesn't handle CRC64 and dictionaries larger than 1MiB. Use CRC32 and 1MiB dictionary when XZ compressing and installing kernel modules. Link: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1050582 Signed-off-by: Martin Nybo Andersen <tweek@tweek.dk> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
1 parent 6465e26 commit fbf5892

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/Makefile.modinst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ endif
144144
quiet_cmd_gzip = GZIP $@
145145
cmd_gzip = $(KGZIP) -n -f $<
146146
quiet_cmd_xz = XZ $@
147-
cmd_xz = $(XZ) --lzma2=dict=2MiB -f $<
147+
cmd_xz = $(XZ) --check=crc32 --lzma2=dict=1MiB -f $<
148148
quiet_cmd_zstd = ZSTD $@
149149
cmd_zstd = $(ZSTD) -T0 --rm -f -q $<
150150

0 commit comments

Comments
 (0)