Subject: Re: port-sparc64/36376: NetBSD-4 sparc64 broken LKMs
To: None <port-sparc64-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: Martin Husemann <martin@duskware.de>
List: netbsd-bugs
Date: 05/22/2007 21:20:04
The following reply was made to PR port-sparc64/36376; it has been noted by GNATS.

From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-sparc64/36376: NetBSD-4 sparc64 broken LKMs
Date: Tue, 22 May 2007 23:15:10 +0200

 This is still broken on -current.
 
 It crashes in lkmioctl(LMREADY, ...) when calling the module entry point.
 The entry address seems to be correct, and the uvm_km_alloc() calls get
 the UVM_KMF_EXEC flag, so the mappings should have VM_PROT_EXECUTE.
 But:
 
 text_access_fault: pc=e5b4800 va=e5b4000
 kernel trap 64: +fast instruction access MMU miss
 Stopped in pid 20.1 (modload) at        0xe5b4800:      save            %sp, -0x
 c0, %sp                                                                        
 db> mach kmap 0xe5b4000
 pmap_kernel(0xe5b4000)->pm_segs[0][1c][2da]=>80000000bdf93636
                                                           ^
 
 that 6 is even, so TLB_EXEC is not set.
 
 Not sure where it gets lost yet.
 
 Martin