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
This commit is contained in:
Konstantin Belousov 2014-07-10 11:20:24 +00:00
parent 4b829b3ee0
commit 479fcb4e32

View File

@ -2173,6 +2173,7 @@ kern_proc_vmmap_out(struct proc *p, struct sbuf *sb)
if (entry->eflags & MAP_ENTRY_IS_SUB_MAP)
continue;
addr = entry->end;
bzero(kve, sizeof(*kve));
obj = entry->object.vm_object;
if (obj != NULL) {