svn commit: r301764 - head/sys/kern
Jamie Gritton
jamie at FreeBSD.org
Thu Jun 9 21:59:13 UTC 2016
Author: jamie
Date: Thu Jun 9 21:59:11 2016
New Revision: 301764
URL: https://svnweb.freebsd.org/changeset/base/301764
Log:
Fix a vnode leak when giving a child jail a too-long path when
debug.disablefullpath=1.
Modified:
head/sys/kern/kern_jail.c
Modified: head/sys/kern/kern_jail.c
==============================================================================
--- head/sys/kern/kern_jail.c Thu Jun 9 21:57:34 2016 (r301763)
+++ head/sys/kern/kern_jail.c Thu Jun 9 21:59:11 2016 (r301764)
@@ -1010,6 +1010,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-head
mailing list