From owner-cvs-src@FreeBSD.ORG Wed Feb 1 16:09:28 2006 Return-Path: X-Original-To: cvs-src@freebsd.org Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 93C7816A420; Wed, 1 Feb 2006 16:09:28 +0000 (GMT) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4252C43D46; Wed, 1 Feb 2006 16:09:28 +0000 (GMT) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.13.4/8.13.4) with ESMTP id k11G9NpU067653; Wed, 1 Feb 2006 08:09:23 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.13.4/8.13.1/Submit) id k11G9NwG067652; Wed, 1 Feb 2006 08:09:23 -0800 (PST) (envelope-from sgk) Date: Wed, 1 Feb 2006 08:09:23 -0800 From: Steve Kargl To: Andrew Gallatin Message-ID: <20060201160923.GA67621@troutmask.apl.washington.edu> References: <200601311109.k0VB9MRq025366@repoman.freebsd.org> <20060201104752.A68774@grasshopper.cs.duke.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060201104752.A68774@grasshopper.cs.duke.edu> User-Agent: Mutt/1.4.2.1i Cc: cvs-src@freebsd.org, src-committers@freebsd.org, Pawel Jakub Dawidek , cvs-all@freebsd.org Subject: Re: cvs commit: src/sys/kern kern_malloc.c src/share/man/man9 Makefile redzone.9 src/sys/vm redzone.c redzone.h src/sys/conf NOTES files options X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Feb 2006 16:09:28 -0000 On Wed, Feb 01, 2006 at 10:47:52AM -0500, Andrew Gallatin wrote: > Pawel Jakub Dawidek [pjd@FreeBSD.org] wrote: > > > > FreeBSD src repository > > > > Modified files: > > sys/kern kern_malloc.c > > share/man/man9 Makefile > > sys/conf NOTES files options > > Added files: > > share/man/man9 redzone.9 > > sys/vm redzone.c redzone.h > > Log: > > Add buffer corruption protection (RedZone) for kernel's malloc(9). > > It detects both: buffer underflows and buffer overflows bugs at runtime > > (on free(9) and realloc(9)) and prints backtraces from where memory was > > allocated and from where it was freed. > > > > If I enable DEBUG_REDZONE on an amd64 machine (UP, 512MB ram), > I get this panic on startup: > > FreeBSD 7.0-CURRENT #0: Tue Jan 31 17:17:41 EST 2006 > gallatin@venice:/usr/src/sys/amd64/compile/VENICEW > WARNING: WITNESS option enabled, expect reduced performance. > Memory modified after free 0xffffff0000006d00(248) val=5 @ 0xffffff0000006dd0 > kernel trap 9 with interrupts disabled You can trigger this panic without the red zone stuff. See my string of post from yesterday. Something went into sys/ on 2006-01-26 that is causing the problems. I suspect the pts code, but can't prove it, yet. -- Steve