The branch stable/13 has been updated by kib:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=5b1800d62f9d3a603ee9254650734ea2e72462b2

commit 5b1800d62f9d3a603ee9254650734ea2e72462b2
Author:     Konstantin Belousov <[email protected]>
AuthorDate: 2021-12-09 15:14:46 +0000
Commit:     Konstantin Belousov <[email protected]>
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);

Reply via email to