[Midnightbsd-cvs] [MidnightBSD/src] 0a1f96: OpenZFS: Ensure that zfs_getattr() initializes the...
Mark Johnston
noreply at github.com
Tue Dec 12 17:29:07 EST 2023
Branch: refs/heads/stable/3.1
Home: https://github.com/MidnightBSD/src
Commit: 0a1f96bffd35f1925a270a28fad997ec2b18637a
https://github.com/MidnightBSD/src/commit/0a1f96bffd35f1925a270a28fad997ec2b18637a
Author: Mark Johnston <markjdb at gmail.com>
Date: 2023-12-12 (Tue, 12 Dec 2023)
Changed paths:
M sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c
Log Message:
-----------
OpenZFS: Ensure that zfs_getattr() initializes the va_rdev field
Otherwise the field is left uninitialized, leading to a possible kernel
memory disclosure to userspace or to the network. Use the same
initialization value we use in zfsctl_common_getattr().
Reported-by: KMSAN
Sponsored-by: The FreeBSD Foundation
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Reviewed-by: Ed Maste <emaste at FreeBSD.org>
Signed-off-by: Mark Johnston <markj at FreeBSD.org>
(cherry picked from commit 11656234b560c401dec6a16e1bf048b20fd31aac)
(cherry picked from commit af1e8b52d26502bac9a2484b87d1879334debd67)
Differential Revision: https://reviews.freebsd.org/D42987
More information about the Midnightbsd-cvs
mailing list