Subject: port-amd64/32816: amd64 can not load lkms
To: None <port-amd64-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: Martin Husemann <martin@aprisoft.de>
List: netbsd-bugs
Date: 02/13/2006 09:35:00
>Number:         32816
>Category:       port-amd64
>Synopsis:       amd64 can not load lkms
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-amd64-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 13 09:35:00 +0000 2006
>Originator:     Martin Husemann
>Release:        NetBSD 3.99.15
>Organization:
>Environment:
System: NetBSD martins.aprisoft.de 3.99.15 NetBSD 3.99.15 (MARTINS) #0: Sat Feb 11 00:33:04 CET 2006 martin@martins.aprisoft.de:/usr/src/sys/arch/amd64/compile/MARTINS amd64
Architecture: x86_64
Machine: amd64
>Description:

I'm trying to get the nvidia nforce ethernet lkm working on amd64. It does
not load, crashes the kernel instead.

On investigation I found that I can not load *any* lkm.

I get a failed assertion: end < VM_MAX_KERNEL_ADDRESS
in uvm/uvm_km.c:479

with the backtrace:
uvm_km_check_empty()
uvm_map()
uvm_km_alloc()
lkmioctl()


(this is a DEBUG, DIAGNOSTIC, LOCKDEBUG kernel, and yes, I do know that the
pf.o would not have worked anyway in this kernel)
>How-To-Repeat:

On amd64 do: modload /usr/lkm/pf.o

>Fix:
n/a