From owner-freebsd-current@FreeBSD.ORG Thu Jan 26 08:21:20 2006 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 75D6516A420 for ; Thu, 26 Jan 2006 08:21:20 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (gate.funkthat.com [69.17.45.168]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1420543D45 for ; Thu, 26 Jan 2006 08:21:18 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (c1th0s38hbf1dhz8@localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.13.3/8.13.3) with ESMTP id k0Q8K83E060974 for ; Thu, 26 Jan 2006 00:20:08 -0800 (PST) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.13.3/8.13.3/Submit) id k0Q8K88T060973 for current@FreeBSD.org; Thu, 26 Jan 2006 00:20:08 -0800 (PST) (envelope-from jmg) Date: Thu, 26 Jan 2006 00:20:08 -0800 From: John-Mark Gurney To: current@FreeBSD.org Message-ID: <20060126082007.GM69162@funkthat.com> Mail-Followup-To: current@FreeBSD.org References: <20060122194129.GZ69162@funkthat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060122194129.GZ69162@funkthat.com> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-RELEASE-p6 i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html Cc: Subject: Re: memory corruption in recent -current? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John-Mark Gurney List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jan 2006 08:21:20 -0000 John-Mark Gurney wrote this message on Sun, Jan 22, 2006 at 11:41 -0800: > I've been working on a BT878 audio driver (first crack is available > in p4), and with a recent -current (you can sync to my -current as > it's the one in my workspace, jmg_carbon), I get memory corruption: > Memory modified after free 0xc2fb1050(12) val=1c @ 0xc2fb1050 > panic: Most recently used by ioctlops > or: > Memory modified after free 0xc2ba2b90(12) val=1c @ 0xc2ba2b90 > panic: Most recently used by Unitno > > I went back to a kerenl that is pre-Dec 21st, and I haven't had a single > panic yet. I will admit I haven't done a builtworld between the these > two (the last buildworld matched with the pre-Dec 21st kernel)... I am > using kld modules for my testing, so I was building modules against an > old world, but I don't know of anything that has changed that would > cause problems.. Well, turns out to be a bug in my driver.. the allocation scheme must of changed causing it more likely to hit the buffer I had overwritten.. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."