Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 May 2001 16:03:57 -0400
From:      "Matthew Emmerton" <matt@gsicomp.on.ca>
To:        <freebsd-stable@freebsd.org>
Cc:        <peter@freebsd.org>, <bp@freebsd.org>, <archie@freebsd.org>
Subject:   Broken module loading and kernel dependencies
Message-ID:  <002101c0d667$b0a7b3d0$1200a8c0@gsicomp.on.ca>

next in thread | raw e-mail | index | archive | help
After a couple of days working with some (frustrated) PPPoE users, I
realized that dynamic module loading was broken and was forcing PPPoE users
to statically compile all required netgraph modules into their kernel before
PPPoE would work properly.

This doesn't just affect netgraph users (although this is what brought it to
my attention.)  Some people have reported that if they have modules
statically compiled into the kernel, and then try and kldload them later on
(perhaps in rc scripts), error messages are produced although a subsequent
kldstat shows the module loaded twice (once as part of kernel, and once as a
KLD).  I'm not sure how this affects the stability of the system from that
point on, but it is cause for concern.

From user reports, this is known to affect 4.2-REL, 4.3-RCx and 4.3-REL.

I took a look through a whole bunch of kernel code (hoping to do a MFC on my
own -STABLE machines), but it looks like the fix for this will involve much
of the code to be updated to revs that include "First round implementation
of a fine grain enhanced module to module version dependency system.",
committed by peter.  Sources that need to be updated include:

sys/kern/kern_linker.c (v 1.52)
sys/kern/kern_module.c (v 1.22)
sys/kern/link_elf.c (v 1.27)
sys/kern/link_aout.c (v 1.28)
sys/kern/linker_if.m (v 1.2)
sys/sys/linker.h (v 1.19)
sys/sys/module.h (v 1.15)

Is there anyone out there that can help in getting the appropriate bits
MFC'd, or even shed a bit more light on how this stuff got broken?  Even
though there is a way around this problem, it still should be fixed ASAP.

Thanks,

--
Matt Emmerton






To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?002101c0d667$b0a7b3d0$1200a8c0>