lp:kmod

Created by Registry Administrators on 2012-07-04 and last modified on 2021-04-09
Get this branch:
bzr branch lp:kmod

Related bugs

Related blueprints

Branch information

Owner:
Registry Administrators
Project:
kmod
Status:
Development

Import details

Import Status: Reviewed

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.

The next import is scheduled to run in 2 hours.

Last successful import was 3 hours ago.

Import started 3 hours ago on alnitak and finished 3 hours ago taking 10 seconds — see the log
Import started 9 hours ago on alnitak and finished 9 hours ago taking 10 seconds — see the log
Import started 16 hours ago on izar and finished 16 hours ago taking 5 seconds — see the log
Import started 22 hours ago on izar and finished 22 hours ago taking 5 seconds — see the log
Import started on 2021-04-11 on alnitak and finished on 2021-04-11 taking 10 seconds — see the log
Import started on 2021-04-11 on alnitak and finished on 2021-04-11 taking 10 seconds — see the log
Import started on 2021-04-11 on alnitak and finished on 2021-04-11 taking 10 seconds — see the log
Import started on 2021-04-11 on izar and finished on 2021-04-11 taking 10 seconds — see the log
Import started on 2021-04-10 on alnitak and finished on 2021-04-10 taking 10 seconds — see the log
Import started on 2021-04-10 on izar and finished on 2021-04-10 taking 10 seconds — see the log

Recent revisions

1229. By Seung-Woo Kim <email address hidden> on 2021-04-09

libkmod-config: fix a memory leak when kmod_list_append() fails

From kmod_config_new(), when kmod_list_append() fails,
fix not list-appended kmod_config_path leak.

Signed-off-by: Seung-Woo Kim <email address hidden>

1228. By Lucas De Marchi on 2021-03-10

libkmod-config: more chars allowed as space

Recently in a discussion I noticed that kernel allows more chars to be
considered as space in the kernel command line. Switch to the equivalent
of isspace() instead of considering only ' '.

1227. By Lucas De Marchi on 2021-02-15

test-modprobe: share single function for kcmdline tests

1226. By Lucas De Marchi on 2021-02-15

testsuite: allow to re-use single function for tests

Add a new DEFINE_TEST_WITH_FUNC() that accepts the function
alongside the test name. This will allow us to share a single function
for different tests.

1225. By Lucas De Marchi on 2021-02-15

libkmod-config: re-quote option from kernel cmdline

It was reported that grub mangles the kernel cmdline. It turns

 acpi_cpufreq.dyndbg="file drivers/cpufreq/acpi-cpufreq.c +mpf"

 into

 "acpi_cpufreq.dyndbg=file drivers/cpufreq/acpi-cpufreq.c +mpf"

However, even though we could blame grub for doing that, the kernel
happily accepts and re-quotes it when the module is built-in.
So, it's better if kmod also understands it this way and does the same.

Here we basically add additional code to un-mangle it, moving the quote
in way that is acceptable to pass through init_module(). Note that the
interface [f]init_module() gives us mandates the quote to be part of the
value: the module name is not passed and the options are separated by
space.

Reported-by: Jiri Slaby <email address hidden>
Tested-by: Jessica Yu <email address hidden>
Link: https://bugzilla.suse.com/show_bug.cgi?id=1181111#c10

1224. By Lucas De Marchi on 2021-02-15

libkmod-config: revamp kcmdline parsing into a state machine

The handling of spaces and quotes is becoming hard to maintain. Convert
the parser into a state machine so we can check all the states. This
should make it easier to fix a corner case we have right now:
The kernel also accepts a quote before the module name instead of the
value. But this additional is left for later. This is purely an
algorithm change with no behavior change.

Tested-by: Jessica Yu <email address hidden>

1223. By Lucas De Marchi on 2021-02-06

testsuite: also test xz compression

Reviewed-by: Petr Vorel <email address hidden>

1222. By Lucas De Marchi on 2021-02-06

testsuite: compress modules if feature is enabled

Since the output needs to be the same, regardless if the module is
compressed, change populate-modules.sh to conditionally compress the
module if that feature is enabled.

This way we can execute the tests with any build-time configuration and
it should still pass.

Suggested-by: Michal Suchánek <email address hidden>
Reviewed-by: Michal Suchánek <email address hidden>
Tested-by: Michal Suchánek <email address hidden>
Reviewed-by: Petr Vorel <email address hidden>

1221. By Dave Reisner <email address hidden> on 2021-01-23

populate-modules: Use more bash, more quotes

We're already using associatives arrays, so there's no reason we should
be using 'test'.

1220. By Lucas De Marchi on 2021-01-21

README: make github mirror official

For some time I've been maintaining a read-only mirror on github.
I think it's time to allow patches flowing from there besides the
mailing list: I created a new org to host the project:

 https://github.com/kmod-project/kmod

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
This branch contains Public information 
Everyone can see this information.