Re: changeset: Make forced module loading optional

From: Rusty Russell
Date: Mon May 05 2008 - 00:55:25 EST


Linus's recent commit said:
> 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!
...
> Especially as it happened to me by mistake (ie regular unversioned Fedora
> modules getting loaded) causing lots of strange behavior.

Hi Linus,

I'm trying to figure out how you did this. So fedora builds unversioned
modules, and version (and vermagic) matched your kernel? And you somehow
mixed them up?

I don't think relying on modversions is the complete answer here. Perhaps
we should make modules_install blow away old modules?

Cheers,
Rusty.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/