Date: Wed, 1 Feb 2006 08:09:23 -0800 From: Steve Kargl <sgk@troutmask.apl.washington.edu> To: Andrew Gallatin <gallatin@cs.duke.edu> Cc: cvs-src@freebsd.org, src-committers@freebsd.org, Pawel Jakub Dawidek <pjd@freebsd.org>, 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 Message-ID: <20060201160923.GA67621@troutmask.apl.washington.edu> In-Reply-To: <20060201104752.A68774@grasshopper.cs.duke.edu> References: <200601311109.k0VB9MRq025366@repoman.freebsd.org> <20060201104752.A68774@grasshopper.cs.duke.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060201160923.GA67621>