diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2008-05-09 16:25:28 +1000 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-05-09 07:45:18 -0700 |
commit | 91e37a793b5a9436a2d12b2f0a8f52db3a133e1d (patch) | |
tree | 6ddf17ad786fa2a42ef79aa4f7873c79c1e17a89 /init | |
parent | a5dd69707424a35d2d2cc094e870f595ad61e916 (diff) | |
download | linux-riscv-91e37a793b5a9436a2d12b2f0a8f52db3a133e1d.tar.gz linux-riscv-91e37a793b5a9436a2d12b2f0a8f52db3a133e1d.tar.bz2 linux-riscv-91e37a793b5a9436a2d12b2f0a8f52db3a133e1d.zip |
module: don't ignore vermagic string if module doesn't have modversions
Linus found a logic bug: we ignore the version number in a module's
vermagic string if we have CONFIG_MODVERSIONS set, but modversions
also lets through a module with no __versions section for modprobe
--force (with tainting, but still).
We should only ignore the start of the vermagic string if the module
actually *has* crcs to check. Rather than (say) having an
entertaining hissy fit and creating a config option to work around the
buggy code.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'init')
-rw-r--r-- | init/Kconfig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/init/Kconfig b/init/Kconfig index 3b5adbf228c7..6135d07f31ec 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -845,9 +845,9 @@ config MODULE_FORCE_LOAD depends on MODULES default n help - This option allows loading of modules even if that would set the - 'F' (forced) taint, due to lack of version info. Which is - usually a really bad idea. + Allow loading of modules without version information (ie. modprobe + --force). Forced module loading sets the 'F' (forced) taint flag and + is usually a really bad idea. config MODULE_UNLOAD bool "Module unloading" |