Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/xen/x86 Make the I/O area non-executable on Xen.
details: https://anonhg.NetBSD.org/src/rev/e6392fccf8a8
branches: trunk
changeset: 347053:e6392fccf8a8
user: maxv <maxv%NetBSD.org@localhost>
date: Thu Aug 11 15:35:10 2016 +0000
description:
Make the I/O area non-executable on Xen.
diffstat:
sys/arch/xen/x86/x86_xpmap.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 4843d3a36609 -r e6392fccf8a8 sys/arch/xen/x86/x86_xpmap.c
--- a/sys/arch/xen/x86/x86_xpmap.c Thu Aug 11 15:16:54 2016 +0000
+++ b/sys/arch/xen/x86/x86_xpmap.c Thu Aug 11 15:35:10 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: x86_xpmap.c,v 1.58 2016/08/03 11:51:18 maxv Exp $ */
+/* $NetBSD: x86_xpmap.c,v 1.59 2016/08/11 15:35:10 maxv Exp $ */
/*
* Copyright (c) 2006 Mathieu Ropert <mro%adviseo.fr@localhost>
@@ -69,7 +69,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: x86_xpmap.c,v 1.58 2016/08/03 11:51:18 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: x86_xpmap.c,v 1.59 2016/08/11 15:35:10 maxv Exp $");
#include "opt_xen.h"
#include "opt_ddb.h"
@@ -913,6 +913,7 @@
page < (vaddr_t)atdevbase + IOM_SIZE) {
pte[pl1_pi(page)] =
IOM_BEGIN + (page - (vaddr_t)atdevbase);
+ pte[pl1_pi(page)] |= pg_nx;
}
#endif
Home |
Main Index |
Thread Index |
Old Index