From owner-cvs-src-old@FreeBSD.ORG Wed Aug 11 22:11:56 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 082581065674 for ; Wed, 11 Aug 2010 22:11:56 +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 E81A38FC08 for ; Wed, 11 Aug 2010 22:11:55 +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 o7BMBtWF026068 for ; Wed, 11 Aug 2010 22:11:55 GMT (envelope-from mdf@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id o7BMBt94026067 for cvs-src-old@freebsd.org; Wed, 11 Aug 2010 22:11:55 GMT (envelope-from mdf@repoman.freebsd.org) Message-Id: <201008112211.o7BMBt94026067@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, 11 Aug 2010 22:10:37 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/share/man/man9 memguard.9 src/sys/kern kern_malloc.c src/sys/vm memguard.c memguard.h vm_extern.h vm_kern.c 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, 11 Aug 2010 22:11:56 -0000 mdf 2010-08-11 22:10:37 UTC FreeBSD src repository Modified files: share/man/man9 memguard.9 sys/kern kern_malloc.c sys/vm memguard.c memguard.h vm_extern.h vm_kern.c Log: SVN rev 211194 on 2010-08-11 22:10:37Z by mdf Rework memguard(9) to reserve significantly more KVA to detect use-after-free over a longer time. Also release the backing pages of a guarded allocation at free(9) time to reduce the overhead of using memguard(9). Allow setting and varying the malloc type at run-time. Add knobs to allow: - randomly guarding memory - adding un-backed KVA guard pages to detect underflow and overflow - a lower limit on the size of allocations that are guarded Reviewed by: alc Reviewed by: brueffer, Ulrich Spörlein (man page) Silence from: -arch Approved by: zml (mentor) MFC after: 1 month Revision Changes Path 1.6 +87 -31 src/share/man/man9/memguard.9 1.175 +21 -18 src/sys/kern/kern_malloc.c 1.9 +288 -256 src/sys/vm/memguard.c 1.5 +16 -5 src/sys/vm/memguard.h 1.95 +1 -0 src/sys/vm/vm_extern.h 1.145 +27 -8 src/sys/vm/vm_kern.c