Debian Codegraph @

NEWS

raw
1 kmod 34
2 =======
3
4 - Improvements
5
6 - Drop pre-built .ko modules from git - distros/packages will need the
7 linux-headers to be able to run the testsuite. There was limited use
8 of the feature, while linters complained about "source-not-included"
9 or "source-contains-prebuilt-binary".
10
11 - Switch build system to meson: autotools is still supported but slated
12 for removal on next release. This is the transition release to help
13 distros and integrators to move to the new build system. Default options
14 target distros while developers can use the build-dev.ini configuration
15 file.
16
17 - Allow to load decompression libraries on demand: liblzma.so, libz.so
18 and libzstd.so can now be loaded on demand, only when there is
19 such a need. For use during early boot for loading modules, if
20 configured well it means none of these libraries are loaded: the
21 module loading logic via finit_module() will just hand over to kernel
22 the open file descriptor and kernel will use its own decompress routine.
23
24 If kernel doesn't handle decompression or if the module is compressed
25 with a different algorithm than the one configured in the kernel,
26 libkmod can still open the module by dynamically loading the
27 correspondent library.
28
29 Tools inspecting the module contents, like modinfo, will load that
30 single decompression library instead all of them.
31
32 For distros building with meson it's possible to choose the behavior
33 per library. Examples: a) -Ddlopen=all uses dlopen behavior for all
34 the libraries; b) -Ddlopen=xz, will make only xz to be dlopen'ed
35 while other enabled libraries will be linked in at build time.
36
37 The use of dlopen is annotated in the ELF file by using the ELF
38 Package Metadata spec as documented in
39 https://systemd.io/ELF_PACKAGE_METADATA/. Example:
40
41 $ dlopen-notes.py libkmod.so
42 # build/libkmod.so
43 [
44 {
45 "feature": "xz",
46 "description": "Support for uncompressing xz-compressed modules",
47 "priority": "recommended",
48 "soname": [
49 "liblzma.so.5"
50 ]
51 }
52 ]
53
54 - Add -m / --moduledir to depmod to override in runtime the module
55 directory that was already possible to set on build time. Document
56 the interaction between the dir options: base, module and output.
57
58 - Better error propagation in libkmod for its internal APIs and libc
59 functions up to the callers.
60
61 - Improve libkmod API documentation by adding new sections, documenting
62 functions previously missing, rewording existing ones, adding version
63 information, cross-referencing, etc.
64
65 - Remove deprecated arguments for depmod: --unresolved-error, --quiet,
66 --root and --map.
67
68 - Remove deprecated arguments for rmmod: -w.
69
70 - Remove deprecated arguments for insmod: -p and -s.
71
72 - Add --syslog and --force for insmod to normalize it with other tools.
73
74 - Add bash, fish and zsh shell-completion for insmod, rmmod and lsmod.
75
76 - Remove depmod_module_directory_override from .pc as the kernel side
77 is not making use of it and will likely not need it.
78
79 - Improve builtin module listing and retrieving information from its
80 modinfo index which reduces the amount of needed syscalls by 90%.
81
82 - Improve zstd decompression by using streaming bufferless mode which
83 reduces the amount of syscalls by 65%.
84
85 - Increase use of pread while parsing ELF and indexes in order to reduce
86 syscalls and improve performance.
87
88 - Improve module sorting in depmod to speedup the use of the
89 modules.order index and support duplicate lines in it.
90
91 - Avoid misaligned memory access while reading module signature in
92 libkmod.
93
94 - Add more documentation for contributing to kmod. New developers are
95 welcome to look at the new README.md and CONTRIBUTING.md files for
96 information on process, coding style, build/installation, etc.
97
98 - Overhaul man pages with multiple clarifications, section rewrites and
99 additional documentation.
100
101 - Drop --with-rootlibdir as it's seldom used and was partially broken.
102
103 - Drop strndupa() and alloca() for increased libc compatibility.
104
105 - Better handling of LFS for increased compatibility with libc.
106
107 - Protect kmod_get_dirname() and kmod_new() against NULL argument.
108
109 - Normalize --version / --help output across all tools.
110
111 - Always include log priority in messages, even when building with debug.
112
113 - Optimize index reading by lazily reading nodes on demand, reducing
114 FILE overhead and reducing code duplication wrt FILE vs mmap
115 implementations, etc.
116
117 - Switch index to pre-order to improve performance in both read and
118 write, meaning faster lookup and faster depmod. Some examples:
119 a) traversing all indexes via configuration dump shows a 9%
120 improvement on Raspberry Pi 2. b) writing the indexes takes 90% less
121 lseek() calls, leading to a performance gain of 13%.
122
123 - Make symlink install locations more similar to what distros are
124 using: by default it installs the kmod binary as bin/kmod and the
125 symlinks are located in e.g. `sbin/depmod -> ../bin/kmod`. Changing
126 the sbin location is sufficient to move the symlinks to the
127 appropriate place, so distros using `--sbin /usr/bin` will have them
128 installed in that directory. This avoids distros having to remove the
129 symlink and add the symlinks by themselves. (meson only)
130
131 - Install configuration directories,
132 /{etc,usr/lib}/{depmod,modprobe}.d/ as part of installation, matching
133 what several distros do during packaging. (meson only)
134
135 - Bug fixes
136
137 - Fix testsuite using when using configurable module dir.
138
139 - Fix typos on documentation and source code.
140
141 - Fix out of bound access in multiple places when using long paths,
142 synthetic huge files, or handling memory allocation errors, or
143 inconsistent variable types, particularly on 32b builds.
144
145 - Fix internal array APIs, with better error checking: improve execution on
146 very memory-constrained scenarios or very long paths.
147
148 - Fix absolute path handling in depmod.
149
150 - Fix libkmod memory leaks on error handling when getting builtin
151 module list.
152
153 - Do not crash on invalid modules.builtin.modinfo file.
154
155 - Fix link with lld resulting in empty testsuite.
156
157 - Fix testsuite build/execution with musl.
158
159 - Others
160
161 - Adopt clang-format and editorconfig for coding style and setup CI
162 action to keep the codebase consistent.
163
164 - Adopt codespell in CI.
165
166 - Adopt CodeQL integration in CI.
167
168 - Adopt Codecov in CI.
169
170 - Adopt SPDX copyright and license identifiers throughout the project.
171
172 - Add more distros to CI, 32b builds, clang as compiler and lld as
173 linker.
174
175 - Add support for clang sanitizers and squelch warnings.
176
177 - Add tests for builtin modules from modinfo index file.
178
179 - Multiple testsuite refactors and fixes to make it simpler to write tests.
180
181 - Add CI coverage for docs
182
183 - Improve strbuf implementation with more error checks and generalize
184 it to cover the role of scratchbuf. This allows to remove the
185 scratchbuf implementation.
186
187 - Use common array and strbuf code in depmod to remove duplication.
188
189 - Add abstraction and use more compiler builtins for addition and
190 multiplication with overflow checking.
191
192 - Normalize use of C attributes throughout the project.
193
194 kmod 33
195 =======
196
197 - Improvements
198
199 - Allow to handle compressed modules even without decompression
200 libraries linked in. Previously we would detect if the kernel
201 supported the decompression algorithm and pass the module directly
202 through finit_module(). However it wouldn't consider the file if
203 the respective decompression library was compiled out. Now it's
204 possible to completely disable all libraries and still have module
205 load working with libkmod.
206
207 Tools that inspect module content themselves like modinfo and depmod
208 won't work if the decompression library is not enabled.
209
210 - Add weak dependencies - these are similar to pre softdep, but they
211 don't cause the dependency to be loaded by libkmod: when a module has
212 a weak dependency, it is expected that module may or may not be used,
213 with decision happening in runtime by the kernel. It's purpose is to
214 be informational for other tools like ones used to create initramfs,
215 so the module is made available before switch_root(), but doesn't
216 imply it to be loaded when not needed.
217
218 - Improve compatibility with non-gnu libc like musl and uClibc. Now it's
219 possible to build and use libkmod and tools without any additional compat
220 patches.
221
222 - Move manpages from xsltproc to scdoc, which is now needed during build.
223
224 - Improve documentation in manpages, fixing typos, rewording sentences,
225 detailing how configuration files are handled with precedence order
226 and making all the manpages more consistent on how to reference options,
227 environment variables, configuration, authors, etc.
228
229 - Speed up zstd decompression, particularly when not using glibc.
230
231 - Stop parsing .alias files from modprobe.d directories. Configuration files
232 were always documented as needing the .conf extension. For compatibility
233 reason with module-init-tools, kmod also parsed .alias files. However that
234 was also done in module-init-tools for compatibility reasons and not
235 documented anywhere. From inspection on what distros are using, none use
236 .alias files in practice, so stop parsing those files and follow what's
237 documented.
238
239 - Adopt SPDX for license and cleanup comments on individual files.
240
241 - Since kmod 29 there's a github mirror for the repository. Now it's
242 also used for issues and improvement tracking. With that, the old
243 TODO file has been removed and distros/users are encouraged to file
244 issues in github.
245
246 - Bug fixes
247
248 - Move kmod.pc to the right dir, ${datadir}/pkgconfig, as it's related
249 to kmod, not libkmod.
250
251 - Fix error handling while loading a file and mmap fails.
252
253 - Fix error handling while handling errors from the decompression
254 libraries.
255
256 - Add missing documentation for KMOD_INDEX_MODULES_BUILTIN that was
257 added in v27 breaking the ABI. A wide search has found one external
258 tool using it, which hasn't been updated in the past 12 years. It
259 was deemed safe to simply update the documentation to include the
260 missing enum.
261
262 - Move kmod_module_new_from_name_lookup() to the correct symbol
263 version. It was added by mistake to @LIBKMOD_5 when v30 got released.
264 No external user of this API was found, so it was considered safe
265 to just move it.
266
267 - Others
268
269 - Overwrite symlinks when installing tools.
270
271 - General cleanup of how (de)compression libraries are integrated.
272
273 - Add CI infrastructure to automatically test in several distros
274 before applying commit series. Currently the latest versions of
275 Alpine, Archlinux, Fedora and Ubuntu are covered. More distros are
276 easy to add as they are all containerized.
277
278 kmod 32
279 =======
280
281 - Improvements
282
283 - Use any hash algo known by kernel/openssl instead of keep needing
284 to update the mapping
285
286 - Teach kmod to load modprobe.d/depmod.d configuration from ${prefix}/lib
287 and allow it to be overridden during build with --with-distconfdir=DIR
288
289 - Make kernel modules directory configurable. This allows distro to
290 make kmod use only files from /usr regardless of having a compat
291 symlink in place.
292
293 - Install kmod.pc containing the features selected at build time.
294
295 - Install all tools and symlinks by default. Previously kmod relied on
296 distro packaging to set up the symlinks in place like modprobe,
297 depmod, lsmod, etc. Now those symlinks are created by kmod itself
298 and they are always placed in $bindir.
299
300 - Bug Fixes
301
302 - Fix warnings due to -Walloc-size
303
304 - Others
305
306 - Drop python bindings. Those were not update in ages and not compatible
307 with latest python releases.
308
309 - Cleanup test infra, dropping what was not used anymore
310
311 - Drop experimental tools `kmod insert` / `kmod remove`. Building those
312 was protected by a configure option never set by distros. They also
313 didn't gain enough traction to replace the older interfaces via
314 modprobe/insmod/rmmod.
315
316 kmod 31
317 =======
318
319 - Improvements
320
321 - Allow passing a path to modprobe so the module is loaded from
322 anywhere from the filesystem, but still handling the module
323 dependencies recorded in the indexes. This is mostly intended for kernel
324 developers to speedup testing their kernel modules without having to load the
325 dependencies manually or override the module in /usr/lib/modules/.
326 Now it's possible to do:
327
328 # modprobe ./drivers/gpu/drm/i915/i915.ko
329
330 As long as the dependencies didn't change, this should do the right thing
331
332 - Use in-kernel decompression if available. This will check the runtime support
333 in the kernel for decompressing modules and use it through finit_module().
334 Previously kmod would fallback to the older init_module() when using
335 compressed modules since there wasn't a way to instruct the kernel to
336 uncompress it on load or check if the kernel supported it or not.
337 This requires a recent kernel (>= 6.4) to have that support and
338 in-kernel decompression properly working in the kernel.
339
340 - Make modprobe fallback to syslog when stderr is not available, as was
341 documented in the man page, but not implemented
342
343 - Better explaining `modprobe -r` and how it differentiates from rmmod
344
345 - depmod learned a `-o <dir>` option to allow using a separate output
346 directory. With this, it's possible to split the output files from
347 the ones used as input from the kernel build system
348
349 - Add compat with glibc >= 2.32.9000 that dropped __xstat
350
351 - Improve testsuite to stop skipping tests when sysconfdir is something
352 other than /etc
353
354 - Build system improvements and updates
355
356 - Change a few return codes from -ENOENT to -ENODATA to avoid confusing output
357 in depmod when the module itself lacks a particular ELF section due to e.g.
358 CONFIG_MODVERSIONS=n in the kernel.
359
360
361 - Bug Fixes
362
363 - Fix testsuite using uninitialized memory when testing module removal
364 with --wait
365
366 - Fix testsuite not correctly overriding the stat syscall on 32-bit
367 platforms. For most architectures this was harmless, but for MIPS it
368 was causing some tests to fail.
369
370 - Fix handling unknown signature algorithm
371
372 - Fix linking with a static liblzma, libzstd or zlib
373
374 - Fix memory leak when removing module holders
375
376 - Fix out-of-bounds access when using very long paths as argument to rmmod
377
378 - Fix warnings reported by UBSan
379
380 kmod 30
381 =======
382
383 - Improvements
384 - Stop adding duplicate information on modules.builtin.alias.bin, just use
385 the modules.builtin.bin index
386
387 - Speedup depmod, particularly under qemu with emulated arch, by
388 avoiding a lot of open/read/close of modules.alias.bin. On an
389 emulated ARM rootfs, depmod with only 2 modules was taking ~32s
390 vs ~0.07s now.
391
392 - Add kmod_module_new_from_name_lookup() which allows doing a lookup by
393 module name, without considering the aliases. Other than that search
394 order is similar to kmod_module_new_from_lookup().
395
396 - modinfo learned the --modname option to explicitly show information
397 about the module, even if there is an alias with the same name. This
398 allows showing information about e.g. kernel/lib/crc32.ko, even if
399 kernel also exports a crc32 alias in modules.alias:
400
401 alias crc32 crc32_pclmul
402 alias crc32 crc32_generic
403
404 Same behavior will be used to other modules and to aliases provided
405 by user/distro.
406
407 - depmod.conf learned a new "excludedir" directive so distro/user can
408 configure more directories to be excluded from its search, besides
409 the hardcoded values "build" and "source".
410
411 - Better group modprobe options on help output under "Management, Query and General".
412
413 - modprobe learned a --wait <MSEC> option to be used together with -r
414 when removing a module. This allows modprobe to keep trying the
415 removal if it fails because the module is still in use. An exponential backoff
416 time is used for further retries.
417
418 The wait behavior provided by the kernel when not passing O_NONBLOCK
419 to delete_module() was removed in v3.13 due to not be used and the
420 consequences of having to support it in the kernel. However there may
421 be some users, particularly on testsuites for individual subsystems, that
422 would want that. So provide a userspace implementation inside modprobe for
423 such users. "rmmod" doesn't have a --wait as it remains a bare minimal over
424 the API provided by the kernel. In future the --wait behavior can be added
425 to libkmod for testsuites not exec'ing modprobe for module removal.
426
427 - kmod_module_remove_module() learned a new flag to silence output when
428 caller wants to handle them - this is particularly important for the
429 --wait flag to modprobe, as it's not desired to keep seeing error messages
430 while waiting for the module to be unused.
431
432 - Add SM3 hash algo support to modinfo output, as already available in the kernel.
433
434 - Bug Fixes
435 - Fix modinfo output when showing information for a .ko module when running
436 on a kernel that has that module as builtin.
437
438 - Fix kmod_module_new_from_lookup() returning > 0 rather than 0
439 when it matches an alias.
440
441 - Fix modinfo segfault when module doesn't exist.
442
443 - Add missing function in the html documentation: kmod_get_dirname().
444
445 - Fix modprobe incorrectly handling number of arguments when prepending values from
446 MODPROBE_OPTIONS environment variable.
447
448 - Fix modprobe -r --remove-dependencies and since "dependencies" was a
449 misnomer, add the preferred argument option: "--remove-holders". This
450 is the same name used by the kernel. It allows users to also remove
451 other modules holding the one that is being removed.
452
453 - Fix off-by-one in max module name length in depmod.
454
455 - Infra/internal
456 - Start some changes in the out-of-tree test modules in kmod so they are useful
457 for being really inserted in the kernel rather than relying on kmod's mock
458 interface. This helps manual testing and may be used to exercise to test
459 changes in the kernel.
460
461 kmod 29
462 =======
463
464 - Improvements
465 - Add support to use /usr/local as a place for configuration files. This makes it easier
466 to install locally without overriding distro files.
467
468 - Bug fixes
469 - Fix `modinfo -F` when module is builtin: when we asked by a specific field from modinfo,
470 it was not working correctly if the module was builtin
471
472 - Documentation fixes on precedence order of /etc and /run: the correct order is
473 /etc/modprobe.d, /run/modprobe.d, /lib/modprobe.d
474
475 - Fix the priority order that we use for searching configuration files. The
476 correct one is /etc, /run, /usr/local/lib, /lib, for both modprobe.d
477 and depmo.d
478
479 - Fix kernel command line parsing when there are quotes present. Grub
480 mangles the command line and changes it from 'module.option="val with
481 spaces"' to '"module.option=val with spaces"'. Although this is weird
482 behavior and grub could have been fixed, the kernel understands it
483 correctly for builtin modules. So change libkmod to also parse it
484 correctly. This also brings another hidden behavior from the kernel:
485 newline in the kernel command line is also allowed and can be used to
486 separate options.
487
488 - Fix a memory leak, overflow and double free on error path
489
490 - Fix documentation for return value from kmod_module_get_info(): we
491 return the number of entries we added to the list
492
493 - Fix output of modules.builtin.alias.bin index: we were writing an empty file due to
494 the misuse of kmod_module_get_info()
495
496 - Infra/internal
497 - Retire integration with semaphoreci
498
499 - Declare the github mirror also as an official upstream source: now besides accepting
500 patches via mailing list, PRs on github are also acceptable
501
502 - Misc improvements to testsuite, so we can use it reliably regardless
503 of the configuration used: now tests will skip if we don't have the
504 build dependencies)
505
506 kmod 28
507 =======
508
509 - Improvements
510 - Add Zstandard to the supported compression formats using libzstd
511 (pass --with-zstd to configure)
512
513 - Bug fixes
514 - Ignore ill-formed kernel command line, e.g. with "ivrs_acpihid[00:14.5]=AMD0020:0"
515 option in it
516 - Fix some memory leaks
517 - Fix 0-length builtin.alias.bin: it needs at least the index header
518
519 kmod 27
520 =======
521
522 - Improvements
523 - Link to libcrypto rather than requiring openssl
524
525 - Print a better error message when kernel doesn't support module unload
526
527 - Use PKCS#7 instead of CMS for parsing module signature to be
528 compatible with LibreSSL and OpenSSL < 1.1.0
529
530 - Teach modinfo to parse modules.builtin.modinfo. When using Linux kernel
531 >= v5.2-rc1 it's possible to get module information from this new file. Now
532 modinfo is able to show it instead of an error message that the module is
533 built-in:
534
535 Before:
536 $ modinfo ext4
537 modinfo: ERROR: Module ext4 not found.
538
539 After:
540 $ modinfo ext4
541 name: ext4
542 filename: (builtin)
543 softdep: pre: crc32c
544 license: GPL
545 description: Fourth Extended Filesystem
546 author: Remy Card, Stephen Tweedie, Andrew Morton, Andreas Dilger, Theodore Ts'o and others
547 alias: fs-ext4
548 alias: ext3
549 alias: fs-ext3
550 alias: ext2
551 alias: fs-ext2
552
553 - Bug fixes
554 - Do not link python bindings with libpython to be compatible with
555 python3.8
556
557 - Fix module removal with `modprobe -r` when a dependency is built-in.
558 Now it properly ignores them and proceed with removal of other
559 dependencies
560
561 - Fix propagation of return code from install/remove commands to the
562 the probe function. The return values of kmod_module_probe_insert_module()
563 have very specific meanings, do not confuse the caller by return codes
564 from system()
565
566 - Fix softdep config parsing leading to buffer overflow
567
568 kmod 26
569 =======
570
571 - Improvements
572 - Add more error-checking in library functions and remove warnings on newer
573 toolchains
574
575 - Depmod now handles parallel invoctions better by protecting the temporary
576 files being used
577
578 - Improvements to testsuite and added tests to check the our behavior
579 regardless of the features enabled in the kernel, or libraries we link to
580
581 - Teach the --show-exports option to modprobe. This works similarly to
582 --show-modversions, but it reports the exported symbols from that module.
583 Under the hood this reads the .symtab and .strtab section rather than
584 __versions so it shows useful data even if kernel is configured without
585 modversions (CONFIG_MODVERSIONS)
586
587 - Teach pkcs7 parsing to modinfo by using openssl. This allows modinfo to
588 correctly parse the signature appended to a module by the kernel build
589 system when configured with CONFIG_MODULE_SIG_ALL, or when externally
590 signed by the distro. Traditionally modules were signed and a struct
591 was appended together with the signature to the end of the module.
592 This has changed on the kernel for pkcs#7 and now the structure isn't
593 filled out with useful information. So we have to parse the signature
594 block in order to return useful data to the user.
595
596 If kmod is linked with openssl we parse the signature and return the
597 fields as we do for other signatures. An example of the relevant part
598 on the output of modinfo is below:
599
600 Before:
601 sig_id: PKCS#7
602 signer:
603 sig_key:
604 sig_hashalgo: md4
605 After:
606 sig_id: PKCS#7
607 signer: Fedora kernel signing key
608 sig_key: 51:C4:0C:6D:7E:A5:6C:D8:8F:B4:3A:DF:91:78:4F:18:BC:D5:E4:C5
609 sig_hashalgo: sha256
610
611 If kmod is not linked to openssl we just start printing "unknown" in the
612 sig_hashalgo field rather than the bogus value.
613
614
615 kmod 25
616 =======
617
618 - Improvements
619 - Add module signature to modinfo output
620
621 - Add support for external directories in depmod: now there's a new
622 "external" keyword parsed by depmod when calculating the dependencies.
623 It allows to add modules to other directories which are not relative
624 to where the modules are commonly installed. This results in
625 modules.dep and friends now understanding absolute paths rather than
626 relative paths only. For more information see depmod.d(1).
627
628 - Add support for CONFIG_MODULE_REL_CRCS
629
630 - Add missing documentation references in man pages
631
632 - Handle the case in which module has a .TOC symbol already while
633 calculating dependencies
634
635 - Improve testsuite and allow to use mkosi to run testsuite in different
636 distros
637
638 kmod 24
639 =======
640
641 - Improvements:
642 - Add more information on dependency loop
643
644 - Sanitize use of strcpy and allow to grow from small strings on stack
645 (common case) to bigger strings on heap when needed
646
647 - Bug fixes
648 - Fix wrong dependency loops being reported by depmod
649
650 - Fix crashes when reporting dependency loops
651
652 - Fix parsing kernel command line containing quotes
653
654 - Fix leaks on error paths
655
656 kmod 23
657 =======
658
659 - Improvements:
660 - Don't add comment to modules.devname if it would otherwise be empty
661 to play nice with tools detecting empty files
662
663 - Allow building with BSD sed, that doesn't have -E flag
664
665 - Ignore .TOC. symbols in depmod parsing as it's for PPC64 the
666 equivalent of _GLOBAL_OFFSET_TABLE_
667
668 - Teach modinfo about PKCS#7 module signatures: it doesn't add any
669 other info besides telling the user the module is signed since
670 kernel doesn't add other info on the module section
671
672 - Bug fixes
673
674 - Fix -s and -p compat options to insmod triggering force flag
675
676 - Fix long lines from /proc/modules not being handled correctly by
677 kmod_module_new_from_loaded() and kmod_module_get_size() and several
678 other library functions that use them
679
680 - Fix crash on modinfo while checking for available signature of
681 unknown type
682
683 - Fix documentation generation with gtk-doc
684
685 kmod 22
686 =======
687
688 - Tools:
689 - Change default log level for tools to WARNING rather than ERROR and update
690 some log levels for current messages
691
692 - depmod doesn't fallback to uname if a bad version is passed in the command
693 line anymore. We just exit with an error.
694
695 - insmod was taught the -f flag, just like in modprobe. It was previously
696 silently ignoring it.
697
698 - libkmod
699 - New kmod_get_dirname() API to get the module directory set in the
700 context
701
702 - Bug fixes:
703 - Fix return code in error path of kmod_module_insert_module(). We were
704 previously returning ENOSYS rather than ENOENT.
705
706 kmod 21
707 =======
708
709 - New features:
710 - kmod tool started to learn the "insert" and "remove" commands that
711 are the simplified versions of the older modprobe tool. These
712 commands are still work in progress so they are hidden behind a
713 --enable-experimental flag during build. It should not be enabled
714 unless you know what you're doing.
715 - kmod tool now prints the relevant configuration options it was built
716 with when the "--version" argument is passed. This helps to mitigate
717 problems for example when the user is trying to load a compressed
718 module but kmod was built without support for the compression method.
719
720 - Improvements to testsuite:
721 - Cache built modules so it is easier to run "make check" on build
722 servers by distro maintainers. If kmod is configured with
723 --disable-test-modules the modules from cache will be used by
724 "make check". No changes to the tests are needed and all of them
725 can run fine.
726
727 kmod 20
728 =======
729 - Bug fixes:
730 - Handle bogus values from ELF, making sure they don't overflow while
731 parsing the file
732 - Fix leak in depmod when -b flag is passed multiple times
733 - Multiple minor fixes from static analysis by coverity and
734 clang-analyze
735 - Fix race between loading modules and checking if it's loaded in the
736 kernel
737
738 - New features:
739 - There's a change in behavior regarding builtin modules: we now only
740 consider as builtin those that are present in modules.builtin index.
741 Previously we were also checking the presence of
742 /sys/module/<module-name>, but this is racy and only modules that
743 contain parameters are the ones creating a directory in sysfs.
744
745 Now some commands will start to fail, e.g. "modprobe vt". Since vt
746 can't be compiled as a module it's not present in modules.builtin
747 index. Previously we would report at as builtin, but now we fail
748 because we couldn't find the module.
749
750 - Improvements:
751 - Integration of gcov into the build. Currently libkmod is at ~70%
752 covered and tools at ~50% by tests in the testsuite. Utility
753 functions and structures in shared have more than 90% of coverage.
754 - Upload build to coverity
755
756 - Improvements to testsuite:
757 - Fix parsing return codes of init_module() calls
758 - Add tests for utility functions in shared/
759 - Add tests for kmod_module_remove_module()
760 - Add playground, in which our own modules are compiled
761 - Port all tests to use modules from module-playground instead of
762 copying prebuilt modules to the repository
763 - Properly handle binaries that exit with no output
764 - Besides comparing the output of commands, allow to copy to
765 stdout/stderr
766
767 kmod 19
768 =======
769
770 - Bug fixes:
771 - Fix missing CLOEXEC in library
772 - Fix error message while opening kmod's index
773
774 - New features:
775 - Add kmod(8) man page
776 - Allow to build with libc's without be32toh()
777 - Move code around separating common code and data structures into a
778 shared directory. This allows to share more code between library and
779 tools, making the binary size of tools smaller.
780 - Clarify tools vs library licenses
781 - static-nodes: when writing in tmpfiles format, indicate that
782 creation of static nodes should only happen at boot. This is used and
783 required by systemd-217+.
784
785 - Improvements to testsuite:
786 - Add tests for newly created shared/ code
787 - Improve how tests are declared so there's less boilerplate code for
788 each test.
789
790 kmod 18
791 =======
792
793 - Bug fixes:
794 - Fix leaks in error paths
795 - Fix use-after-free in hash implementation causing a wrong index to be
796 generated by depmod with out-of-tree modules
797
798 - New features:
799 - Calling depmod with modules creating a dependency loop will now make
800 depmod return an error and not update the indexes. This is to protect
801 the current index not being overridden by another index that may cause
802 a boot failure, depending on the buggy module. It's a necessary
803 change in behavior regarding previous kmod releases and
804 module-init-tools. The error message was also improved to output
805 the modules that caused the dependency cycle.
806
807 - Improvements to testsuite:
808 - Fix and improve expected-fail test
809 - Add tests for hashmap implementation
810
811 kmod 17
812 =======
813
814 - Bug fixes:
815 - Fix matching a "." in kernel cmdline, making garbage in the command
816 line be parsed as kmod options
817 - Fix man pages to clarify we don't fallback to parsing modules.dep
818 but instead we depend on modules.dep.bin (generated by depmod) to
819 be present
820 - Fix ELF parsing on 32 bit systems assigning the wrong class.
821 - Fix partial matches of search directives in depmod. Previously having
822 a line in depmod.conf such as "search foo foobar built-in" would cause
823 unpretictable results because foo is a partial match of foobar as well.
824 - Fix unaligned access in modinfo when getting the signature from a
825 module
826 - Make sure softdeps are treated as optional dependencies
827
828 - New features:
829 - Accept special files given to "-C" switch in modprobe. This way it's
830 possible to skip system configuration with "modprobe -C /dev/null"
831 - Do not require xsltproc on released tarballs
832 - Don't use Werror anymore
833 - Add experimental python bindings, merged from python-kmod repository
834 (https://github.com/agrover/python-kmod)
835 - Parse softdeps exported by the kernel as
836 /lib/modules/`uname -r`/modules.softdep
837
838 - Improvements to testsuite:
839 - Check the list of loaded modules after a test
840
841 kmod 16
842 =======
843
844 - Bug fixes:
845 - Fix usage of readdir_r()
846 - Add some missing checks for memory allocation errors
847
848 - New features:
849 - Remove option from libkmod to allow waiting on module removal if
850 the module is being used. It's dangerous since it can block the
851 caller indefinitely.
852 - Improve compatibility with musl libc
853 - Add fallback implementation for compilers without _Static_assert(),
854 e.g. gcc < 4.6
855 - Minor optimizations to the hash table
856 - Make depmod warn if a module has incorrect devname specification
857 - Use cleanup attribute
858
859 kmod 15
860 =======
861
862 - Bug fixes:
863 - kmod static-nodes doesn't fail if modules.devname isn't available
864 - Fix getting boolean parameter from kernel cmdline in case the value
865 is omitted
866 - Fix some mkdir_p() corner cases (used in testsuite and static-nodes)
867
868 - New features:
869 - kmod static-nodes creates parent directories if given a -o option
870 - kmod binary statically links to libkmod - if distro is only interested
871 in the kmod tool (for example in an initrd) it can refrain from
872 installing the library
873 - Add shell completion for kmod tool
874
875 kmod 14
876 =======
877
878 - Bug fixes:
879 - Fix some format strings
880 - Protect against NULL being passed around to index
881 - Avoid calling syscall() with -1 when finit_module() is not available,
882 since this doesn't always work
883 - Fix not being able to remove alias due to checking the module's
884 refcount
885 - Minor fixes and refactors
886
887 - New features:
888 - Improve libkmod documentation, particularly on how flags are dealt
889 with.
890 - Remove ability to build a static libkmod
891 - Add static-nodes command to kmod that parses modules.devname
892 generating output in useful formats
893
894 kmod 13
895 =======
896
897 - Bug fixes:
898 - Add the long option --symbol-prefix option to depmod (it was absent)
899 and fix its behavior
900 - Don't abort if there's a bogus line in configuration file like "alias
901 psmouse off". Some distros are carrying this since the days of
902 modutils
903
904 - New features:
905 - Add support for finit_module(2). If the module is load straight from
906 the disk and without compression we use finit_module() syscall when
907 available, falling back to init_module() otherwise
908 - kmod_module_get_info() also returns the signature if the module is
909 signed and modinfo uses it
910 - Use secure_getenv if available
911 - rmmod understands builtin modules, just like modprobe does
912 - Improve compatibility with musl-libc
913 - Test cases exit with success when receiving a signal if they are
914 xfail tests
915
916 kmod 12
917 =======
918
919 - Bug fixes:
920 - Fix removing vermagic from module when told to force load a module
921 - Fix removing __versions section when told to force load a module: we
922 need to mangle the section header, not the section.
923 - modinfo no longer fails while loading a module from file when path
924 contains ".ko" substring
925
926 kmod 11
927 =======
928
929 - Improvements to testsuite:
930 - Fix testsuite defining symbols twice on 32 bit systems
931 - Allow to check generated files against correct ones
932
933 - New features:
934 - libkmod now keeps a file opened after the first call to
935 kmod_module_get_{info,versions,symbols,dependency_symbols}. This
936 reduces significantly the amount of time depmod tool takes to
937 execute. Particularly if compressed modules are used.
938 - Remove --with-rootprefix from build system. It was not a great idea
939 after all and should not be use since it causes more harm then
940 benefits.
941 - Hide --wait option on rmmod. This feature is being targeted for
942 removal from kernel. rmmod still accepts this option, but it's hidden
943 now: man page and usage() say nothing about it and if it's used,
944 user will get a 10s sleep. This way we can check and help if anyone
945 is using this feature.
946 - Refactor message logging on all tools, giving proper prefix, routing
947 everything to syslog when asked for, etc.
948
949 - Bug fixes:
950 - Fix parsing of modules.order when using compressed modules
951 - Usage messages go to stdout instead of stderr
952 - Fix memory leak in hash implementation
953
954 kmod 10
955 =======
956
957 - New features:
958 - Read coresize from /sys if supported
959
960 - Add flag to kmod_module_probe_insert() to apply blacklisting during
961 probe only if mod is an alias. Now modprobe uses this flag by default.
962 This is needed to fix a change in behavior regarding module-init-tools
963 and ultimately makes us loading a blacklisted module.
964
965 - Better formatting in man pages
966
967 - Add option to disable building man pages at build time
968
969 - Fixes in the testsuite and refactoring of LDPRELOAD'ed libraries
970
971 - Re-licensing testsuite as LGPL
972
973 kmod 9
974 ======
975
976 - Improvements to the testsuite:
977 - Check for correct handling of softdep loops
978 - Check for correct handling of install command loops
979
980 - Bug fixes:
981 - Fix build with compilers that don't support --gc-sections
982 - Handle errors when dealing with gzipped modules
983 - depmod now handles errors while writing indices, so it doesn't end up
984 with a corrupted index without telling the user
985
986 kmod 8
987 ======
988
989 - No new features, small bug fixes only.
990 - Fix a bug in "modprobe -c" output: be compatible with
991 module-init-tools
992
993 - Give a useful error message when init_module fails due to bad
994 parameter or unknown symbols
995
996 - Fix doc generation
997
998 kmod 7
999 ======
1000
1001 - Re-order dirs for configuration files to match the change in systemd and
1002 udev: now the priority is:
1003 1. /etc/modprobe.d
1004 2. /run/modprobe.d
1005 3. /lib/modprobe.d
1006
1007 - Fix setting CFLAGS/LDFLAGS in build system. This prevented us from not
1008 allowing the user to set his preferences.
1009
1010 - Bug fixes:
1011 - Return same error codes of module-init-tools when removing modules
1012 with modprobe
1013 - Fix builtin output in "--show-depends" when target kernel is not the
1014 same of the running kernel
1015 - 'modprobe -r' always look at all command line arguments
1016 - Fix '-q' usage in modprobe
1017
1018 kmod 6
1019 ======
1020
1021 - New API in libkmod:
1022 - kmod_module_apply_filter(): a generic function to apply filters in a
1023 list of modules. This deprecates the use of
1024 kmod_module_get_filtered_blacklist()
1025
1026 - More tests in testsuite
1027
1028 - Add compatibility with uClibc again
1029
1030 - Lookup modules.builtin.bin to decide if a module is built in kernel
1031
1032 - Downgrade some log messages so we don't annoy people with useless messages
1033
1034 - Bug fixes:
1035 - Flag --ignore-loaded was not being properly handled
1036 - Infinite loop with softdeps
1037 - Infinite loop with dumb user configuration with install commands
1038 - Fix leak in index when there's a partial match
1039
1040 - Move repository and tarballs to kernel.org
1041
1042 kmod 5
1043 ======
1044
1045 - Break libkmod's API to insert a module like modprobe does. It now accepts
1046 extra an extra argument to print its action and acceptable flags were
1047 sanitized.
1048
1049 - Share more code between modprobe and libkmod: using the new version of
1050 kmod_module_probe_insert_module() it's possible to share a great amount of
1051 code between modprobe and libkmod
1052
1053 - modprobe no longer works with paths: it only accepts module names and/or
1054 aliases now.
1055
1056 - testsuite was added to repository, allowing automated tests to be run and
1057 easing the way bugs are reproduced.
1058
1059 - modprobe: when dumping configuration ('-c' option) separate config
1060 and indexes by adding a commented line between them.
1061
1062 - Fix bugs wrt normalizing aliases and module names
1063
1064 - Fix bug wrt inserting an alias that resolves to multiple modules: we should
1065 not stop on the first error, but rather continue to try loading other
1066 modules.
1067
1068 - Fix unaligned memory access in hash function, causing depmod to output wrong
1069 information in ARMv5
1070
1071 - Fix man page build and install: now they are only installed if tools are
1072 enabled
1073
1074 kmod 4
1075 ======
1076
1077 - New APIs in libkmod to:
1078 - Get configuration lists: blacklists, install commands, remove
1079 commands, aliases, options and softdeps
1080 - Dump indexes
1081
1082 - Several bugs fixed in libkmod, modprobe, depmod and modinfo
1083
1084 - API documentation: if configure with run with --enable-gtk-doc, the API doc
1085 will be generated by make. Gtk-doc is required for that.
1086
1087 - Man pages are built, which replace man pages from module-init-tools
1088
1089 - 'include' and 'config' options in *.conf files were deprecated
1090
1091 - configure is not run by autogen.sh. Instead, a common set of options is
1092 printed. If you are hacking on kmod, consider using bootstrap-configure
1093 script.
1094
1095 - 'modprobe -c' works as expected now. As opposed to module-init-tools, it
1096 dumps the parsed configuration, not only the file contents.
1097
1098 kmod 3
1099 ======
1100
1101 - New APIs in libkmod to:
1102 - Get symbols from module, parsing the ELF section
1103 - Get dependency symbols
1104 - Check if resources are still valid or if libkmod must be reloaded
1105 - Insert module like modprobe, checking (soft-)dependencies, commands,
1106 blacklist. It can run commands by itself and to call a callback
1107 function.
1108
1109 - Support to load modules compressed with xz
1110
1111 - Tools are now bundled together in a single tool called kmod. It can be
1112 called using symlinks with the same names as tools from module-init-tools.
1113 E.g: /usr/bin/lsmod -> /usr/bin/kmod. With this we are aiming to complete a
1114 1:1 replacement of module-init-tools.
1115
1116 - The only missing tool, depmod, was added to kmod together with the necessary
1117 APIs in libkmod.
1118
1119 - If a program using libkmod runs for a long time, as for example udev, it must
1120 check if it doesn't have to re-load libkmod. A new helper function was added
1121 in libkmod to check if context is still valid and udev is already using it.
1122
1123 - An 'unaligned access' bug was fixed. So those architecture that does not
1124 handle unaligned access can use kmod, too.
1125
1126 kmod 2
1127 ======
1128
1129 Some bugs fixed: the worst of them was with an infinite loop when an alias
1130 matched more than one module.
1131
1132 - New APIs in libkmod to:
1133 - Get soft dependencies
1134 - Get info from module files parsing ELF
1135 - Get modversions from files parsing ELF
1136
1137 - Support to load gzipped kernel modules: kmod can be compiled with support to
1138 gzipped modules by giving the --enable-zlib flag
1139
1140 - Support to forcefully load modules, both vermagic and modversion
1141
1142 - Support to force and nowait removal flags
1143
1144 - Configuration files are parsed in the same order as modprobe: files are
1145 sorted alphabetically (independently of their dir) and files with the same
1146 name obey a precedence order
1147
1148 - New tool: kmod-modinfo
1149
1150 - kmod-modprobe gained several features to be a 1:1 replacement for modprobe.
1151 The only missing things are the options '--showconfig' and '-t / -l'. These
1152 last ones have been deprecated long ago and they will be removed from
1153 modprobe. A lot of effort has been put on kmod-modprobe to ensure it
1154 maintains compatibility with modprobe.
1155
1156 - [email protected] became the official mailing list for kmod
1157
1158 kmod 1
1159 ======
1160
1161 First version of kmod and its library, libkmod.
1162
1163 In the libkmod it's currently possible to:
1164 - List modules currently loaded
1165 - Get information about loaded modules such as initstate, refcount,
1166 holders, sections, address and size
1167 - Lookup modules by alias, module name or path
1168 - Insert modules: options from configuration and extra options can be
1169 passed, but flags are not implemented, yet
1170 - Remove modules
1171 - Filter list of modules using blacklist
1172 - For each module, get the its list of options and install/remove
1173 commands
1174 - Indexes can be loaded on startup to speedup lookups later
1175
1176 Tools provided with the same set of options as in module-init-tools:
1177 - kmod-lsmod
1178 - kmod-insmod
1179 - kmod-rmmod
1180 - kmod-modprobe, with some functionality still missing (use of softdep,
1181 dump configuration, show modversions)