mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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 <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
a5dd697074
commit
91e37a793b
2 changed files with 13 additions and 9 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue