Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch Enable SSP (Stack Smash Protection) in x86 kernels ...



details:   https://anonhg.NetBSD.org/src/rev/f0bfc161b04c
branches:  trunk
changeset: 749297:f0bfc161b04c
user:      tron <tron%NetBSD.org@localhost>
date:      Wed Nov 25 17:08:08 2009 +0000

description:
Enable SSP (Stack Smash Protection) in x86 kernels by default (except
in i386 *TINY kernels). The NetBSD/i386 "ALL" kernel is unconditionally
compiled with SSP enabled.

Change approved by the core team.

diffstat:

 sys/arch/amd64/conf/Makefile.amd64  |  4 +++-
 sys/arch/amd64/include/Makefile.inc |  5 +++--
 sys/arch/i386/conf/GENERIC_PS2TINY  |  3 ++-
 sys/arch/i386/conf/GENERIC_TINY     |  3 ++-
 sys/arch/i386/conf/INSTALL_TINY     |  3 ++-
 sys/arch/i386/conf/Makefile.i386    |  4 +++-
 sys/arch/i386/include/Makefile.inc  |  3 +++
 sys/arch/xen/conf/Makefile.xen      |  4 +++-
 8 files changed, 21 insertions(+), 8 deletions(-)

diffs (122 lines):

diff -r 03c938532d08 -r f0bfc161b04c sys/arch/amd64/conf/Makefile.amd64
--- a/sys/arch/amd64/conf/Makefile.amd64        Wed Nov 25 16:17:11 2009 +0000
+++ b/sys/arch/amd64/conf/Makefile.amd64        Wed Nov 25 17:08:08 2009 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.amd64,v 1.28 2009/10/02 10:14:20 skrll Exp $
+#      $NetBSD: Makefile.amd64,v 1.29 2009/11/25 17:08:08 tron Exp $
 
 # Makefile for NetBSD
 #
@@ -22,6 +22,8 @@
 NEED_OWN_INSTALL_TARGET?=no
 .include <bsd.own.mk>
 
+USE_SSP?=      yes
+
 ##
 ## (1) port identification
 ##
diff -r 03c938532d08 -r f0bfc161b04c sys/arch/amd64/include/Makefile.inc
--- a/sys/arch/amd64/include/Makefile.inc       Wed Nov 25 16:17:11 2009 +0000
+++ b/sys/arch/amd64/include/Makefile.inc       Wed Nov 25 17:08:08 2009 +0000
@@ -1,3 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.1 2009/11/11 23:53:38 haad Exp $
+# $NetBSD: Makefile.inc,v 1.2 2009/11/25 17:08:08 tron Exp $
 
-CFLAGS+=-mno-red-zone
+CFLAGS+=       -mno-red-zone
+USE_SSP?=      yes
diff -r 03c938532d08 -r f0bfc161b04c sys/arch/i386/conf/GENERIC_PS2TINY
--- a/sys/arch/i386/conf/GENERIC_PS2TINY        Wed Nov 25 16:17:11 2009 +0000
+++ b/sys/arch/i386/conf/GENERIC_PS2TINY        Wed Nov 25 17:08:08 2009 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: GENERIC_PS2TINY,v 1.55 2008/11/24 11:41:12 ad Exp $
+#      $NetBSD: GENERIC_PS2TINY,v 1.56 2009/11/25 17:08:08 tron Exp $
 #
 #      GENERIC-style kernel config for IBM PS/2 with MCA bus. It only contains
 #      IBM PS/2 related stuff and has been generally trimmed down somewhat,
@@ -67,6 +67,7 @@
 #options       KGDB_DEVNAME="\"com\"",KGDB_DEVADDR=0x3f8,KGDB_DEVRATE=9600
 #makeoptions   DEBUG="-g"      # compile full symbol table
 makeoptions    COPTS="-Os"     # generates smaller code than -O2, -O1
+makeoptions    USE_SSP="no"
 
 # File systems
 file-system    FFS             # UFS
diff -r 03c938532d08 -r f0bfc161b04c sys/arch/i386/conf/GENERIC_TINY
--- a/sys/arch/i386/conf/GENERIC_TINY   Wed Nov 25 16:17:11 2009 +0000
+++ b/sys/arch/i386/conf/GENERIC_TINY   Wed Nov 25 17:08:08 2009 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: GENERIC_TINY,v 1.118 2009/03/06 20:31:49 joerg Exp $
+#      $NetBSD: GENERIC_TINY,v 1.119 2009/11/25 17:08:08 tron Exp $
 #
 #      GENERIC_TINY -- suitable default for 4M machines
 #                      No EISA, PCI, or SCSI.
@@ -9,6 +9,7 @@
 #options       INCLUDE_CONFIG_FILE     # embed config file in kernel binary
 
 makeoptions    COPTS="-Os"
+makeoptions    USE_SSP="no"
 
 maxusers       8               # estimated number of users
 
diff -r 03c938532d08 -r f0bfc161b04c sys/arch/i386/conf/INSTALL_TINY
--- a/sys/arch/i386/conf/INSTALL_TINY   Wed Nov 25 16:17:11 2009 +0000
+++ b/sys/arch/i386/conf/INSTALL_TINY   Wed Nov 25 17:08:08 2009 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: INSTALL_TINY,v 1.124 2009/03/06 20:31:49 joerg Exp $
+#      $NetBSD: INSTALL_TINY,v 1.125 2009/11/25 17:08:08 tron Exp $
 #
 #      This kernel should be derived from INSTALL (which is derived
 #      from GENERIC) with some features commented out.
@@ -13,6 +13,7 @@
 #options       INCLUDE_CONFIG_FILE     # embed config file in kernel binary
 
 makeoptions    COPTS="-Os"             # Optimise for space. Implies -O2
+makeoptions    USE_SSP="no"
 
 # Enable the hooks used for initializing the root memory-disk.
 options        MEMORY_DISK_HOOKS
diff -r 03c938532d08 -r f0bfc161b04c sys/arch/i386/conf/Makefile.i386
--- a/sys/arch/i386/conf/Makefile.i386  Wed Nov 25 16:17:11 2009 +0000
+++ b/sys/arch/i386/conf/Makefile.i386  Wed Nov 25 17:08:08 2009 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.i386,v 1.165 2009/03/15 05:45:32 tsutsui Exp $
+#      $NetBSD: Makefile.i386,v 1.166 2009/11/25 17:08:08 tron Exp $
 
 # Makefile for NetBSD
 #
@@ -22,6 +22,8 @@
 NEED_OWN_INSTALL_TARGET?=no
 .include <bsd.own.mk>
 
+USE_SSP?=      yes
+
 ##
 ## (1) port identification
 ##
diff -r 03c938532d08 -r f0bfc161b04c sys/arch/i386/include/Makefile.inc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/i386/include/Makefile.inc        Wed Nov 25 17:08:08 2009 +0000
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile.inc,v 1.1 2009/11/25 17:08:09 tron Exp $
+
+USE_SSP?=      yes
diff -r 03c938532d08 -r f0bfc161b04c sys/arch/xen/conf/Makefile.xen
--- a/sys/arch/xen/conf/Makefile.xen    Wed Nov 25 16:17:11 2009 +0000
+++ b/sys/arch/xen/conf/Makefile.xen    Wed Nov 25 17:08:08 2009 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.xen,v 1.28 2008/12/11 05:27:42 alc Exp $
+#      $NetBSD: Makefile.xen,v 1.29 2009/11/25 17:08:09 tron Exp $
 #      NetBSD: Makefile.i386,v 1.132 2003/07/05 16:56:10 simonb Exp 
 
 # Makefile for NetBSD
@@ -23,6 +23,8 @@
 NEED_OWN_INSTALL_TARGET?=no
 .include <bsd.own.mk>
 
+USE_SSP?=      yes
+
 ##
 ## (1) port identification
 ##



Home | Main Index | Thread Index | Old Index