svn commit: r301910 - stable/10/sys/kern
Jamie Gritton
jamie at FreeBSD.org
Wed Jun 15 01:59:56 UTC 2016
Author: jamie
Date: Wed Jun 15 01:59:55 2016
New Revision: 301910
URL: https://svnweb.freebsd.org/changeset/base/301910
Log:
MFC r301764:
Fix a vnode leak when giving a child jail a too-long path when
debug.disablefullpath=1.
Modified:
stable/10/sys/kern/kern_jail.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/kern/kern_jail.c
==============================================================================
--- stable/10/sys/kern/kern_jail.c Wed Jun 15 01:58:54 2016 (r301909)
+++ stable/10/sys/kern/kern_jail.c Wed Jun 15 01:59:55 2016 (r301910)
@@ -1022,6 +1022,7 @@ kern_jail_set(struct thread *td, struct
if (len + (path[0] == '/' && strcmp(mypr->pr_path, "/")
? strlen(mypr->pr_path) : 0) > MAXPATHLEN) {
error = ENAMETOOLONG;
+ vrele(root);
goto done_free;
}
}
More information about the svn-src-stable
mailing list