From owner-cvs-src-old@FreeBSD.ORG Wed Jul 28 15:37:37 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8CF4F1065670 for ; Wed, 28 Jul 2010 15:37:37 +0000 (UTC) (envelope-from mdf@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 5DA3A8FC1B for ; Wed, 28 Jul 2010 15:37:37 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id o6SFbb8h072876 for ; Wed, 28 Jul 2010 15:37:37 GMT (envelope-from mdf@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id o6SFbbsd072875 for cvs-src-old@freebsd.org; Wed, 28 Jul 2010 15:37:37 GMT (envelope-from mdf@repoman.freebsd.org) Message-Id: <201007281537.o6SFbbsd072875@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to mdf@repoman.freebsd.org using -f From: Matthew D Fleming Date: Wed, 28 Jul 2010 15:36:12 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/amd64/conf GENERIC src/sys/conf NOTES options src/sys/i386/conf GENERIC src/sys/ia64/conf GENERIC src/sys/kern kern_malloc.c src/sys/pc98/conf GENERIC src/sys/powerpc/conf GENERIC src/sys/sparc64/conf GENERIC src/sys/sun4v/conf GENERIC ... X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jul 2010 15:37:37 -0000 mdf 2010-07-28 15:36:12 UTC FreeBSD src repository Modified files: sys/amd64/conf GENERIC sys/conf NOTES options sys/i386/conf GENERIC sys/ia64/conf GENERIC sys/kern kern_malloc.c sys/pc98/conf GENERIC sys/powerpc/conf GENERIC sys/sparc64/conf GENERIC sys/sun4v/conf GENERIC sys/sys malloc.h Log: SVN rev 210564 on 2010-07-28 15:36:12Z by mdf 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) Revision Changes Path 1.546 +1 -0 src/sys/amd64/conf/GENERIC 1.1588 +14 -0 src/sys/conf/NOTES 1.706 +1 -0 src/sys/conf/options 1.533 +1 -0 src/sys/i386/conf/GENERIC 1.116 +1 -0 src/sys/ia64/conf/GENERIC 1.174 +124 -24 src/sys/kern/kern_malloc.c 1.333 +1 -0 src/sys/pc98/conf/GENERIC 1.106 +1 -0 src/sys/powerpc/conf/GENERIC 1.170 +1 -0 src/sys/sparc64/conf/GENERIC 1.38 +1 -0 src/sys/sun4v/conf/GENERIC 1.90 +1 -0 src/sys/sys/malloc.h