From owner-freebsd-current@FreeBSD.ORG Sat Nov 5 07:28:40 2005 Return-Path: X-Original-To: freebsd-current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 55D7116A41F; Sat, 5 Nov 2005 07:28:40 +0000 (GMT) (envelope-from glebius@FreeBSD.org) Received: from cell.sick.ru (cell.sick.ru [217.72.144.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E97E43D49; Sat, 5 Nov 2005 07:28:39 +0000 (GMT) (envelope-from glebius@FreeBSD.org) Received: from cell.sick.ru (glebius@localhost [127.0.0.1]) by cell.sick.ru (8.13.3/8.13.3) with ESMTP id jA57SaUc034287 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 5 Nov 2005 10:28:37 +0300 (MSK) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.sick.ru (8.13.3/8.13.1/Submit) id jA57SaxW034286; Sat, 5 Nov 2005 10:28:36 +0300 (MSK) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.sick.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Sat, 5 Nov 2005 10:28:36 +0300 From: Gleb Smirnoff To: Giorgos Keramidas Message-ID: <20051105072836.GQ91530@cell.sick.ru> References: <20051104092724.GA33945@xor.obsecurity.org> <436B885B.6010609@freebsd.org> <20051104163526.GC82727@flame.pc> <200511041833.30955.thierry@herbelot.com> <436BA8B5.9070104@freebsd.org> <20051105003420.GM91530@cell.sick.ru> <20051105034105.GA906@flame.pc> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <20051105034105.GA906@flame.pc> User-Agent: Mutt/1.5.6i Cc: freebsd-current@FreeBSD.org, Andre Oppermann , sam@FreeBSD.org, thierry@herbelot.com Subject: Re: panic: mb_dtor_pack: ref_cnt != 1 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: Sat, 05 Nov 2005 07:28:40 -0000 On Sat, Nov 05, 2005 at 05:41:05AM +0200, Giorgos Keramidas wrote: G> On 2005-11-05 03:34, Gleb Smirnoff wrote: G> > Andre, Thierry, Sam, G> > G> > this patch should fix the problems G> G> But it panics in mb_dtor_pack() because ext_type != EXT_CLUSTER G> when my ath0 interface tries to associate with an AP. G> G> I had to change this too, to make things work: Yes, you are right, thanks. G> %%% G> Index: kern/kern_mbuf.c G> =================================================================== G> RCS file: /home/ncvs/src/sys/kern/kern_mbuf.c,v G> retrieving revision 1.13 G> diff -u -r1.13 kern_mbuf.c G> --- kern/kern_mbuf.c 4 Nov 2005 17:20:53 -0000 1.13 G> +++ kern/kern_mbuf.c 5 Nov 2005 03:27:06 -0000 G> @@ -332,7 +332,7 @@ G> KASSERT(m->m_ext.ext_free == NULL, ("%s: ext_free != NULL", __func__)); G> KASSERT(m->m_ext.ext_args == NULL, ("%s: ext_args != NULL", __func__)); G> KASSERT(m->m_ext.ext_size == MCLBYTES, ("%s: ext_size != MCLBYTES", __func__)); G> - KASSERT(m->m_ext.ext_type == EXT_CLUSTER, ("%s: ext_type != EXT_CLUSTER", __func__)); G> + KASSERT(m->m_ext.ext_type == EXT_PACKET, ("%s: ext_type != EXT_PACKET", __func__)); G> KASSERT(*m->m_ext.ref_cnt == 1, ("%s: ref_cnt != 1", __func__)); G> #ifdef INVARIANTS G> trash_dtor(m->m_ext.ext_buf, MCLBYTES, arg); G> %%% -- Totus tuus, Glebius. GLEBIUS-RIPN GLEB-RIPE