freebsd-dev/sys/fs
Kirk McKusick c0029546f8 When loading an inode from disk, verify that its mode is valid.
If invalid, return EINVAL. Note that inode check-hashes greatly
reduce the chance that these errors will go undetected.

Reported by:  Christopher Krah <krah@protonmail.com>
Reported as:  FS-5-UFS-2: Denial Of Service in nmount-3 (ffs_read)
Reviewed by:  kib
MFC after:    1 week
Sponsored by: Netflix

M    sys/fs/ext2fs/ext2_vnops.c
M    sys/kern/vfs_subr.c
M    sys/ufs/ffs/ffs_snapshot.c
M    sys/ufs/ufs/ufs_vnops.c
2018-12-27 07:18:53 +00:00
..
autofs Ensure that directory entry padding bytes are zeroed. 2018-11-23 22:24:59 +00:00
cd9660 Ensure that directory entry padding bytes are zeroed. 2018-11-23 22:24:59 +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 Ensure that directory entry padding bytes are zeroed. 2018-11-23 22:24:59 +00:00
ext2fs When loading an inode from disk, verify that its mode is valid. 2018-12-27 07:18:53 +00:00
fdescfs Ensure that directory entry padding bytes are zeroed. 2018-11-23 22:24:59 +00:00
fifofs Rework pathconf handling for FIFOs. 2017-12-19 22:39:05 +00:00
fuse Remove unused argument to priv_check_cred. 2018-12-11 19:32:16 +00:00
msdosfs Fix clobbering of the fatchain cache for clustered i/o's when full 2018-12-21 21:17:45 +00:00
nandfs Remove unused argument to priv_check_cred. 2018-12-11 19:32:16 +00:00
nfs Remove unused argument to priv_check_cred. 2018-12-11 19:32:16 +00:00
nfsclient Make sure the NFS readdir client fills in all "struct dirent" data. 2018-11-23 00:17:47 +00:00
nfsserver Fix the NFSv4 server to obey vfs.nfsd.nfs_privport. 2018-12-20 22:21:41 +00:00
nullfs Make it easier for filesystems to count themselves as jail-enabled, 2018-05-04 20:54:27 +00:00
procfs Plug memory disclosures via ptrace(2). 2018-12-03 20:54:17 +00:00
pseudofs Ensure that directory entry padding bytes are zeroed. 2018-11-23 22:24:59 +00:00
smbfs Ensure that directory entry padding bytes are zeroed. 2018-11-23 22:24:59 +00:00
tmpfs Remove unused argument to priv_check_cred. 2018-12-11 19:32:16 +00:00
udf Ensure that directory entry padding bytes are zeroed. 2018-11-23 22:24:59 +00:00
unionfs sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00