Subject: kern/5144: mfs-LKM crashes UVM-kernel
To: None <gnats-bugs@gnats.netbsd.org>
From: Mario Kemper <magick@bundy.lip.owl.de>
List: netbsd-bugs
Date: 03/10/1998 19:25:14
>Number:         5144
>Category:       kern
>Synopsis:       mfs-LKM crashes UVM-kernel
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 10 10:35:00 1998
>Last-Modified:
>Originator:     Mario Kemper
>Organization:
Mario Kemper
magick@bundy.lip.owl.de
>Release:        NetBSD-current of March 9
>Environment:
System: NetBSD bundy 1.3E NetBSD 1.3E (BUNDY) #10: Mon Mar 9 22:09:53 CET 1998 root@:/usr/src/sys/arch/i386/compile/BUNDY i386


>Description:
An UVM enabled kernel panics if you try to mount mfs with a mfs-LKM

>How-To-Repeat:
Enable mfs-lkm and mount /tmp ->panic

>Fix:
Add the following diff to /usr/src/sys/lkm/vfs/ufs/mfs/Makefile to enable
UVM support:

--- Makefile.orig       Tue Mar 10 19:19:10 1998
+++ Makefile    Tue Mar 10 19:19:10 1998
@@ -13,3 +13,6 @@
 
 .include <bsd.kmod.mk>
 
+.if defined(UVM)
+CPPFLAGS+= -DUVM
+.endif

>Audit-Trail:
>Unformatted: