svn commit: r210564 - in head/sys: amd64/conf conf i386/conf
ia64/conf kern pc98/conf powerpc/conf sparc64/conf sun4v/conf sys
Nathan Whitehorn
nwhitehorn at freebsd.org
Fri Jul 30 00:33:48 UTC 2010
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
More information about the svn-src-all
mailing list