Re: panic while configuring vlan on msk

From: Maxim Ignatenko <gelraen.ua_at_gmail.com>
Date: Thu, 9 Jul 2009 16:24:25 +0300
2009/7/9 Andrey Groshev <greenx_at_yartv.ru>:
> Hi, again :)
>
> it was necessary to work with vlan-s, but did not succeed ...
>
> #ifconfig vlan7 create
> #ifconfig vlan7 vlan 7 vlandev msk0
>
> panic: mtx_lock() of spin mutex (null) _at_ /usr/src/sys/dev/e1000/if_em.c:1623
> cpuid = 1
> KBD: enter: panic
> [thread pid 43561 tid 100322 ]
> Stopped at    kdb_enter+0x3a: movl    $0,kbd_why
> db> bt
> Tracing pid 43561 tid 100322 td 0xc9967d80
> kdb_enter(c0cb1978,c0cb1978,c0cb03e4,eab05a70,1,...) at kdb_enter+0x03
> panic(c0cb03e4,0,c0c79470,657,c9967e24,...) at panic+0x136
> _mtx_lock_flags(c60db4e4,0,c0c79470,657,c60d7000,...) at
> _mtx_lock_flags+0x9a
> em_init(c60d7000) at em_init+0x35
> em_register_vlan(0,c60cd400,7,430,c696fb84,...) at em_register_vlan+0x44
> vlan_config(eab05b16,eab05b16,12,eab05b24,c6978220,...) at vlan_config+0x316
> vlan_ioctl(c6135400,80206939,c6978220,c9967d80,eab05bac,...) at
> vlan_ioctl+0x2d5
> ifioctl(c9520338,80306939,c6978220,c9967d80,ca243500,...) at ifioctl+0x11a8
> soo_ioctl(c6d02e38,80206939,c6978220,c65a0b80,c9967d80,...) at
> soo_ioctl+0x415
> kern_ioctl(c9967d80,3,80206939,c6978220,8f52d0,...) at kern_ioctl+0x1fd
> ioctl(c9967d80,eab05cf8,c,c0cc863f,c0d996dc8,...) at ioctl+0x134
> syscall(eab05d38) at syscall+0x2a3
> Xint0x80_syscall() at Xint0x80_syscall+0x20
> --- syscall (54, FreeBSD ELF32, ioctl), eip = 0x33dbda23, esp = 0xbfbfe1ec,
> ebp = 0xbfbfe208 ---

It seems you stepped on the problem described in
http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/132715
em_register_vlan was rewritten r194865, but patch in followup to PR
quite trivial and can be applied manually.
Received on Thu Jul 09 2009 - 11:24:46 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:51 UTC