From owner-freebsd-current@FreeBSD.ORG Sun Jun 26 06:21:05 2005 Return-Path: X-Original-To: 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 EA0AA16A41F for ; Sun, 26 Jun 2005 06:21:05 +0000 (GMT) (envelope-from silby@silby.com) Received: from relay02.pair.com (relay02.pair.com [209.68.5.16]) by mx1.FreeBSD.org (Postfix) with SMTP id 7330443D49 for ; Sun, 26 Jun 2005 06:21:05 +0000 (GMT) (envelope-from silby@silby.com) Received: (qmail 42550 invoked from network); 26 Jun 2005 06:21:03 -0000 Received: from unknown (HELO localhost) (unknown) by unknown with SMTP; 26 Jun 2005 06:21:03 -0000 X-pair-Authenticated: 209.68.2.70 Date: Sun, 26 Jun 2005 01:20:47 -0500 (CDT) From: Mike Silbersack To: Andrey Chernov In-Reply-To: <20050626021729.GA1991@nagual.pp.ru> Message-ID: <20050626012002.H935@odysseus.silby.com> References: <20050624212729.C537@odysseus.silby.com> <20050625133052.GA23599@peter.osted.lan> <1437.64.215.82.94.1119717536.squirrel@webmail2.pair.com> <20050625173217.GA24306@peter.osted.lan> <20050625171206.S935@odysseus.silby.com> <20050626021729.GA1991@nagual.pp.ru> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: current@freebsd.org, Thierry Herbelot Subject: Re: Mbuf double-free guilty party detection patch 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, 26 Jun 2005 06:21:06 -0000 On Sun, 26 Jun 2005, Andrey Chernov wrote: > On Sat, Jun 25, 2005 at 05:13:18PM -0500, Mike Silbersack wrote: >> Here's a fixed version of the patch that should return the correct > > I got lots of: > > Jun 26 05:22:44 pobrecita kernel: This memory last freed by: c04d7a88 > Jun 26 05:22:44 pobrecita kernel: Memory modified after free 0xc2458900(256) val=0 @ 0xc2458930 > > with "@ 0xc2458930" part changed and "last freed" addresses are: > c04d7a88, c04dbe9d, c04dc490, c04dffff, c04e02bc > > kgdb /sys/i386/compile/POBRECITA/kernel.debug /dev/mem > (kgdb) x 0xc04d7a88 > 0xc04d7a88 : 0xf475c085 > (kgdb) x 0xc04dffff > 0xc04dffff : 0x66ebc389 > (kgdb) x 0xc04dc490 > 0xc04dc490 : 0x8908558b > (kgdb) x 0xc04e02bc > 0xc04e02bc : 0xdb85c189 > (kgdb) x 0xc04dbe9d > 0xc04dbe9d : 0x8908558b > > Is it helps? Yes and no. Your results tell me that it's probably not a simple use after free, but rather something smashing all over memory for some reason. I'm going to have to port Bosko's memguard to uma to really figure this out. *sigh* Mike "Silby" Silbersack