- Release the imgp vnode prior to freeing exec_map resources to avoid
deadlock.
This commit is contained in:
parent
fac6cd8832
commit
e679ecb8f2
@ -628,15 +628,15 @@ kern_execve(td, fname, argv, envv, mac_p)
|
||||
if (imgp->firstpage)
|
||||
exec_unmap_first_page(imgp);
|
||||
|
||||
if (imgp->stringbase != NULL)
|
||||
kmem_free_wakeup(exec_map, (vm_offset_t)imgp->stringbase,
|
||||
ARG_MAX + PAGE_SIZE);
|
||||
|
||||
if (imgp->vp) {
|
||||
NDFREE(ndp, NDF_ONLY_PNBUF);
|
||||
vput(imgp->vp);
|
||||
}
|
||||
|
||||
if (imgp->stringbase != NULL)
|
||||
kmem_free_wakeup(exec_map, (vm_offset_t)imgp->stringbase,
|
||||
ARG_MAX + PAGE_SIZE);
|
||||
|
||||
if (imgp->object)
|
||||
vm_object_deallocate(imgp->object);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user