Date: Fri, 10 Sep 2010 21:53:47 +0000 (UTC) From: Matthew D Fleming <mdf@FreeBSD.org> To: cvs-src-old@freebsd.org 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 Message-ID: <201009102154.o8ALsfqZ047290@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
mdf 2010-09-10 21:53:47 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) 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 212437 on 2010-09-10 21:53:47Z by mdf MFC r211194, r211229, r212058, r212063: memguard(9) rewrite r211194: 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 r211229: Fix compile. It seemed better to have memguard.c include opt_vm.h in case future compile-time knobs were added that it wants to use. Also add include guards and forward declarations to vm/memguard.h. r212058: The realloc case for memguard(9) will copy too many bytes when reallocating to a smaller-sized allocation. Fix this issue. r212063: Have memguard(9) crash with an easier-to-debug message on double-free. Revision Changes Path 1.5.2.1 +87 -31 src/share/man/man9/memguard.9 1.162.2.6 +17 -21 src/sys/kern/kern_malloc.c 1.6.2.2 +327 -264 src/sys/vm/memguard.c 1.3.2.1 +26 -5 src/sys/vm/memguard.h 1.78.2.5 +1 -0 src/sys/vm/vm_extern.h 1.128.2.5 +27 -8 src/sys/vm/vm_kern.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009102154.o8ALsfqZ047290>