aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2020-08-24 18:23:58 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2020-08-24 18:23:58 +0000
commitf9cdb0775e605ec0e44cedae9aae0b39bca742f8 (patch)
treedf1d04a85e2fb45171a581331bf3512d96ba3e61
parentd709c07b347fa8028c37796ade3d66d1f2f7d5c7 (diff)
downloadsrc-f9cdb0775e605ec0e44cedae9aae0b39bca742f8.tar.gz
src-f9cdb0775e605ec0e44cedae9aae0b39bca742f8.zip
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)
Notes
Notes: svn path=/head/; revision=364723
-rw-r--r--sys/kern/vfs_cache.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c
index 6d30f761cd22..292342730b91 100644
--- a/sys/kern/vfs_cache.c
+++ b/sys/kern/vfs_cache.c
@@ -2834,8 +2834,6 @@ vn_fullpath_any_smr(struct vnode *vp, struct vnode *rdir, char *buf,
orig_buflen = *buflen;
- MPASS(*buflen >= 2);
-
if (!slash_prefixed) {
MPASS(*buflen >= 2);
*buflen -= 1;