HomeFreeBSD

audit: Initialize vattr fields before calling VOP_GETATTR

Description

audit: Initialize vattr fields before calling VOP_GETATTR

Some filesystems do not fill out certain optional vattr fields. To
ensure that they do not get copied out to userspace uninitialized, use
VATTR_NULL to provide default values.

Reported by: KMSAN
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation

Details

Provenance
markjAuthored on Mar 20 2022, 1:59 AM
Parents
rG964bf2f902c5: hpet: Allow a MMIO window smaller than 1K
Branches
Unknown
Tags
Unknown