freebsd-skq/sbin/fsck_ffs
Kirk McKusick ec888383cf Continuing efforts to provide hardening of FFS, this change adds a
check hash to the superblock. If a check hash fails when an attempt
is made to mount a filesystem, the mount fails with EINVAL (Invalid
argument). This avoids a class of filesystem panics related to
corrupted superblocks. The hash is done using crc32c.

Check hases are added only to UFS2 and not to UFS1 as UFS1 is primarily
used in embedded systems with small memories and low-powered processors
which need as light-weight a filesystem as possible.

Reviewed by:  kib
Tested by:    Peter Holm
Sponsored by: Netflix
2018-10-23 21:10:06 +00:00
..
dir.c Revert r313780 (UFS_ prefix) 2018-03-17 12:59:55 +00:00
ea.c various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
fsck_ffs.8 Exit fsck_ffs with non-zero status when file system is not repaired. 2018-01-15 19:25:11 +00:00
fsck.h Include files missed in 329051. 2018-02-08 23:14:24 +00:00
fsutil.c Make timespecadd(3) and friends public 2018-07-30 15:46:40 +00:00
gjournal.c More throughly integrate libufs into fsck_ffs by using its cgput() 2018-01-24 23:57:40 +00:00
globs.c Include files missed in 329051. 2018-02-08 23:14:24 +00:00
inode.c Revert r313780 (UFS_ prefix) 2018-03-17 12:59:55 +00:00
main.c Continuing efforts to provide hardening of FFS, this change adds a 2018-10-23 21:10:06 +00:00
Makefile sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:33:01 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
pass1.c Revert r313780 (UFS_ prefix) 2018-03-17 12:59:55 +00:00
pass1b.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
pass2.c Revert r313780 (UFS_ prefix) 2018-03-17 12:59:55 +00:00
pass3.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
pass4.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
pass5.c Add missing newline in pwarn message. 2018-10-02 13:45:25 +00:00
setup.c Refactoring of reading and writing of the UFS/FFS superblock. 2018-01-26 00:58:32 +00:00
suj.c Revert r313780 (UFS_ prefix) 2018-03-17 12:59:55 +00:00
utilities.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00