]> 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>
Wed, 6 Jan 2021 14:45:27 +0000 (09:45 -0500)
commitacaac0eefa1f2675dfc49faa077e3fb10949d540
treeadb6e494847b5011cd815a2c1c3104e23401db36
parent5ece34669c27a61f78cd0f6e0759c17f7787aebb
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)
sys/fs/autofs/autofs_vnops.c
sys/fs/smbfs/smbfs_io.c
sys/fs/tmpfs/tmpfs_subr.c
sys/kern/uipc_mqueue.c