From owner-svn-src-all@FreeBSD.ORG Fri Jul 30 00:33:48 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 94A0E106566B; Fri, 30 Jul 2010 00:33:48 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from mail.icecube.wisc.edu (trout.icecube.wisc.edu [128.104.255.119]) by mx1.freebsd.org (Postfix) with ESMTP id 5D6A18FC08; Fri, 30 Jul 2010 00:33:48 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.icecube.wisc.edu (Postfix) with ESMTP id B6A8E582C7; Thu, 29 Jul 2010 19:33:47 -0500 (CDT) X-Virus-Scanned: amavisd-new at icecube.wisc.edu Received: from mail.icecube.wisc.edu ([127.0.0.1]) by localhost (trout.icecube.wisc.edu [127.0.0.1]) (amavisd-new, port 10030) with ESMTP id xtv4Zr5X6bij; Thu, 29 Jul 2010 19:33:47 -0500 (CDT) Received: from wanderer.tachypleus.net (adsl-75-50-88-235.dsl.mdsnwi.sbcglobal.net [75.50.88.235]) by mail.icecube.wisc.edu (Postfix) with ESMTP id 0CA3F582C4; Thu, 29 Jul 2010 19:33:46 -0500 (CDT) Message-ID: <4C521DEA.6080706@freebsd.org> Date: Fri, 30 Jul 2010 02:33:46 +0200 From: Nathan Whitehorn User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.11) Gecko/20100727 Thunderbird/3.0.6 MIME-Version: 1.0 To: Matthew D Fleming References: <201007281536.o6SFaEIX057859@svn.freebsd.org> In-Reply-To: <201007281536.o6SFaEIX057859@svn.freebsd.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jul 2010 00:33:48 -0000 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