exec_elf: assert that the image vnode is still locked on return

Suggested and reviewed by:	markj
Tested by:	pho
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D33359
This commit is contained in:
Konstantin Belousov 2021-12-09 17:14:46 +02:00
parent 88dd7a0a39
commit b4b20492cd

View File

@ -1363,6 +1363,7 @@ __CONCAT(exec_, __elfN(imgact))(struct image_params *imgp)
imgp->proc->p_elf_flags = hdr->e_flags;
ret:
ASSERT_VOP_LOCKED(imgp->vp, "skipped relock");
if (free_interp)
free(interp, M_TEMP);
return (error);