Module Name:    src
Committed By:   martin
Date:           Sun Aug  4 11:08:51 UTC 2019

Modified Files:
        src/sys/uvm [netbsd-8]: uvm_map.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.351.2.2 -r1.351.2.3 src/sys/uvm/uvm_map.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/uvm/uvm_map.c
diff -u src/sys/uvm/uvm_map.c:1.351.2.2 src/sys/uvm/uvm_map.c:1.351.2.3
--- src/sys/uvm/uvm_map.c:1.351.2.2	Thu Nov  2 21:29:53 2017
+++ src/sys/uvm/uvm_map.c	Sun Aug  4 11:08:51 2019
@@ -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 @@ fill_vmentry(struct lwp *l, struct proc 
 	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) | \

Reply via email to