From owner-cvs-all Tue Apr 30 0:54:29 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 73A1937B404; Tue, 30 Apr 2002 00:54:26 -0700 (PDT) Received: (from jeff@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g3U7sQj40182; Tue, 30 Apr 2002 00:54:26 -0700 (PDT) (envelope-from jeff) Message-Id: <200204300754.g3U7sQj40182@freefall.freebsd.org> From: Jeff Roberson Date: Tue, 30 Apr 2002 00:54:26 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/conf files src/sys/kern kern_malloc.c src/sys/vm uma_dbg.c uma_dbg.h X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG jeff 2002/04/30 00:54:26 PDT Modified files: sys/conf files sys/kern kern_malloc.c Added files: sys/vm uma_dbg.c uma_dbg.h Log: Add a new UMA debugging facility. This will overwrite freed memory with 0xdeadc0de and then check for it just before memory is handed off as part of a new request. This will catch any post free/pre alloc modification of memory, as well as introduce errors for anything that tries to dereference it as a pointer. This code takes the form of special init, fini, ctor and dtor routines that are specificly used by malloc. It is in a seperate file because additional debugging aids will want to live here as well. Revision Changes Path 1.630 +1 -0 src/sys/conf/files 1.104 +8 -2 src/sys/kern/kern_malloc.c 1.1 +112 -0 src/sys/vm/uma_dbg.c (new) 1.1 +47 -0 src/sys/vm/uma_dbg.h (new) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message