freebsd-src/sbin/fsck_ffs
Kirk McKusick 101a9ac071 Fix a bug in fsck_ffs(8) triggered by corrupted filesystems.
Check for valid file size before processing journal entries for it.
Done by extracting the file size check from pass1.c into chkfilesize()
then using it in the journal code in suj.c

Reported-by:  Robert Morris
PR:           271378
MFC-after:    1 week
Sponsored-by: The FreeBSD Foundation
2023-05-27 17:12:30 -07:00
..
dir.c Fix a bug in fsck_ffs(8) triggered by corrupted filesystems. 2023-05-27 16:07:09 -07:00
ea.c spdx: The BSD-3-Clause-FreeBSD identifier never was, drop -FreeBSD 2023-05-12 10:44:04 -06:00
fsck.h Fix a bug in fsck_ffs(8) triggered by corrupted filesystems. 2023-05-27 17:12:30 -07:00
fsck_ffs.8
fsutil.c Fix a bug in fsck_ffs(8) triggered by corrupted filesystems. 2023-05-27 17:12:30 -07:00
gjournal.c spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
globs.c Add the ability to adjust directory depths to background fsck_ffs(8). 2023-05-25 19:27:04 -07:00
inode.c Fix a bug in fsck_ffs(8) triggered by corrupted filesystems. 2023-05-27 16:07:09 -07:00
main.c When running fsck_ffs(8) in background ensure that a superblock has been read. 2023-05-25 18:59:16 -07:00
Makefile pkgbase: Put ufs related tools and lib in their own package 2022-10-26 19:46:34 +02:00
Makefile.depend Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
pass1.c Fix a bug in fsck_ffs(8) triggered by corrupted filesystems. 2023-05-27 17:12:30 -07:00
pass1b.c Flush and close getnextino cache when done using it in Pass 1b. 2022-09-03 14:15:50 -07:00
pass2.c Fix a bug in fsck_ffs(8) triggered by corrupted filesystems. 2023-05-27 16:07:09 -07:00
pass3.c Do not try to adjust a directory depth when its reconnection is declined. 2023-05-26 22:55:11 -07:00
pass4.c
pass5.c Fix size differences between architectures of the UFS/FFS CGSIZE macro value. 2023-05-15 12:57:15 -07:00
setup.c When running fsck_ffs(8) in background ensure that a superblock has been read. 2023-05-25 18:59:16 -07:00
suj.c Fix a bug in fsck_ffs(8) triggered by corrupted filesystems. 2023-05-27 17:12:30 -07:00
utilities.c