From owner-freebsd-current@FreeBSD.ORG Tue Jan 31 15:18:25 2006 Return-Path: X-Original-To: freebsd-current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4CA1416A420; Tue, 31 Jan 2006 15:18:25 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9FFF143D46; Tue, 31 Jan 2006 15:18:23 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 5BFDF50A7F; Tue, 31 Jan 2006 16:18:22 +0100 (CET) Received: from localhost (ana50.internetdsl.tpnet.pl [83.17.82.50]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id A41E350A3E; Tue, 31 Jan 2006 16:18:15 +0100 (CET) Date: Tue, 31 Jan 2006 16:18:09 +0100 From: Pawel Jakub Dawidek To: freebsd-current@FreeBSD.org Message-ID: <20060131151809.GE83051@garage.freebsd.pl> References: <200601311109.k0VB9MRq025366@repoman.freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Pql/uPZNXIm1JCle" Content-Disposition: inline In-Reply-To: <200601311109.k0VB9MRq025366@repoman.freebsd.org> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r535 (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-5.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 Cc: kris@FreeBSD.org Subject: Re: cvs commit: src/sys/kern kern_malloc.c src/share/man/man9 Makefile redzone.9 src/sys/vm redzone.c redzone.h src/sys/conf NOTES files options X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2006 15:18:25 -0000 --Pql/uPZNXIm1JCle Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 31, 2006 at 11:09:22AM +0000, Pawel Jakub Dawidek wrote: +> pjd 2006-01-31 11:09:22 UTC +>=20 +> FreeBSD src repository +>=20 +> Modified files: +> sys/kern kern_malloc.c=20 +> share/man/man9 Makefile=20 +> sys/conf NOTES files options=20 +> Added files: +> share/man/man9 redzone.9=20 +> sys/vm redzone.c redzone.h=20 +> Log: +> Add buffer corruption protection (RedZone) for kernel's malloc(9). +> It detects both: buffer underflows and buffer overflows bugs at runtime +> (on free(9) and realloc(9)) and prints backtraces from where memory was +> allocated and from where it was freed. +> =20 +> Tested by: kris As I noted above, Kris did some tests with redzone(9) enabled and haven't found any issues. We may want to turn it on in HEAD by default for some time, so more code can be tested. What do you think? Kris, is there visible overhead with redzone(9)? --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --Pql/uPZNXIm1JCle Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFD33+xForvXbEpPzQRAuRdAJ9pSR23+em6qMnj8oYU2vLAUi69qwCfYmX5 18jwSuhBBycyRDTh7buzXw0= =udjd -----END PGP SIGNATURE----- --Pql/uPZNXIm1JCle--