Module Name: src
Committed By: kamil
Date: Sun Feb 24 20:56:28 UTC 2019
Modified Files:
src/sys/arch/i386/conf: ALL
Log Message:
Enable kUBSan and KCOV in NetBSD/i386 kernel=ALL
To generate a diff of this commit:
cvs rdiff -u -r1.463 -r1.464 src/sys/arch/i386/conf/ALL
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/i386/conf/ALL
diff -u src/sys/arch/i386/conf/ALL:1.463 src/sys/arch/i386/conf/ALL:1.464
--- src/sys/arch/i386/conf/ALL:1.463 Wed Feb 6 11:58:31 2019
+++ src/sys/arch/i386/conf/ALL Sun Feb 24 20:56:27 2019
@@ -1,4 +1,4 @@
-# $NetBSD: ALL,v 1.463 2019/02/06 11:58:31 rin Exp $
+# $NetBSD: ALL,v 1.464 2019/02/24 20:56:27 kamil Exp $
# From NetBSD: GENERIC,v 1.787 2006/10/01 18:37:54 bouyer Exp
#
# ALL machine description file
@@ -17,7 +17,7 @@ include "arch/i386/conf/std.i386"
options INCLUDE_CONFIG_FILE # embed config file in kernel binary
-#ident "ALL-$Revision: 1.463 $"
+#ident "ALL-$Revision: 1.464 $"
maxusers 64 # estimated number of users
@@ -110,6 +110,7 @@ options BUFQ_PRIOCSCAN
# Diagnostic/debugging support options
options DIAGNOSTIC # inexpensive kernel consistency checks
options DEBUG # expensive debugging checks/support
+options KUBSAN # Kernel Undefined Behavior Sanitizer (kUBSan)
options LOCKDEBUG # expensive locking checks/support
options DDB # in-kernel debugger
options DDB_ONPANIC=1 # see also sysctl(7): `ddb.onpanic'
@@ -118,6 +119,7 @@ options DDB_VERBOSE_HELP
options KGDB # remote debugger
options KGDB_DEVNAME="\"com\"",KGDB_DEVADDR=0x3f8,KGDB_DEVRATE=9600
makeoptions DEBUG="-g" # compile full symbol table
+options KUBSAN # Kernel Undefined Behavior Sanitizer (kUBSan)
options SYSCALL_STATS # per syscall counts
options SYSCALL_TIMES # per syscall times
options SYSCALL_TIMES_HASCOUNTER # use 'broken' rdtsc (soekris)
@@ -125,6 +127,10 @@ options KDTRACE_HOOKS # kernel DTrace h
options UVMHIST # kernhist for uvm subsystem
options BIOHIST # kernhist for buff I/O
+# Kernel Code Coverage Driver.
+makeoptions KCOV=1
+options KCOV
+
# Compatibility options
include "conf/compat_netbsd09.config"
options COMPAT_NOMID # NetBSD 0.8, 386BSD, and BSDI