freebsd-dev/sys/fs
Rick Macklem f86bce1770 Make sure the NFS readdir client fills in all "struct dirent" data.
The NFS client code (nfsrpc_readdir() and nfsrpc_readdirplus()) wasn't
filling in parts of the readdir reply, such as d_pad[01] and the bytes
at the end of d_name within d_reclen. As such, data left in a buffer cache
block could be leaked to userland in the readdir reply.
This patch makes sure all of the data is filled in.

Reported by:	Thomas Barabosch, Fraunhofer FKIE
Reviewed by:	kib, markj
MFC after:	2 weeks
2018-11-23 00:17:47 +00:00
..
autofs
cd9660 Add d_off support for multiple filesystems. 2018-11-14 14:18:35 +00:00
cuse
deadfs
devfs Add d_off support for multiple filesystems. 2018-11-14 14:18:35 +00:00
ext2fs Add d_off support for multiple filesystems. 2018-11-14 14:18:35 +00:00
fdescfs Add d_off support for multiple filesystems. 2018-11-14 14:18:35 +00:00
fifofs
fuse Remove comments made obsolete by the ino64 work. 2018-11-19 17:33:44 +00:00
msdosfs Add d_off support for multiple filesystems. 2018-11-14 14:18:35 +00:00
nandfs Add d_off support for multiple filesystems. 2018-11-14 14:18:35 +00:00
nfs nfsm_advance() would panic() when the offs argument was negative. 2018-11-20 01:56:34 +00:00
nfsclient Make sure the NFS readdir client fills in all "struct dirent" data. 2018-11-23 00:17:47 +00:00
nfsserver Improve sanity checking for the dircount hint argument to 2018-11-20 01:59:57 +00:00
nullfs
procfs
pseudofs proc: convert pfind & friends to use pidhash locks and other cleanup 2018-11-21 20:15:56 +00:00
smbfs
tmpfs tmpfs: use unr64 for inode numbers 2018-11-20 15:14:30 +00:00
udf Add d_off support for multiple filesystems. 2018-11-14 14:18:35 +00:00
unionfs