Date: Fri, 30 Jul 2010 02:33:46 +0200 From: Nathan Whitehorn <nwhitehorn@freebsd.org> To: Matthew D Fleming <mdf@FreeBSD.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r210564 - in head/sys: amd64/conf conf i386/conf ia64/conf kern pc98/conf powerpc/conf sparc64/conf sun4v/conf sys Message-ID: <4C521DEA.6080706@freebsd.org> In-Reply-To: <201007281536.o6SFaEIX057859@svn.freebsd.org> References: <201007281536.o6SFaEIX057859@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 07/28/10 17:36, Matthew D Fleming wrote: > Author: mdf > Date: Wed Jul 28 15:36:12 2010 > New Revision: 210564 > URL: http://svn.freebsd.org/changeset/base/210564 > > Log: > Add MALLOC_DEBUG_MAXZONES debug malloc(9) option to use multiple uma > zones for each malloc bucket size. The purpose is to isolate > different malloc types into hash classes, so that any buffer overruns > or use-after-free will usually only affect memory from malloc types in > that hash class. This is purely a debugging tool; by varying the hash > function and tracking which hash class was corrupted, the intersection > of the hash classes from each instance will point to a single malloc > type that is being misused. At this point inspection or memguard(9) > can be used to catch the offending code. > > Add MALLOC_DEBUG_MAXZONES=8 to -current GENERIC configuration files. > The suggestion to have this on by default came from Kostik Belousov on > -arch. > > This code is based on work by Ron Steinke at Isilon Systems. > > Reviewed by: -arch (mostly silence) > Reviewed by: zml > Approved by: zml (mentor) > > Could you also add this change to the powerpc64 GENERIC? It lives at sys/powerpc/conf/GENERIC64. -Nathan
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C521DEA.6080706>