]> git.ipfire.org Git - thirdparty/kmod.git/commit
testsuite: check for ill-formed kcmdline
authorLucas De Marchi <lucas.demarchi@intel.com>
Tue, 10 Mar 2020 08:17:12 +0000 (01:17 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Fri, 13 Mar 2020 16:23:58 +0000 (09:23 -0700)
commit3c1073e17af877ff27ed7d1906494723f969710e
tree16051b4c213e5660b7bb47e89f7db4d28ee0d303
parent0262531556a3543f33c7a553b43e697377f8bd99
testsuite: check for ill-formed kcmdline

Commit ca3bf5d47cec ("iommu/amd: Introduces ivrs_acpihid kernel parameter")
in the kernel introduced an ill-formed kernel parameter, ivrs_acpihid.
The problem is that it may have a dot on the key side:
"ivrs_acpihid[00:14.5]=AMD0020:0". This could potentially trip our
parser of module options, but right now it's working as intended: the
only thing that happens is that after deciding "ivrs_acpihid[00:14" is a
module name, it will fail the underscores() routine and the option will
be ignored from the kmod pov (not kernel's pov since that driver parsers
the kernel command line by itself).
testsuite/rootfs-pristine/test-modprobe/module-param-kcmdline6/correct.txt [new file with mode: 0644]
testsuite/rootfs-pristine/test-modprobe/module-param-kcmdline6/proc/cmdline [new file with mode: 0644]
testsuite/test-modprobe.c