git: 5b1800d62f9d - stable/13 - exec_elf: assert that the image vnode is still locked on return
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 19 Dec 2021 02:44:26 UTC
The branch stable/13 has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=5b1800d62f9d3a603ee9254650734ea2e72462b2
commit 5b1800d62f9d3a603ee9254650734ea2e72462b2
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2021-12-09 15:14:46 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2021-12-19 02:42:50 +0000
exec_elf: assert that the image vnode is still locked on return
(cherry picked from commit b4b20492cd92b5ca7ff03f4140e88363449d3021)
---
sys/kern/imgact_elf.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sys/kern/imgact_elf.c b/sys/kern/imgact_elf.c
index 9b7d26257ea3..af8c2129b3dd 100644
--- a/sys/kern/imgact_elf.c
+++ b/sys/kern/imgact_elf.c
@@ -1343,6 +1343,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);