Date: Mon, 24 Aug 2020 18:23:59 +0000 (UTC) From: Mateusz Guzik <mjg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r364723 - head/sys/kern Message-ID: <202008241823.07OINxvQ049483@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202008241823.07OINxvQ049483>