svn commit: r364723 - head/sys/kern
Mateusz Guzik
mjg at FreeBSD.org
Mon Aug 24 18:23:59 UTC 2020
Author: mjg
Date: Mon Aug 24 18:23:58 2020
New Revision: 364723
URL: https://svnweb.freebsd.org/changeset/base/364723
Log:
cache: remove leftover assert in vn_fullpath_any_smr
It is only valid when !slash_prefixed. For slash_prefixed the length
is properly accounted for later.
Reported by: markj (syzkaller)
Modified:
head/sys/kern/vfs_cache.c
Modified: head/sys/kern/vfs_cache.c
==============================================================================
--- head/sys/kern/vfs_cache.c Mon Aug 24 18:17:13 2020 (r364722)
+++ head/sys/kern/vfs_cache.c Mon Aug 24 18:23:58 2020 (r364723)
@@ -2834,8 +2834,6 @@ vn_fullpath_any_smr(struct vnode *vp, struct vnode *rd
orig_buflen = *buflen;
- MPASS(*buflen >= 2);
-
if (!slash_prefixed) {
MPASS(*buflen >= 2);
*buflen -= 1;
More information about the svn-src-all
mailing list