HomeFreeBSD

nfscl: fix uninitialized memory in nfsv4_loadattr

Description

nfscl: fix uninitialized memory in nfsv4_loadattr

When processing an RPC response that did not include any Owner
attribute, nfsv4_loadattr would return na_uid and na_gid uninitialized.
The uninitialized values could then make their way into the NFS
attribute cache via nfscl_loadattrcache.

PR: 281279
Reported by: KMSAN
Reviewed by: rmacklem
Sponsored by: Axcient

(cherry picked from commit 44328abfb7aca8150b07b83ff502c9185677e3fb)

Details

Provenance
asomersAuthored on Sep 8 2024, 8:42 PM
Parents
rGcf2ed0edaefb: fusefs: fix an uninitialized memory access in fuse_vnop_deallocate
Branches
Unknown
Tags
Unknown