From owner-freebsd-current@FreeBSD.ORG Sat Nov 5 03:54:46 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 5D17016A41F for ; Sat, 5 Nov 2005 03:54:46 +0000 (GMT) (envelope-from keramida@linux.gr) Received: from nic.ach.sch.gr (nic.sch.gr [194.63.238.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2659C43D70 for ; Sat, 5 Nov 2005 03:54:35 +0000 (GMT) (envelope-from keramida@linux.gr) Received: (qmail 21551 invoked by uid 207); 5 Nov 2005 03:54:34 -0000 Received: from keramida@linux.gr by nic by uid 201 with qmail-scanner-1.21 (sophie: 3.04/2.30/3.97. Clear:RC:1(81.186.70.125):. Processed in 0.640463 secs); 05 Nov 2005 03:54:34 -0000 Received: from dialup125.ach.sch.gr (HELO flame.pc) ([81.186.70.125]) (envelope-sender ) by nic.sch.gr (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 5 Nov 2005 03:54:32 -0000 Received: from flame.pc (flame [127.0.0.1]) by flame.pc (8.13.4/8.13.4) with ESMTP id jA53f9lU000951; Sat, 5 Nov 2005 05:41:09 +0200 (EET) (envelope-from keramida@linux.gr) Received: (from keramida@localhost) by flame.pc (8.13.4/8.13.4/Submit) id jA53f5QQ000950; Sat, 5 Nov 2005 05:41:05 +0200 (EET) (envelope-from keramida@linux.gr) Date: Sat, 5 Nov 2005 05:41:05 +0200 From: Giorgos Keramidas To: Gleb Smirnoff Message-ID: <20051105034105.GA906@flame.pc> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051105003420.GM91530@cell.sick.ru> Cc: sam@freebsd.org, freebsd-current@freebsd.org, Andre Oppermann , 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 03:54:46 -0000 On 2005-11-05 03:34, Gleb Smirnoff wrote: > Andre, Thierry, Sam, > > this patch should fix the problems But it panics in mb_dtor_pack() because ext_type != EXT_CLUSTER when my ath0 interface tries to associate with an AP. I had to change this too, to make things work: %%% Index: kern/kern_mbuf.c =================================================================== RCS file: /home/ncvs/src/sys/kern/kern_mbuf.c,v retrieving revision 1.13 diff -u -r1.13 kern_mbuf.c --- kern/kern_mbuf.c 4 Nov 2005 17:20:53 -0000 1.13 +++ kern/kern_mbuf.c 5 Nov 2005 03:27:06 -0000 @@ -332,7 +332,7 @@ KASSERT(m->m_ext.ext_free == NULL, ("%s: ext_free != NULL", __func__)); KASSERT(m->m_ext.ext_args == NULL, ("%s: ext_args != NULL", __func__)); KASSERT(m->m_ext.ext_size == MCLBYTES, ("%s: ext_size != MCLBYTES", __func__)); - KASSERT(m->m_ext.ext_type == EXT_CLUSTER, ("%s: ext_type != EXT_CLUSTER", __func__)); + KASSERT(m->m_ext.ext_type == EXT_PACKET, ("%s: ext_type != EXT_PACKET", __func__)); KASSERT(*m->m_ext.ref_cnt == 1, ("%s: ref_cnt != 1", __func__)); #ifdef INVARIANTS trash_dtor(m->m_ext.ext_buf, MCLBYTES, arg); %%%