- Return EACCES if we're trying to exec on a vp with no object.
Errno supplied by: cperciva
This commit is contained in:
parent
7b6b7657d2
commit
4d7d299383
@ -791,6 +791,8 @@ exec_map_first_page(imgp)
|
||||
exec_unmap_first_page(imgp);
|
||||
|
||||
object = imgp->vp->v_object;
|
||||
if (object == NULL)
|
||||
return (EACCES);
|
||||
VM_OBJECT_LOCK(object);
|
||||
ma[0] = vm_page_grab(object, 0, VM_ALLOC_NORMAL | VM_ALLOC_RETRY);
|
||||
if ((ma[0]->valid & VM_PAGE_BITS_ALL) != VM_PAGE_BITS_ALL) {
|
||||
|
Loading…
Reference in New Issue
Block a user