Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Dec 2021 02:44:26 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 5b1800d62f9d - stable/13 - exec_elf: assert that the image vnode is still locked on return
Message-ID:  <202112190244.1BJ2iQ3G012558@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202112190244.1BJ2iQ3G012558>