Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-8]: src/sys/uvm Pull up following revision(s) (requested by maxv ...
details: https://anonhg.NetBSD.org/src/rev/e4b86427aad3
branches: netbsd-8
changeset: 453747:e4b86427aad3
user: martin <martin%NetBSD.org@localhost>
date: Sun Aug 04 11:08:51 2019 +0000
description:
Pull up following revision(s) (requested by maxv in ticket #1320):
sys/uvm/uvm_map.c: revision 1.361
Fix info leak: 'map_attrib' is not used in UVM, and contains uninitialized
heap garbage. Return zero. Maybe we should remove the field completely.
diffstat:
sys/uvm/uvm_map.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 59e44e9ede49 -r e4b86427aad3 sys/uvm/uvm_map.c
--- a/sys/uvm/uvm_map.c Sun Aug 04 11:05:29 2019 +0000
+++ b/sys/uvm/uvm_map.c Sun Aug 04 11:08:51 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_map.c,v 1.351.2.2 2017/11/02 21:29:53 snj Exp $ */
+/* $NetBSD: uvm_map.c,v 1.351.2.3 2019/08/04 11:08:51 martin Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_map.c,v 1.351.2.2 2017/11/02 21:29:53 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_map.c,v 1.351.2.3 2019/08/04 11:08:51 martin Exp $");
#include "opt_ddb.h"
#include "opt_pax.h"
@@ -4936,7 +4936,7 @@
kve->kve_offset = e->offset;
kve->kve_wired_count = e->wired_count;
kve->kve_inheritance = e->inheritance;
- kve->kve_attributes = e->map_attrib;
+ kve->kve_attributes = 0; /* e->map_attrib */
kve->kve_advice = e->advice;
#define PROT(p) (((p) & VM_PROT_READ) ? KVME_PROT_READ : 0) | \
(((p) & VM_PROT_WRITE) ? KVME_PROT_WRITE : 0) | \
Home |
Main Index |
Thread Index |
Old Index