Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/include/arm32 Cover the full kernel address ran...



details:   https://anonhg.NetBSD.org/src/rev/b03d80ffc29f
branches:  trunk
changeset: 975449:b03d80ffc29f
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Aug 29 06:49:53 2020 +0000

description:
Cover the full kernel address range in KASAN

diffstat:

 sys/arch/arm/include/arm32/vmparam.h |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 55e7325d70f4 -r b03d80ffc29f sys/arch/arm/include/arm32/vmparam.h
--- a/sys/arch/arm/include/arm32/vmparam.h      Sat Aug 29 05:46:34 2020 +0000
+++ b/sys/arch/arm/include/arm32/vmparam.h      Sat Aug 29 06:49:53 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.54 2020/07/11 06:46:19 skrll Exp $       */
+/*     $NetBSD: vmparam.h,v 1.55 2020/08/29 06:49:53 skrll Exp $       */
 
 /*
  * Copyright (c) 2001, 2002 Wasabi Systems, Inc.
@@ -127,7 +127,7 @@
 
 #ifdef KASAN
 #define VM_KERNEL_KASAN_BASE   0xc0000000
-#define VM_KERNEL_KASAN_SIZE   (VM_KERNEL_VM_SIZE >> KASAN_SHADOW_SCALE_SHIFT)
+#define VM_KERNEL_KASAN_SIZE   (VM_KERNEL_ADDR_SIZE >> KASAN_SHADOW_SCALE_SHIFT)
 #define VM_KERNEL_KASAN_END    (VM_KERNEL_KASAN_BASE + VM_KERNEL_KASAN_SIZE)
 #define VM_KERNEL_VM_END       VM_KERNEL_KASAN_BASE
 #else
@@ -143,6 +143,7 @@
 #define VM_KERNEL_VM_BASE      0x90000000
 #endif
 
+#define VM_KERNEL_ADDR_SIZE    (VM_KERNEL_VM_END - KERNEL_BASE)
 #define VM_KERNEL_VM_SIZE      (VM_KERNEL_VM_END - VM_KERNEL_VM_BASE)
 
 #define VM_KERNEL_IO_ADDRESS   0xf0000000



Home | Main Index | Thread Index | Old Index