mckusick 51739d277b 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
..
2018-01-05 10:04:01 +00:00
2018-05-13 19:19:10 +00:00
2018-03-17 12:59:55 +00:00
2018-05-13 19:19:10 +00:00
2018-05-13 19:19:10 +00:00
2018-02-05 15:14:01 +00:00
2018-05-13 19:19:10 +00:00
2018-01-14 20:46:39 +00:00
2018-03-17 12:59:55 +00:00