Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/aarch64/include Mark KASAN shadow pages as LX_BLKPA...



details:   https://anonhg.NetBSD.org/src/rev/46df3e4fb539
branches:  trunk
changeset: 957384:46df3e4fb539
user:      skrll <skrll%NetBSD.org@localhost>
date:      Thu Nov 26 08:25:01 2020 +0000

description:
Mark KASAN shadow pages as LX_BLKPAG_ATTR_NORMAL_WB.  NFC as this is zero,
but someone might change it one day.

diffstat:

 sys/arch/aarch64/include/asan.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r e452dd81a9d3 -r 46df3e4fb539 sys/arch/aarch64/include/asan.h
--- a/sys/arch/aarch64/include/asan.h   Thu Nov 26 02:06:01 2020 +0000
+++ b/sys/arch/aarch64/include/asan.h   Thu Nov 26 08:25:01 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: asan.h,v 1.14 2020/11/10 07:51:19 skrll Exp $  */
+/*     $NetBSD: asan.h,v 1.15 2020/11/26 08:25:01 skrll Exp $  */
 
 /*
  * Copyright (c) 2018-2020 Maxime Villard, m00nbsd.net
@@ -187,7 +187,7 @@
                pa = __md_palloc();
                atomic_swap_64(&l3[idx], pa | L3_PAGE | LX_BLKPAG_UXN |
                    LX_BLKPAG_PXN | LX_BLKPAG_AF | LX_BLKPAG_SH_IS |
-                   LX_BLKPAG_AP_RW);
+                   LX_BLKPAG_AP_RW | LX_BLKPAG_ATTR_NORMAL_WB);
                aarch64_tlbi_by_va(va);
        }
 }



Home | Main Index | Thread Index | Old Index