freebsd-skq/sys/cddl
Mark Johnston 6d2e2df764 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
..
boot/zfs Mark two things as unused (since they are only sometimes used) and 2017-12-03 04:55:33 +00:00
compat/opensolaris Use taskqueue_quiesce(9) to implement taskq_wait(). 2018-11-21 17:19:08 +00:00
contrib/opensolaris Ensure that directory entry padding bytes are zeroed. 2018-11-23 22:24:59 +00:00
dev DTrace/powerpc: Fix FBT return probes 2018-11-21 16:47:11 +00:00