The branch main has been updated by kib:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=7fad17a3e63481ef71b731b0059cb918aec14f17

commit 7fad17a3e63481ef71b731b0059cb918aec14f17
Author:     Konstantin Belousov <k...@freebsd.org>
AuthorDate: 2025-03-20 17:56:47 +0000
Commit:     Konstantin Belousov <k...@freebsd.org>
CommitDate: 2025-03-21 23:39:51 +0000

    kern___acl_aclcheck_path: vrele the vnode after namei()
    
    Reported and tested by: pho
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
---
 sys/kern/vfs_acl.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/kern/vfs_acl.c b/sys/kern/vfs_acl.c
index fde05478d41c..3106218abce6 100644
--- a/sys/kern/vfs_acl.c
+++ b/sys/kern/vfs_acl.c
@@ -551,6 +551,7 @@ kern___acl_aclcheck_path(struct thread *td, const char 
*path, acl_type_t type,
        error = namei(&nd);
        if (error == 0) {
                error = vacl_aclcheck(td, nd.ni_vp, type, aclp);
+               vrele(nd.ni_vp);
                NDFREE_PNBUF(&nd);
        }
        return (error);

Reply via email to