From owner-freebsd-current@FreeBSD.ORG Sun Apr 20 22:12:03 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 80294106566C for ; Sun, 20 Apr 2008 22:12:03 +0000 (UTC) (envelope-from barney_cordoba@yahoo.com) Received: from web63913.mail.re1.yahoo.com (web63913.mail.re1.yahoo.com [69.147.97.128]) by mx1.freebsd.org (Postfix) with SMTP id 167388FC12 for ; Sun, 20 Apr 2008 22:12:02 +0000 (UTC) (envelope-from barney_cordoba@yahoo.com) Received: (qmail 13205 invoked by uid 60001); 20 Apr 2008 22:12:02 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=cqrUwCbsYE4KvStRo3CaMHp0FiiEBvdlEVeEDbdw7Eb2gGD3aQXHnn1VYnuvx3EJS+T8QJCJ5zOj4RmVEMG/CCNSMpsP9dgeTwiB60IweXgDex3Y/jkS2JlKNai/Ib4lXfj2AQYh8PCiosugDIr/vNgA4ummvvsSVjwshqppdWI=; X-YMail-OSG: .3Y4sBQVM1n9AdVqoDfIfT26ykSlNSizd73CgwlHXm6PjvPZwhuxfAeUA6IWy0ONXPX3_5EEHm6vvvd5ZgOKl3T8nZ5SRvKeTFl9uug8MCRdGWciE_vxTnZyhaQ- Received: from [98.203.28.38] by web63913.mail.re1.yahoo.com via HTTP; Sun, 20 Apr 2008 15:12:02 PDT Date: Sun, 20 Apr 2008 15:12:02 -0700 (PDT) From: Barney Cordoba To: current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <378903.13017.qm@web63913.mail.re1.yahoo.com> Cc: Subject: mbuf strange behavior, panics using em driver 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: Sun, 20 Apr 2008 22:12:03 -0000 I've encountered some regular panics in bus_dmamap_load_mbuf_sg() and also complaints from the ethernet code about packets without packet headers. I've traced it to mbufs that are "freed" in filter code. Strangely, I set up a test where I steal packets (as if pfil grabbed the packet) and return NULL without freeing the mbuf. Yet the mbufs continue to be used over and over again (I'm monitoring the mbuf addresses in ether_input()). Its as if the em driver is using the mbuf continuously whether its been freed or not. I also don't see mbuf cluster in use count going up as I should with a forced memory leak. What is going on? Barney ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ