Subject: Re: kernel panic with vlan(4)
To: None <current-users@NetBSD.org>
From: David Young <dyoung@pobox.com>
List: current-users
Date: 10/11/2007 15:11:41
On Thu, Oct 11, 2007 at 12:02:30PM -0500, David Young wrote:
> On Thu, Oct 11, 2007 at 09:02:44PM +0900, Kouichirou Hiratsuka wrote:
> > Hello,
> > 
> > I get a kernel panic when destroying vlan(4) on -current/i386.
> > 
> > # ifconfig vlan1 create
> > # ifconfig vlan1 vlan 1 vlanif iwi0
> > # ifconfig vlan1 destroy
> > panic: sockaddr_copy: source too long, 16 < 28 bytes
> > Stopped in pid 11845.1 (ifconfig) at	netbsd:breakpoint+0x1:	ret
> > db> 
> 
> Please type 'bt' at the db> prompt and send the backtrace.  If you can
> produce some line number information, too, that would be helpful.

Nevermind, I have produced a backtrace, and I am working on a fix:

breakpoint(c033cd10,c030494c,10,1c,c6b4bb9c) at netbsd:breakpoint+0x1
sockaddr_copy(c6b4b930,10,c072d80c,c05f2040,c05f2040) at netbsd:sockaddr_copy+0x
3b
ifreq_setaddr(80906932,c6b4b920,c072d80c,c6b4b930,bbb77000) at netbsd:ifreq_seta
ddr+0x43
vlan_ether_purgemulti(c0803400,2000200,fcccf,0,4a3450) at netbsd:vlan_ether_purg
emulti+0x56
vlan_unconfig(c6a7e200,c6ac7a80,c6b4ba8c,80906979,c0803400) at netbsd:vlan_uncon
fig+0x26
vlan_clone_destroy(c0803400,0,293,c024bb1b,0) at netbsd:vlan_clone_destroy+0x3f
ifioctl(c070ca84,80906979,c6a7e200,c6ac7a80,c6071370) at netbsd:ifioctl+0x17c
sys_ioctl(c6ac7a80,c6b4bc48,c6b4bc68,0,bbb73000) at netbsd:sys_ioctl+0x169
syscall_plain() at netbsd:syscall_plain+0x11d
--- syscall (number 54) ---
0xbbb97187:

Dave

-- 
David Young             OJC Technologies
dyoung@ojctech.com      Urbana, IL * (217) 278-3933 ext 24