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 Map the remaining pages as non-executable. ...
details: https://anonhg.NetBSD.org/src/rev/1385c841a30a
branches: trunk
changeset: 348651:1385c841a30a
user: maxv <maxv%NetBSD.org@localhost>
date: Tue Nov 01 12:00:21 2016 +0000
description:
Map the remaining pages as non-executable. Only text should have X.
diffstat:
sys/arch/xen/x86/x86_xpmap.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 70bc299dba54 -r 1385c841a30a sys/arch/xen/x86/x86_xpmap.c
--- a/sys/arch/xen/x86/x86_xpmap.c Tue Nov 01 10:32:57 2016 +0000
+++ b/sys/arch/xen/x86/x86_xpmap.c Tue Nov 01 12:00:21 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: x86_xpmap.c,v 1.61 2016/08/25 17:03:57 bouyer Exp $ */
+/* $NetBSD: x86_xpmap.c,v 1.62 2016/11/01 12:00:21 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.61 2016/08/25 17:03:57 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: x86_xpmap.c,v 1.62 2016/11/01 12:00:21 maxv Exp $");
#include "opt_xen.h"
#include "opt_ddb.h"
@@ -950,8 +950,8 @@
/* Map the kernel data+bss RW. */
pte[pl1_pi(page)] |= PG_RW | pg_nx;
} else {
- /* map page RW */
- pte[pl1_pi(page)] |= PG_RW;
+ /* Map the page RW. */
+ pte[pl1_pi(page)] |= PG_RW | pg_nx;
}
if ((page >= old_pgd && page < old_pgd + (old_count * PAGE_SIZE))
Home |
Main Index |
Thread Index |
Old Index