]> git.baikalelectronics.ru Git - kernel.git/commit
Make forced module loading optional
authorLinus Torvalds <torvalds@linux-foundation.org>
Mon, 5 May 2008 00:04:16 +0000 (17:04 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 5 May 2008 00:04:16 +0000 (17:04 -0700)
commitd294f992ce1f9d611e4674b652e91d0d9cb070ae
tree20cc66b6b38c0414930d85a8a9705a3a3eff8ddf
parent6267d7e6a409166a672dafc786b930ce861eb38f
Make forced module loading optional

The kernel module loader used to be much too happy to allow loading of
modules for the wrong kernel version by default.  For example, if you
had MODVERSIONS enabled, but tried to load a module with no version
info, it would happily load it and taint the kernel - whether it was
likely to actually work or not!

Generally, such forced module loading should be considered a really
really bad idea, so make it conditional on a new config option
(MODULE_FORCE_LOAD), and make it default to off.

If somebody really wants to force module loads, that's their problem,
but we should not encourage it.  Especially as it happened to me by
mistake (ie regular unversioned Fedora modules getting loaded) causing
lots of strange behavior.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
init/Kconfig
kernel/module.c