Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm Use UVM_PROT_RW instead of UVM_PROT_ALL. This doesn'...
details: https://anonhg.NetBSD.org/src/rev/bd377f35a2d5
branches: trunk
changeset: 359422:bd377f35a2d5
user: maxv <maxv%NetBSD.org@localhost>
date: Fri Feb 09 09:07:13 2018 +0000
description:
Use UVM_PROT_RW instead of UVM_PROT_ALL. This doesn't change anything,
since the protection code is not applied: the pages are manually kentered
as RW.
But fix it anyway, so that "pmap 0" does not say the map is executable.
diffstat:
sys/uvm/uvm_bio.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 88f5ea385646 -r bd377f35a2d5 sys/uvm/uvm_bio.c
--- a/sys/uvm/uvm_bio.c Fri Feb 09 08:58:01 2018 +0000
+++ b/sys/uvm/uvm_bio.c Fri Feb 09 09:07:13 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_bio.c,v 1.91 2017/10/28 00:37:13 pgoyette Exp $ */
+/* $NetBSD: uvm_bio.c,v 1.92 2018/02/09 09:07:13 maxv Exp $ */
/*
* Copyright (c) 1998 Chuck Silvers.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_bio.c,v 1.91 2017/10/28 00:37:13 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_bio.c,v 1.92 2018/02/09 09:07:13 maxv Exp $");
#include "opt_uvmhist.h"
#include "opt_ubc.h"
@@ -205,7 +205,7 @@
if (uvm_map(kernel_map, (vaddr_t *)&ubc_object.kva,
ubc_nwins << ubc_winshift, &ubc_object.uobj, 0, (vsize_t)va,
- UVM_MAPFLAG(UVM_PROT_ALL, UVM_PROT_ALL, UVM_INH_NONE,
+ UVM_MAPFLAG(UVM_PROT_RW, UVM_PROT_RW, UVM_INH_NONE,
UVM_ADV_RANDOM, UVM_FLAG_NOMERGE)) != 0) {
panic("ubc_init: failed to map ubc_object");
}
Home |
Main Index |
Thread Index |
Old Index