]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Ensure that dirent's d_off field is initialized
authorMark Johnston <markj@FreeBSD.org>
Sun, 3 Jan 2021 16:32:30 +0000 (11:32 -0500)
committerMark Johnston <markj@FreeBSD.org>
Sun, 3 Jan 2021 16:50:31 +0000 (11:50 -0500)
commit90f580b954090e669da234f6c8e8d0379ff9d8bc
treece741a3e6557b95df9e5c1d99a6a85598b75ac95
parent663de81f852fccc38006b0172f9337147b65890f
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
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D27792
sys/fs/autofs/autofs_vnops.c
sys/fs/smbfs/smbfs_io.c
sys/fs/tmpfs/tmpfs_subr.c
sys/kern/uipc_mqueue.c