[Glibc-bsd-commits] r5936 - in trunk/kfreebsd-10/debian: . patches
stevenc-guest at alioth.debian.org
stevenc-guest at alioth.debian.org
Fri Mar 11 13:33:21 UTC 2016
Author: stevenc-guest
Date: 2016-03-11 13:33:21 +0000 (Fri, 11 Mar 2016)
New Revision: 5936
Modified:
trunk/kfreebsd-10/debian/changelog
trunk/kfreebsd-10/debian/patches/999_config.diff
Log:
Enable redzone(9) heap smashing detection for debug builds only.
Modified: trunk/kfreebsd-10/debian/changelog
===================================================================
--- trunk/kfreebsd-10/debian/changelog 2016-03-11 13:31:39 UTC (rev 5935)
+++ trunk/kfreebsd-10/debian/changelog 2016-03-11 13:33:21 UTC (rev 5936)
@@ -5,6 +5,7 @@
new MK knobs from 10.3 are needed.
* Re-enable debugging options:
- 999_config.diff
+ * Enable redzone(9) heap smashing detection for debug builds only.
* Enable Stack-Smashing Protection (disable it only when building the
aic7xxx firmware toolchain).
Modified: trunk/kfreebsd-10/debian/patches/999_config.diff
===================================================================
--- trunk/kfreebsd-10/debian/patches/999_config.diff 2016-03-11 13:31:39 UTC (rev 5935)
+++ trunk/kfreebsd-10/debian/patches/999_config.diff 2016-03-11 13:33:21 UTC (rev 5936)
@@ -103,7 +103,7 @@
+options IPSEC_NAT_T #NAT-T support, UDP encap of ESP
--- /dev/null
+++ b/sys/conf/DEBIAN_DEBUG
-@@ -0,0 +1,22 @@
+@@ -0,0 +1,28 @@
+makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols
+
+## Not yet
@@ -124,6 +124,12 @@
+options WITNESS_SKIPSPIN # Don't run witness on spinlocks for speed
+options MALLOC_DEBUG_MAXZONES # Separate malloc(9) zones
+
++#
++# DEBUG_REDZONE enables buffer underflows and buffer overflows detection for
++# malloc(9).
++#
++options DEBUG_REDZONE
++
+# Disable minimum debugger support
+nooptions KDB_TRACE # Print a stack trace for a panic.
--- /dev/null
More information about the Glibc-bsd-commits
mailing list