HomeFreeBSD

Ensure that dirent's d_off field is initialized

Description

Ensure that dirent's d_off field is initialized

We have the d_off field in struct dirent for providing the seek offset
of the next directory entry. Several filesystems were not initializing
the field, which ends up being copied out to userland.

Reported by: Syed Faraz Abrar <faraz@elttam.com>
Reviewed by: kib

(cherry picked from commit 90f580b954090e669da234f6c8e8d0379ff9d8bc)

Details

Provenance
markjAuthored on Jan 3 2021, 4:32 PM
Parents
rG5ece34669c27: msdosfs: Fix a leak of dirent padding bytes
Branches
Unknown
Tags
Unknown