~registry/kmod/master

  • Committer: Lucas De Marchi
  • Author(s): Emil Velikov
  • Date: 2024-04-30 17:33:52 UTC
  • Revision ID: git-v1:0c127388070b8d696bb52c783985d4d10f74a5bc
libkmod: always detect the module compression

Currently, when built w/o given compression we'll incorrectly report a
"compression_none".

As we reach do_finit_module(), we'll naively assume that the kernel can
handle the compressed module, yet omit the MODULE_INIT_COMPRESSED_FILE
flag.

As result the kernel will barf at us, do_finit_module will fail with non
-ENOSYS and we won't end in the do_init_module codepath (which will also
fail).

In other words: with this change, you can build kmod without zstd, xz
and zlib support and the kernel will load the modules, assuming it
supports the format \o/

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
Filename Latest Rev Last Changed Committer Comment Size
..
docs 409 12 years ago Lucas De Marchi doc: add gtk-doc to generate documentation Curren Diff
.gitignore 2 12 years ago Lucas De Marchi Rename libabc to libkmod 45 bytes Diff Download File
COPYING 182 12 years ago Lucas De Marchi Change licenses libkmod is under LGPL 2.1 or late 25.8 KB Diff Download File
libkmod-builtin.c 1293 1 year ago Lucas De Marchi libkmod: annotate kmod_builtin_iter API as static 6.2 KB Diff Download File
libkmod-config.c 1229 3 years ago Lucas De Marchi libkmod-config: fix a memory leak when kmod_list_a 29.2 KB Diff Download File
libkmod-elf.c 1301 1 year ago Lucas De Marchi libkmod: Do not inititialize file->memory on open 27.9 KB Diff Download File
libkmod-file.c 1336 5 months ago Lucas De Marchi libkmod: always detect the module compression Cur 10.6 KB Diff Download File
libkmod-index.c 1195 4 years ago Lucas De Marchi libkmod: fix return error when opening index When 23 KB Diff Download File
libkmod-index.h 1195 4 years ago Lucas De Marchi libkmod: fix return error when opening index When 1.7 KB Diff Download File
libkmod-internal.h 1334 5 months ago Lucas De Marchi libkmod: propagate {zstd,xz,zlib}_load errors Pro 10.3 KB Diff Download File
libkmod-list.c 961 9 years ago Lucas De Marchi Remove FSF mailing address It has changed in the 6.8 KB Diff Download File
libkmod-module.c 1335 5 months ago Lucas De Marchi libkmod: move kmod_file_load_contents as applicabl 72.4 KB Diff Download File
libkmod-signature.c 1313 11 months ago Lucas De Marchi libkmod: remove pkcs7 obj_to_hash_algo() Switch t 8.3 KB Diff Download File
libkmod.c 1314 10 months ago Lucas De Marchi libkmod, depmod, modprobe: Make directory for kern 23.8 KB Diff Download File
libkmod.h 1263 2 years ago Lucas De Marchi libkmod: Allow to ignore log message on module rem 9.4 KB Diff Download File
libkmod.pc.in 1198 4 years ago Lucas De Marchi add Zstandard compression support I changed the s 270 bytes Diff Download File
libkmod.sym 1248 2 years ago Lucas De Marchi libkmod: Add lookup from module name Slightly dif 2 KB Diff Download File
Makefile 863 10 years ago Lucas De Marchi build-sys: add small redirecting Makefiles These 332 bytes Diff Download File
README 813 11 years ago Lucas De Marchi README: Move items from TODO Put the differences 1.2 KB Diff Download File