Subject: Re: modload crashing kernel
To: Jukka Salmi <j+nbsd@2004.salmi.ch>
From: enami tsugutomo <enami@sm.sony.co.jp>
List: current-users
Date: 11/02/2004 10:35:22
Jukka Salmi <j+nbsd@2004.salmi.ch> writes:

> xf86.o: uvm_fault(0xcb43c540, 0, 0, 1) -> 0xe
> kernel: page fault trap, code=0
> Stopped in pid 695.1 (modload) at       netbsd:_lkm_checkver+0xb:      compl
> $
> 0x2,0xc(%edx)
> db> tr
> _lkm_checkver(...) at netbsd:_lkm_checkver+0xb
> lkmdispatch(...) at netbsd:__qdivrem+0xb578577
> lkmioctl(...) at netbsd:lkmioctl+0x147

At least the new member should be added to the end of the struct so
that an offset of the member `private' won't change.

enami.