Date: Mon, 3 May 2021 17:55:40 GMT From: Mark Johnston <markj@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 2b2d77e7204d - main - VOP_STAT: Provide a default value for va_gen Message-ID: <202105031755.143HteM7046818@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=2b2d77e7204d2264dbe0338f4400f14702a2c582 commit 2b2d77e7204d2264dbe0338f4400f14702a2c582 Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2021-05-03 16:43:05 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2021-05-03 17:24:30 +0000 VOP_STAT: Provide a default value for va_gen Some filesystems, e.g., pseudofs and the NFSv3 client, do not provide one. Reviewed by: kib Reported by: KMSAN Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D30091 --- sys/kern/vfs_default.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/kern/vfs_default.c b/sys/kern/vfs_default.c index 4b9b1b43f1ce..cf224981cbe7 100644 --- a/sys/kern/vfs_default.c +++ b/sys/kern/vfs_default.c @@ -1500,6 +1500,7 @@ vop_stdstat(struct vop_stat_args *a) vap->va_birthtime.tv_sec = -1; vap->va_birthtime.tv_nsec = 0; vap->va_fsid = VNOVAL; + vap->va_gen = 0; vap->va_rdev = NODEV; error = VOP_GETATTR(vp, vap, a->a_active_cred);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202105031755.143HteM7046818>