Re: RFC: modules and 2.5

Keith Owens
2001-07-03T07:39:28Z

On Tue, 03 Jul 2001 03:24:26 -0400,
Jeff Garzik <jgarzik@mandrakesoft.com> wrote:
>> On Tue, 3 Jul 2001 07:50:50 +0100,
>> Sean Hunter <sean@dev.sportingbet.com> wrote:
>> >Does this defeat my favourite module-related gothcha, that the machine panics
>> >if I have (say) a scsi driver builtin to the kernel and the same driver tries
>> >to load itself as a module?
>
>If this occurs in 2.4 it is a bug and should be fixed in 2.4.

Human error. Create a new kernel with something built in which used to
be a module and forget to make modules_install, so the code is in the
kernel and in /lib/modules. Then do an explicit insmod, if probing
does not fail the module load then oops is all she wrote. One of the
reasons I changed modules_install to erase the old directory first was
to minimize this problem, but humans can still stuff it up. AFAICT it
cannot be fixed in 2.4 because there is no identifier for which
"modules" are included in the kernel.