Subject: Re: modload crashing kernel
To: enami tsugutomo <enami@sm.sony.co.jp>
From: Jaromir Dolecek <jdolecek@NetBSD.org>
List: current-users
Date: 11/06/2004 14:52:38
enami tsugutomo wrote:
> > 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.

Thanks for the analysis - I committed suggested change.

Jaromir
-- 
Jaromir Dolecek <jdolecek@NetBSD.org>            http://www.NetBSD.cz/
-=- We should be mindful of the potential goal, but as the Buddhist -=-
-=- masters say, ``You may notice during meditation that you        -=-
-=- sometimes levitate or glow.   Do not let this distract you.''   -=-