Searched hist:"8 bde6d15d1fa9a947c2bdc5eddae36cfbb1076dc" (Results 1 – 4 of 4) sorted by relevance
/freebsd/sys/fs/nfsclient/ |
H A D | nfs_clcomsubs.c | diff 8bde6d15d1fa9a947c2bdc5eddae36cfbb1076dc Tue May 04 14:53:57 CEST 2021 Mark Johnston <markj@FreeBSD.org> nfsclient: Copy only initialized fields in nfs_getattr()
When loading attributes from the cache, the NFS client is careful to copy only the fields that it initialized. After fetching attributes from the server, however, it would copy the entire vattr structure initialized from the RPC response, so uninitialized stack bytes would end up being copied to userspace. In particular, va_birthtime (v2 and v3) and va_gen (v3) had this problem.
Use a common subroutine to copy fields provided by the NFS client, and ensure that we provide a dummy va_gen for the v3 case.
Reviewed by: rmacklem Reported by: KMSAN MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D30090
|
H A D | nfs_clport.c | diff 8bde6d15d1fa9a947c2bdc5eddae36cfbb1076dc Tue May 04 14:53:57 CEST 2021 Mark Johnston <markj@FreeBSD.org> nfsclient: Copy only initialized fields in nfs_getattr()
When loading attributes from the cache, the NFS client is careful to copy only the fields that it initialized. After fetching attributes from the server, however, it would copy the entire vattr structure initialized from the RPC response, so uninitialized stack bytes would end up being copied to userspace. In particular, va_birthtime (v2 and v3) and va_gen (v3) had this problem.
Use a common subroutine to copy fields provided by the NFS client, and ensure that we provide a dummy va_gen for the v3 case.
Reviewed by: rmacklem Reported by: KMSAN MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D30090
|
H A D | nfs_clvnops.c | diff 8bde6d15d1fa9a947c2bdc5eddae36cfbb1076dc Tue May 04 14:53:57 CEST 2021 Mark Johnston <markj@FreeBSD.org> nfsclient: Copy only initialized fields in nfs_getattr()
When loading attributes from the cache, the NFS client is careful to copy only the fields that it initialized. After fetching attributes from the server, however, it would copy the entire vattr structure initialized from the RPC response, so uninitialized stack bytes would end up being copied to userspace. In particular, va_birthtime (v2 and v3) and va_gen (v3) had this problem.
Use a common subroutine to copy fields provided by the NFS client, and ensure that we provide a dummy va_gen for the v3 case.
Reviewed by: rmacklem Reported by: KMSAN MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D30090
|
/freebsd/sys/fs/nfs/ |
H A D | nfsport.h | diff 8bde6d15d1fa9a947c2bdc5eddae36cfbb1076dc Tue May 04 14:53:57 CEST 2021 Mark Johnston <markj@FreeBSD.org> nfsclient: Copy only initialized fields in nfs_getattr()
When loading attributes from the cache, the NFS client is careful to copy only the fields that it initialized. After fetching attributes from the server, however, it would copy the entire vattr structure initialized from the RPC response, so uninitialized stack bytes would end up being copied to userspace. In particular, va_birthtime (v2 and v3) and va_gen (v3) had this problem.
Use a common subroutine to copy fields provided by the NFS client, and ensure that we provide a dummy va_gen for the v3 case.
Reviewed by: rmacklem Reported by: KMSAN MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D30090
|