From owner-freebsd-current@FreeBSD.ORG Thu Jul 9 13:24:46 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AA8741065678 for ; Thu, 9 Jul 2009 13:24:46 +0000 (UTC) (envelope-from gelraen.ua@gmail.com) Received: from mail-fx0-f224.google.com (mail-fx0-f224.google.com [209.85.220.224]) by mx1.freebsd.org (Postfix) with ESMTP id 3AC558FC15 for ; Thu, 9 Jul 2009 13:24:45 +0000 (UTC) (envelope-from gelraen.ua@gmail.com) Received: by fxm24 with SMTP id 24so136699fxm.43 for ; Thu, 09 Jul 2009 06:24:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=MP3H7gG/WruFpqhpkoBQ3E7qiJRrHgg6e1zrSn8a6yo=; b=WH7ZQrgfLvbRiwYghH2OawBy0WXEfO+Emanxliaq/Ut5aZ7EGhvAyR0MP2xlT2ciKX qsdogQ+oyylngYraQwsOu0ZLpMwDBuA8u5NqiZV1QW9yvjmz6KIAKdKXqN9tgc9577HR tp7QoVkfczK4lyi4CZFhpHAPbiVvtc1jDz7h4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=uHhgUdBqzPnp5yIzC7uGxAZY2gnw5ZEt8JcoTkKCdZ/yyUa5SfWRpgy6PI6CKT14/y 1QW7z5xGkBJqtx3wbq+SEd8LBeDIaWMibrwrj2JckR7SMl4LHGOWbi8dxEp9vKVb1fTi MS+szeqpUKWydmBr/MkFboVM1Vb39vhf0NJ+s= MIME-Version: 1.0 Received: by 10.86.54.8 with SMTP id c8mr225393fga.38.1247145885076; Thu, 09 Jul 2009 06:24:45 -0700 (PDT) In-Reply-To: References: <4A55D83E.4020206@yartv.ru> From: Maxim Ignatenko Date: Thu, 9 Jul 2009 16:24:25 +0300 Message-ID: To: freebsd-current Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: panic while configuring vlan on msk X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jul 2009 13:24:46 -0000 2009/7/9 Andrey Groshev : > 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) @ /usr/src/sys/dev/e1000/if_em.c:1= 623 > cpuid =3D 1 > KBD: enter: panic > [thread pid 43561 tid 100322 ] > Stopped at =C2=A0 =C2=A0kdb_enter+0x3a: movl =C2=A0 =C2=A0$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+0x= 316 > vlan_ioctl(c6135400,80206939,c6978220,c9967d80,eab05bac,...) at > vlan_ioctl+0x2d5 > ifioctl(c9520338,80306939,c6978220,c9967d80,ca243500,...) at ifioctl+0x11= a8 > 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 =3D 0x33dbda23, esp =3D 0xbfb= fe1ec, > ebp =3D 0xbfbfe208 --- It seems you stepped on the problem described in http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dkern/132715 em_register_vlan was rewritten r194865, but patch in followup to PR quite trivial and can be applied manually.