freebsd-skq/sys/fs/tmpfs
markj d08f717585 Ensure that directory entry padding bytes are zeroed.
Directory entries must be padded to maintain alignment; in many
filesystems the padding was not initialized, resulting in stack
memory being copied out to userspace.  With the ino64 work there
are also some explicit pad fields in struct dirent.  Add a subroutine
to clear these bytes and use it in the in-tree filesystems.  The
NFS client is omitted for now as it was fixed separately in r340787.

Reported by:	Thomas Barabosch, Fraunhofer FKIE
Reviewed by:	kib
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
2018-11-23 22:24:59 +00:00
..
tmpfs_fifoops.c Rework pathconf handling for FIFOs. 2017-12-19 22:39:05 +00:00
tmpfs_fifoops.h sys/fs: further adoption of SPDX licensing ID tags. 2017-11-27 15:15:37 +00:00
tmpfs_subr.c Ensure that directory entry padding bytes are zeroed. 2018-11-23 22:24:59 +00:00
tmpfs_vfsops.c Ensure that directory entry padding bytes are zeroed. 2018-11-23 22:24:59 +00:00
tmpfs_vnops.c Ensure that directory entry padding bytes are zeroed. 2018-11-23 22:24:59 +00:00
tmpfs_vnops.h Rework pathconf handling for FIFOs. 2017-12-19 22:39:05 +00:00
tmpfs.h tmpfs: use unr64 for inode numbers 2018-11-20 15:14:30 +00:00