git: b4b20492cd92 - main - exec_elf: assert that the image vnode is still locked on return
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 12 Dec 2021 14:30:31 UTC
The branch main has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=b4b20492cd92b5ca7ff03f4140e88363449d3021
commit b4b20492cd92b5ca7ff03f4140e88363449d3021
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2021-12-09 15:14:46 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2021-12-12 14:28:38 +0000
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
---
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 e66adce562bc..3fe87fe08f5e 100644
--- a/sys/kern/imgact_elf.c
+++ b/sys/kern/imgact_elf.c
@@ -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);