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 Add SPDX tags to autofs(5). 2018-01-24 16:40:26 +00:00
cd9660 Add d_off support for multiple filesystems. 2018-11-14 14:18:35 +00:00
cuse Use NULL for SYSINIT's last arg, which is a pointer type 2018-05-18 17:58:09 +00:00
deadfs sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
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 Rework pathconf handling for FIFOs. 2017-12-19 22:39:05 +00:00
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 Make it easier for filesystems to count themselves as jail-enabled, 2018-05-04 20:54:27 +00:00
procfs Make it easier for filesystems to count themselves as jail-enabled, 2018-05-04 20:54:27 +00:00
pseudofs proc: convert pfind & friends to use pidhash locks and other cleanup 2018-11-21 20:15:56 +00:00
smbfs Use long for the last argument to VOP_PATHCONF rather than a register_t. 2018-01-17 22:36:58 +00:00
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 sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00