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 Fix KASAN support by calling kasan_...
details: https://anonhg.NetBSD.org/src/rev/02205247ba43
branches: trunk
changeset: 466131:02205247ba43
user: skrll <skrll%NetBSD.org@localhost>
date: Fri Dec 13 08:11:12 2019 +0000
description:
Fix KASAN support by calling kasan_shadow_map in pmap_growkernel
diffstat:
sys/arch/aarch64/aarch64/pmap.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 1aace3d6f35f -r 02205247ba43 sys/arch/aarch64/aarch64/pmap.c
--- a/sys/arch/aarch64/aarch64/pmap.c Fri Dec 13 08:02:53 2019 +0000
+++ b/sys/arch/aarch64/aarch64/pmap.c Fri Dec 13 08:11:12 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.51 2019/12/10 18:08:32 ad Exp $ */
+/* $NetBSD: pmap.c,v 1.52 2019/12/13 08:11:12 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.51 2019/12/10 18:08:32 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.52 2019/12/13 08:11:12 skrll Exp $");
#include "opt_arm_debug.h"
#include "opt_ddb.h"
@@ -699,6 +699,9 @@
UVMHIST_LOG(pmaphist, "maxkvaddr=%llx, pmap_maxkvaddr=%llx",
maxkvaddr, pmap_maxkvaddr, 0, 0);
+ kasan_shadow_map((void *)pmap_maxkvaddr,
+ (size_t)(maxkvaddr - pmap_maxkvaddr));
+
pmap_maxkvaddr = maxkvaddr;
return maxkvaddr;
Home |
Main Index |
Thread Index |
Old Index