Messages in this thread | | | Subject | Re: [PATCH v5] RO/NX protection for loadable kernel modules | From | Andi Kleen <> | Date | Mon, 13 Jul 2009 11:02:14 +0200 |
| |
Arjan van de Ven <arjan@infradead.org> writes: > I've seen some of these case, where the distro kernel has something as > a module, but the other parts of the distro the unconditionally load > that module always. That makes no sense.
One good reason for this is that if something goes wrong with the module you can still remove/blacklist the module. This can be very useful in distro deployment, where telling users "please set flag xyz" is much easier than asking them to get a special kernel build. It also helps debugging when you're trying to narrow down where a problem is.
But you can't do that with built-in drivers.
One way to avoid this would be to have a standard way to turn off drivers/subsystems that are built in on the command line. Right now that's difficult because the linked kernel doesn't even know the driver names anymore.
Perhaps we should keep the module names/metadata even in static kernel? (and make CONFIG_MODULE on the subsystem level disappear?).
IMHO that would be a great cleanup anyways, avoiding one special case in the driver build testing.
It would be also nice if you could cat some file in sys and it gave you the module descriptions for example.
-Andi -- ak@linux.intel.com -- Speaking for myself only.
| |