svn commit: r303198 - stable/10/sys/kern
Konstantin Belousov
kib at FreeBSD.org
Fri Jul 22 17:36:42 UTC 2016
Author: kib
Date: Fri Jul 22 17:36:40 2016
New Revision: 303198
URL: https://svnweb.freebsd.org/changeset/base/303198
Log:
MFC r302919:
In ptrace_vm_entry(), do not call vmspace_free() while owning a vm
object lock.
Modified:
stable/10/sys/kern/sys_process.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/kern/sys_process.c
==============================================================================
--- stable/10/sys/kern/sys_process.c Fri Jul 22 17:34:58 2016 (r303197)
+++ stable/10/sys/kern/sys_process.c Fri Jul 22 17:36:40 2016 (r303198)
@@ -389,7 +389,6 @@ ptrace_vm_entry(struct thread *td, struc
} while (0);
vm_map_unlock_read(map);
- vmspace_free(vm);
pve->pve_fsid = VNOVAL;
pve->pve_fileid = VNOVAL;
@@ -434,6 +433,7 @@ ptrace_vm_entry(struct thread *td, struc
free(freepath, M_TEMP);
}
}
+ vmspace_free(vm);
if (error == 0)
CTR3(KTR_PTRACE, "PT_VM_ENTRY: pid %d, entry %d, start %p",
p->p_pid, pve->pve_entry, pve->pve_start);
More information about the svn-src-all
mailing list