freebsd-skq/sbin
iedowse 1904591561 Fsck_ffs did not properly range-check the inode 'di_size'
field, so it was possible for a filesystem marked clean by fsck_ffs
to cause kernel crashes later when mounted. This could occur when
fsck_ffs was used to repair a badly corrupted filesystem.

As pointed out by bde, it is not sufficient to restrict di_size to
just the superblock fs_maxfilesize limit. The use of 32-bit logical
block numbers (both in fsck and the kernel) induces another file
size limit which is usually lower than fs_maxfilesize. Also, the
old 4.3BSD filesystem does not have fs_maxfilesize initialised.

Following this change, fsck_ffs will enforce exactly the same
file size limits as are used by the kernel.

PR:		kern/15065
Discussed with:	bde
Reviewed by:	bde, mckusick
2001-01-31 15:16:56 +00:00
..
adjkerntz Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
atm man(7) -> mdoc(7). 2001-01-22 17:44:36 +00:00
badsect Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
bsdlabel typo: modifes -> modifies 2000-12-28 16:44:47 +00:00
camcontrol Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
ccdconfig Prepare for mdoc(7)NG. 2001-01-16 09:15:57 +00:00
clri mdoc(7) police: use the new features of the Nm macro. 2000-11-20 16:52:27 +00:00
comcontrol Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
cxconfig Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
dhclient Add nsswitch support. By creating an /etc/nsswitch.conf file, you can 2000-09-06 18:16:48 +00:00
disklabel typo: modifes -> modifies 2000-12-28 16:44:47 +00:00
dmesg Fix hard sentence break introduced in previous commit. 2000-12-20 13:23:50 +00:00
dump Use <sys/queue.h> instead of home-rolled list. 2001-01-29 09:45:51 +00:00
dumpfs The ffs superblock includes a 128-byte region for use by temporary 2001-01-15 18:30:40 +00:00
dumpon mdoc(7) police: removed history info from the .Os FreeBSD call. 2000-12-14 11:52:05 +00:00
fdisk Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
fdisk_pc98 Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
ffsinfo Prepare for mdoc(7)NG. 2000-12-19 15:36:48 +00:00
fsck Use macro API to <sys/queue.h> 2000-12-30 21:05:45 +00:00
fsck_ffs Fsck_ffs did not properly range-check the inode 'di_size' 2001-01-31 15:16:56 +00:00
fsck_ifs The ffs superblock includes a 128-byte region for use by temporary 2001-01-15 18:30:40 +00:00
fsdb Prepare for mdoc(7)NG. 2001-01-16 09:15:57 +00:00
fsirand Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
growfs Fix a logical bug introduced by changing the formatting. 2000-12-13 22:19:05 +00:00
i386 Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
ifconfig mdoc police. 2001-01-22 18:37:51 +00:00
init Further tidy up the sbin/init and release builds. 2001-01-01 21:39:00 +00:00
ip6fw Fix the vulnerability with TCP ECE packets recently fixed in ipfw. 2001-01-23 21:11:28 +00:00
ipf Build with -DUSE_INET6 so that we can actually use the IPv6 support in 2000-10-31 22:29:27 +00:00
ipfstat Build with -DUSE_INET6 so that we can actually use the IPv6 support in 2000-10-31 22:29:27 +00:00
ipfw o IPFW incorrectly handled filtering in the presence of previously 2001-01-09 03:10:30 +00:00
ipmon Build with -DUSE_INET6 so that we can actually use the IPv6 support in 2000-10-31 22:29:27 +00:00
ipnat Build with -DUSE_INET6 so that we can actually use the IPv6 support in 2000-10-31 22:29:27 +00:00
kget mdoc(7) police: use canonical form of .Dd macro. 2000-12-11 15:20:31 +00:00
kldload Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
kldstat mdoc(7) police: use the new features of the Nm macro. 2000-11-20 16:52:27 +00:00
kldunload mdoc(7) police: use the new features of the Nm macro. 2000-11-20 16:52:27 +00:00
ldconfig Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
md5 mdoc(7) police: use the new features of the Nm macro. 2000-11-20 16:52:27 +00:00
mdconfig Strip optional prefixes "/dev/" and "md" from the -u argument. 2001-01-31 08:41:18 +00:00
mknod Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
mount Always print out the target device when the mount fails, not just on 2001-01-25 20:03:38 +00:00
mount_cd9660 Print out the target device when the mount fails. 2001-01-25 20:05:34 +00:00
mount_ext2fs mdoc(7) police: removed history info from the .Os FreeBSD call. 2000-12-14 11:52:05 +00:00
mount_hpfs mdoc(7) police: use the new features of the Nm macro. 2000-11-20 16:52:27 +00:00
mount_ifs Removed unused copy of ../mount/getmtopts.3. 2001-01-17 04:10:06 +00:00
mount_msdos mdoc(7) police: use the new features of the Nm macro. 2000-11-20 16:52:27 +00:00
mount_msdosfs mdoc(7) police: use the new features of the Nm macro. 2000-11-20 16:52:27 +00:00
mount_nfs mdoc(7) police: use the new features of the Nm macro. 2000-11-20 16:52:27 +00:00
mount_ntfs mdoc(7) police: use canonical form of .Dd macro. 2000-12-11 15:20:31 +00:00
mount_null Prepare for mdoc(7)NG. 2000-12-27 14:40:52 +00:00
mount_nullfs Prepare for mdoc(7)NG. 2000-12-27 14:40:52 +00:00
mount_nwfs mdoc(7) police: removed history info from the .Os FreeBSD call. 2000-12-14 11:52:05 +00:00
mount_portal mdoc(7) police: use the new features of the Nm macro. 2000-11-20 16:52:27 +00:00
mount_portalfs mdoc(7) police: use the new features of the Nm macro. 2000-11-20 16:52:27 +00:00
mount_std Retire kernfs (userland part). 2000-12-28 12:59:57 +00:00
mount_umap Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
mount_umapfs Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
mount_union mdoc(7) police: Er macro usage cleanup. 2000-11-22 16:02:00 +00:00
mount_unionfs mdoc(7) police: Er macro usage cleanup. 2000-11-22 16:02:00 +00:00
mountd Prepare for mdoc(7)NG. 2001-01-16 09:15:57 +00:00
natd mdoc(7) police: use the new features of the Nm macro. 2000-11-20 16:52:27 +00:00
newfs Make mount_mfs annoy users for 15 seconds and point them at mdconfig(8). 2001-01-30 10:21:20 +00:00
newfs_msdos Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
nextboot mdoc(7) police: added missing .Os call. 2000-12-14 13:58:15 +00:00
nfsd mdoc(7) police: use the new features of the Nm macro. 2000-11-20 16:52:27 +00:00
nfsiod mdoc(7) police: use the new features of the Nm macro. 2000-11-20 16:52:27 +00:00
nologin mdoc(7) police: removed history info from the .Os FreeBSD call. 2000-12-14 11:52:05 +00:00
nos-tun Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
pc98 Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
ping Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
ping6 Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
quotacheck mdoc(7) police: use the new features of the Nm macro. 2000-11-20 16:52:27 +00:00
reboot Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
restore Prepare for mdoc(7)NG. 2001-01-16 09:15:57 +00:00
route Add a couple of newlines in the output from route monitor 2001-01-15 12:28:48 +00:00
routed Prepare for mdoc(7)NG. 2001-01-16 09:15:57 +00:00
rtsol Correct style bugs in previous commit 2000-07-06 01:55:21 +00:00
savecore Prepare for mdoc(7)NG. 2001-01-16 09:15:57 +00:00
setkey Minor layout fixes. 2001-01-01 23:30:51 +00:00
shutdown mdoc(7) police: use canonical form of .Dd macro. 2000-12-11 15:20:31 +00:00
slattach Prepare for mdoc(7)NG. 2000-12-27 14:40:52 +00:00
spppcontrol mdoc(7) police: use the new features of the Nm macro. 2000-11-20 16:52:27 +00:00
startslip Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
swapon mdoc(7) police: use the new features of the Nm macro. 2000-11-20 16:52:27 +00:00
sysctl Document the -N option in the usage message and the man page. 2001-01-14 19:08:58 +00:00
tunefs Fix 'tunefs -p' 2001-01-29 11:00:16 +00:00
umount mdoc(7) police: use the new features of the Nm macro. 2000-11-20 16:52:27 +00:00
vinum Fix typo. 2001-01-15 22:15:05 +00:00
Makefile Add mdconfig into the build. 2000-12-28 20:59:35 +00:00
Makefile.inc