HomeFreeBSD

Ensure that directory entry padding bytes are zeroed.

Description

Ensure that directory entry padding bytes are zeroed.

Directory entries must be padded to maintain alignment; in many
filesystems the padding was not initialized, resulting in stack
memory being copied out to userspace. With the ino64 work there
are also some explicit pad fields in struct dirent. Add a subroutine
to clear these bytes and use it in the in-tree filesystems. The
NFS client is omitted for now as it was fixed separately in r340787.

Reported by: Thomas Barabosch, Fraunhofer FKIE
Reviewed by: kib
MFC after: 3 days
Sponsored by: The FreeBSD Foundation

Details

Provenance
markjAuthored on Nov 23 2018, 10:24 PM
Parents
rG759436eb7cfd: axp8xx: Rework the enable part and add the GPIOXLDO regulators
Branches
Unknown
Tags
Unknown