Source-Changes-HG archive

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

[src/trunk]: src/sys/sys Fix __nomsan: missing opt_kmsan.h, and the attribute...



details:   https://anonhg.NetBSD.org/src/rev/c85730a90573
branches:  trunk
changeset: 1005449:c85730a90573
user:      maxv <maxv%NetBSD.org@localhost>
date:      Sun Dec 08 11:48:15 2019 +0000

description:
Fix __nomsan: missing opt_kmsan.h, and the attribute should be
kernel-memory.

diffstat:

 sys/sys/cdefs.h |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r b76b98d04da0 -r c85730a90573 sys/sys/cdefs.h
--- a/sys/sys/cdefs.h   Sun Dec 08 10:57:17 2019 +0000
+++ b/sys/sys/cdefs.h   Sun Dec 08 11:48:15 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cdefs.h,v 1.149 2019/11/14 16:23:53 maxv Exp $ */
+/*     $NetBSD: cdefs.h,v 1.150 2019/12/08 11:48:15 maxv Exp $ */
 
 /* * Copyright (c) 1991, 1993
  *     The Regents of the University of California.  All rights reserved.
@@ -40,6 +40,7 @@
 #include "opt_diagnostic.h"
 #include "opt_kasan.h"
 #include "opt_kcsan.h"
+#include "opt_kmsan.h"
 #endif
 
 /*
@@ -349,7 +350,7 @@
 #endif
 
 #if defined(__clang__) && defined(KMSAN)
-#define        __nomsan        __attribute__((no_sanitize("memory")))
+#define        __nomsan        __attribute__((no_sanitize("kernel-memory")))
 #else
 #define        __nomsan        /* nothing */
 #endif



Home | Main Index | Thread Index | Old Index