Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Expose KASAN_SHADOW_SCALE_SHIFT. OK'ed by maxv.
details: https://anonhg.NetBSD.org/src/rev/26c0d1bf0748
branches: trunk
changeset: 1011769:26c0d1bf0748
user: skrll <skrll%NetBSD.org@localhost>
date: Fri Jul 10 07:48:27 2020 +0000
description:
Expose KASAN_SHADOW_SCALE_SHIFT. OK'ed by maxv.
diffstat:
sys/kern/subr_asan.c | 5 ++---
sys/sys/asan.h | 5 ++++-
2 files changed, 6 insertions(+), 4 deletions(-)
diffs (45 lines):
diff -r 42bc13c34d9d -r 26c0d1bf0748 sys/kern/subr_asan.c
--- a/sys/kern/subr_asan.c Fri Jul 10 07:31:33 2020 +0000
+++ b/sys/kern/subr_asan.c Fri Jul 10 07:48:27 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_asan.c,v 1.23 2020/07/03 08:19:20 skrll Exp $ */
+/* $NetBSD: subr_asan.c,v 1.24 2020/07/10 07:48:27 skrll Exp $ */
/*
* Copyright (c) 2018-2020 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_asan.c,v 1.23 2020/07/03 08:19:20 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_asan.c,v 1.24 2020/07/10 07:48:27 skrll Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -50,7 +50,6 @@
#endif
/* ASAN constants. Part of the compiler ABI. */
-#define KASAN_SHADOW_SCALE_SHIFT 3
#define KASAN_SHADOW_SCALE_SIZE (1UL << KASAN_SHADOW_SCALE_SHIFT)
#define KASAN_SHADOW_MASK (KASAN_SHADOW_SCALE_SIZE - 1)
#define KASAN_ALLOCA_SCALE_SIZE 32
diff -r 42bc13c34d9d -r 26c0d1bf0748 sys/sys/asan.h
--- a/sys/sys/asan.h Fri Jul 10 07:31:33 2020 +0000
+++ b/sys/sys/asan.h Fri Jul 10 07:48:27 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: asan.h,v 1.13 2020/02/08 09:05:08 maxv Exp $ */
+/* $NetBSD: asan.h,v 1.14 2020/07/10 07:48:28 skrll Exp $ */
/*
* Copyright (c) 2018-2019 The NetBSD Foundation, Inc.
@@ -40,6 +40,9 @@
#include <sys/types.h>
#include <sys/bus.h>
+/* ASAN constants. Part of the compiler ABI. */
+#define KASAN_SHADOW_SCALE_SHIFT 3
+
/* Stack redzone values. Part of the compiler ABI. */
#define KASAN_STACK_LEFT 0xF1
#define KASAN_STACK_MID 0xF2
Home |
Main Index |
Thread Index |
Old Index