Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/aarch64/aarch64 G/C kasan_shadow_map call in pmap_e...



details:   https://anonhg.NetBSD.org/src/rev/a7930c633ef1
branches:  trunk
changeset: 1005747:a7930c633ef1
user:      skrll <skrll%NetBSD.org@localhost>
date:      Thu Dec 19 07:44:56 2019 +0000

description:
G/C kasan_shadow_map call in pmap_enter

pmap_growkernel calls kasan_shadow_map for KVA

diffstat:

 sys/arch/aarch64/aarch64/pmap.c |  8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diffs (29 lines):

diff -r 00ad5ad1e33d -r a7930c633ef1 sys/arch/aarch64/aarch64/pmap.c
--- a/sys/arch/aarch64/aarch64/pmap.c   Thu Dec 19 07:14:07 2019 +0000
+++ b/sys/arch/aarch64/aarch64/pmap.c   Thu Dec 19 07:44:56 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.55 2019/12/18 11:10:24 ryo Exp $    */
+/*     $NetBSD: pmap.c,v 1.56 2019/12/19 07:44:56 skrll Exp $  */
 
 /*
  * Copyright (c) 2017 Ryo Shimizu <ryo%nerv.org@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.55 2019/12/18 11:10:24 ryo Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.56 2019/12/19 07:44:56 skrll Exp $");
 
 #include "opt_arm_debug.h"
 #include "opt_ddb.h"
@@ -1681,10 +1681,6 @@
        opte = atomic_swap_64(ptep, 0);
        need_sync_icache = (prot & VM_PROT_EXECUTE);
 
-       if (!user) {
-               kasan_shadow_map((void *)va, PAGE_SIZE);
-       }
-
        /* for lock ordering for pg and opg */
        pgs[0] = pg;
        pgs[1] = NULL;



Home | Main Index | Thread Index | Old Index