aboutsummaryrefslogtreecommitdiff
path: root/sys/conf/options
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <pjd@FreeBSD.org>2006-01-31 11:09:21 +0000
committerPawel Jakub Dawidek <pjd@FreeBSD.org>2006-01-31 11:09:21 +0000
commit847a2a17167996abbc61d81db3de86b92cab3fde (patch)
tree5578d06f9b3e97650d2847a2198d21f29bb26546 /sys/conf/options
parentf0107b2c5d12b257e36dc13cf6acb11dc925dceb (diff)
downloadsrc-847a2a17167996abbc61d81db3de86b92cab3fde.tar.gz
src-847a2a17167996abbc61d81db3de86b92cab3fde.zip
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. Tested by: kris
Notes
Notes: svn path=/head/; revision=155086
Diffstat (limited to 'sys/conf/options')
-rw-r--r--sys/conf/options3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/conf/options b/sys/conf/options
index d5c9df64f3d3..84aa1e45c934 100644
--- a/sys/conf/options
+++ b/sys/conf/options
@@ -530,6 +530,9 @@ PQ_NOOPT opt_vmpage.h
# The MemGuard replacement allocator used for tamper-after-free detection
DEBUG_MEMGUARD opt_vm.h
+# The RedZone malloc(9) protection
+DEBUG_REDZONE opt_vm.h
+
# Standard SMP options
SMP opt_global.h