lp:kmod
- Get this branch:
- bzr branch lp:kmod
Branch information
Import details
This branch is an import of the HEAD branch of the Git repository at git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git.
Last successful import was .
Recent revisions
- 1283. By Gustavo Sousa <email address hidden>
-
modprobe: Allow passing path to module
This is useful to kernel module developers for testing a just compiled
module: instead of using insmod, they can load the module from the path
while getting all the benefits of modprobe (e.g. module dependency
resolution).v2:
- Add test for relative path as well. (Lucas)
- Add note warning about modules with dependencies not matching the
installed depmod database. (Lucas)Signed-off-by: Gustavo Sousa <email address hidden>
Cc: Lucas De Marchi <email address hidden>
Signed-off-by: Lucas De Marchi <email address hidden> - 1282. By Gustavo Sousa <email address hidden>
-
modprobe: Move insertion block into separate function
That same logic will be used for enabling modprobe for paths in the next
patch. As such, prepare for that by extracting that block into its own
function.Signed-off-by: Gustavo Sousa <email address hidden>
Signed-off-by: Lucas De Marchi <email address hidden> - 1281. By Gustavo Sousa <email address hidden>
-
testsuite: Wrap chdir()
One of the tests in an upcoming patch will need to change into a
specific directory to test loading a module from a relative path.Signed-off-by: Gustavo Sousa <email address hidden>
Signed-off-by: Lucas De Marchi <email address hidden> - 1280. By Florian Weimer
-
kmod: configure.ac: In _Noreturn check, include <stdlib.h> for exit
Otherwise, an implicit functiona declaration is used, causing
a C99 compatibility issue.Signed-off-by: Florian Weimer <email address hidden>
Signed-off-by: Lucas De Marchi <email address hidden> - 1279. By Adam Golebiowski
-
autogen.sh: remove --with-rootprefix, it is gone since kmod-11
Signed-off-by: Adam Gołębiowski <email address hidden>
- 1278. By Mikhail Novosyolov <email address hidden>
-
libkmod: do not crash on unknown signature algorithm
Example kernel module:
https://file-store. rosalinux. ru/download/ 7281f97e0c04c0f 818ad3f936706f4 a407e8dc7e
(/lib/modules/5.15.67- generic- 1rosa2021. 1-x86_64/ kernel/ drivers/ usb/host/ xhci-pci. ko.zst)
It is signed with Streebog 512.libkmod v30 crashed in libkmod-
module. c:2413 in this code: n = kmod_module_
info_append( list,
"sig_hashalgo", strlen("sig_hashalgo" ),
sig_info.hash_algo, strlen( sig_info. hash_algo) ); because strlen() got null.
- 1277. By Julien Cristau
-
testsuite: fix override of `stat` on 32-bit architectures
When _FILE_OFFSET_BITS is 64, glibc headers turn `stat` calls into
`stat64`, and our `stat` override into a `stat64` function. However,
because we use dlsym to get the address of libc's `stat`, we end up
calling into the "real" `stat` function, which deals with 32-bit off_t,
and we treat its result as if it were returned from stat64. On most
architectures this seems to have been harmless, but on 32-bit mips,
st_mode's offset in struct stat and struct stat64 are different, so we
read garbage.To fix this, explicitly unset _FILE_OFFSET_BITS in path.c, to turn off
the redirect magic in glibc headers, and override both the 32-bit and
64-bit functions so each call ends up wrapping the right libc function.Fixes #16 (https:/
/github. com/kmod- project/ kmod/issues/ 16) - 1276. By Patrick Quentin Armitage
-
modprobe: Write error messages to syslog if stderr is unavailable
The man page modprobe(8) states for the --syslog option:
"This is also automatically enabled when stderr is unavailable."
but it wasn't happening.This commit now makes modprobe write to syslog if stderr is closed.
- 1275. By Dimitri John Ledkov
-
build: enable building & running tests from a subdir
During dpkg build, in a subdir, it is currently not possible to run
tests. Building testsuite/modules due to non-existance of the
testsuite directory under the build dir. Thus create it, when it is
not there.Signed-off-by: Dimitri John Ledkov <email address hidden>
- 1274. By Jan Engelhardt
-
testsuite: repair read of uninitialized memory
Function ``test_
backoff_ time`` does not initialize ``delta``, and
``get_backoff_delta_msec` ` then performs a read from uninitialized
memory with the ``!*delta`` expression.Signed-off-by: Jan Engelhardt <email address hidden>
Signed-off-by: Lucas De Marchi <email address hidden>
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)