Author: kib
Date: Thu Jul 10 11:20:24 2014
New Revision: 268490
URL: http://svnweb.freebsd.org/changeset/base/268490

Log:
  Unconditionally initialize addr to handle the case of changed map
  timestamp while the map is unlocked.
  
  Reported by:  bz
  Sponsored by: The FreeBSD Foundation
  MFC after:    6 days

Modified:
  head/sys/kern/kern_proc.c

Modified: head/sys/kern/kern_proc.c
==============================================================================
--- head/sys/kern/kern_proc.c   Thu Jul 10 10:32:02 2014        (r268489)
+++ head/sys/kern/kern_proc.c   Thu Jul 10 11:20:24 2014        (r268490)
@@ -2173,6 +2173,7 @@ kern_proc_vmmap_out(struct proc *p, stru
                if (entry->eflags & MAP_ENTRY_IS_SUB_MAP)
                        continue;
 
+               addr = entry->end;
                bzero(kve, sizeof(*kve));
                obj = entry->object.vm_object;
                if (obj != NULL) {
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to