Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-7]: src/sys/arch/x86/x86 Apply patch (requested by maxv in ticket...
details: https://anonhg.NetBSD.org/src/rev/4686ff2de584
branches: netbsd-7
changeset: 800376:4686ff2de584
user: snj <snj%NetBSD.org@localhost>
date: Wed Jan 03 20:17:40 2018 +0000
description:
Apply patch (requested by maxv in ticket #1531):
amd64: Make the direct map non executable.
diffstat:
sys/arch/x86/x86/pmap.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 3c7bdba63b1b -r 4686ff2de584 sys/arch/x86/x86/pmap.c
--- a/sys/arch/x86/x86/pmap.c Wed Jan 03 20:06:06 2018 +0000
+++ b/sys/arch/x86/x86/pmap.c Wed Jan 03 20:17:40 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.183.2.6 2017/03/06 03:27:19 snj Exp $ */
+/* $NetBSD: pmap.c,v 1.183.2.7 2018/01/03 20:17:40 snj Exp $ */
/*-
* Copyright (c) 2008, 2010 The NetBSD Foundation, Inc.
@@ -171,7 +171,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.183.2.6 2017/03/06 03:27:19 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.183.2.7 2018/01/03 20:17:40 snj Exp $");
#include "opt_user_ldt.h"
#include "opt_lockdebug.h"
@@ -1523,7 +1523,7 @@
}
}
- kpm->pm_pdir[PDIR_SLOT_DIRECT] = dmpdp | PG_KW | PG_V | PG_U;
+ kpm->pm_pdir[PDIR_SLOT_DIRECT] = dmpdp | PG_KW | PG_V | PG_U | pg_nx;
tlbflush();
Home |
Main Index |
Thread Index |
Old Index