From owner-freebsd-stable Sun May 6 13: 9:30 2001 Delivered-To: freebsd-stable@freebsd.org Received: from tomts7-srv.bellnexxia.net (tomts7.bellnexxia.net [209.226.175.40]) by hub.freebsd.org (Postfix) with ESMTP id 7058737B422; Sun, 6 May 2001 13:09:26 -0700 (PDT) (envelope-from matt@gsicomp.on.ca) Received: from xena.gsicomp.on.ca ([64.228.153.241]) by tomts7-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20010506200925.EATJ16174.tomts7-srv.bellnexxia.net@xena.gsicomp.on.ca>; Sun, 6 May 2001 16:09:25 -0400 Received: from hermes (hermes.gsicomp.on.ca [192.168.0.18]) by xena.gsicomp.on.ca (8.11.1/8.11.1) with SMTP id f46K6oN34139; Sun, 6 May 2001 16:06:50 -0400 (EDT) (envelope-from matt@gsicomp.on.ca) Message-ID: <002101c0d667$b0a7b3d0$1200a8c0@gsicomp.on.ca> From: "Matthew Emmerton" To: Cc: , , Subject: Broken module loading and kernel dependencies Date: Sun, 6 May 2001 16:03:57 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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