HardenedBSD/sbin
gavin bea1844152 When growing a UFS1 filesystem, we need to initialise all inodes in any new
cylinder groups that are created.  When the filesystem is first created,
newfs always initialises the first two blocks of inodes, and then in the
UFS1 case will also initialise the remaining inode blocks.  The changes in
growfs.c 1.23 broke the initialisation of all inodes, seemingly based on
this implementation detail in newfs(8).  The result was that instead of
initialising all inodes, we would actually end up initialising all but the
first two blocks of inodes.  If the filesystem was grown into empty
(all-zeros) space then the resulting filesystem was fine, however when
grown onto non-zeroed space the filesystem produced would appear to have
massive corruption on the first fsck after growing.
A test case for this problem can be found in the PR audit trail.

Fix this by once again initialising all inodes in the UFS1 case.

PR:		bin/115174
Submitted by:	Nate Eldredgei  nge cs.hmc.edu
Reviewed by:	mjacob
MFC after:	1 month
2010-02-13 16:22:08 +00:00
..
adjkerntz Raise WARNS for various tools where possible. 2010-01-17 21:56:27 +00:00
atacontrol MFp4: 2009-12-06 00:10:13 +00:00
atm
badsect
bsdlabel
camcontrol - Give ATA/SATA SIMs info about ATAPI packet size, supported by device. 2010-02-02 11:09:28 +00:00
ccdconfig
clri
comcontrol ANSIfy almost all applications that use WARNS=6. 2009-12-29 22:53:27 +00:00
conscontrol
ddb Ensure 'kvm' is always initialized. If "-M" was not specified and the 2009-11-02 20:18:50 +00:00
devd
devfs
dhclient
dmesg
dump Plug two memory leaks in error case. 2010-02-03 23:56:12 +00:00
dumpfs Print leading zeros in the UFS2 FSID. 2010-01-06 14:01:28 +00:00
dumpon
fdisk
fdisk_pc98
ffsinfo
fsck Fix minor resource leak in a function which was introduced by changing an 2009-11-20 15:27:00 +00:00
fsck_ffs Cast 64-bit quantity to intptr_t rather than int so as to work properly 2010-01-11 23:33:30 +00:00
fsck_msdosfs
fsdb
fsirand
gbde
geom Add the long missing "destroy" option. 2010-02-04 21:51:33 +00:00
ggate (S)LIST_HEAD_INITIALIZER takes a (S)LIST_HEAD as an argument. 2009-12-28 22:56:30 +00:00
growfs When growing a UFS1 filesystem, we need to initialise all inodes in any new 2010-02-13 16:22:08 +00:00
gvinum
ifconfig Shortening a passphrase caused wrong authentication key to be used. 2010-02-04 11:43:22 +00:00
init Remove stale inclusion of <ulog.h>. 2010-01-27 20:32:58 +00:00
ipf
ipfw implement a new match option, 2009-12-15 09:46:27 +00:00
iscontrol pukeText is an internal function so define it as static rather than 2010-02-03 23:58:00 +00:00
kldconfig Raise WARNS for various tools where possible. 2010-01-17 21:56:27 +00:00
kldload Raise WARNS for various tools where possible. 2010-01-17 21:56:27 +00:00
kldstat Raise WARNS for various tools where possible. 2010-01-17 21:56:27 +00:00
kldunload
ldconfig ANSIfy ldconfig and the aout bits it still uses from rtld-aout. 2009-12-29 21:07:17 +00:00
mca
md5
mdconfig Make mdconfig(8) WARNS=6 clean: 2010-01-22 08:51:58 +00:00
mdmfs
mknod Allow mknod(8) to be only invoked with a pathname as an argument. 2010-01-31 11:48:25 +00:00
mksnap_ffs
mount - Remove reference to nfs4. mount_nfs4(8) was removed in r192578. 2010-02-10 16:18:28 +00:00
mount_autofs
mount_cd9660 Fix minor memory leak in a function. 2009-11-20 15:28:38 +00:00
mount_ext2fs
mount_hpfs
mount_msdosfs Remove reference to the bug in FreeBSD 2.0. 2010-01-02 17:45:53 +00:00
mount_nfs Introduce '[ipaddr]:path' notation. 2010-02-04 15:17:49 +00:00
mount_ntfs
mount_nullfs ANSIfy almost all applications that use WARNS=6. 2009-12-29 22:53:27 +00:00
mount_reiserfs
mount_std
mount_udf
mount_unionfs
natd Raise WARNS for various tools where possible. 2010-01-17 21:56:27 +00:00
newfs One last pass to get all the unsigned comparisons correct. 2010-02-11 18:14:53 +00:00
newfs_msdos
nfsiod - Display current settings when run without options. 2009-12-26 08:36:02 +00:00
nos-tun
pfctl
pflogd
ping
ping6
quotacheck
rcorder ANSIfy almost all applications that use WARNS=6. 2009-12-29 22:53:27 +00:00
reboot Remove stale references to utmp(5) and its corresponding filenames. 2010-01-21 17:25:12 +00:00
recoverdisk
restore Don't try to determine tape block size when the -P option is used. 2010-02-13 10:22:07 +00:00
route
routed (S)LIST_HEAD_INITIALIZER takes a (S)LIST_HEAD as an argument. 2009-12-28 22:56:30 +00:00
rtsol
savecore
sconfig
setkey Use the newly brought %U macro. 2010-01-15 16:01:22 +00:00
shutdown Add missing `void' for functions without arguments. 2009-12-29 08:49:43 +00:00
spppcontrol
sunlabel
swapon Raise WARNS for various tools where possible. 2010-01-17 21:56:27 +00:00
sysctl Add -i to usage() 2010-02-09 19:13:45 +00:00
tunefs Quiet spurious warnings. 2010-02-11 06:33:35 +00:00
umount Introduce '[ipaddr]:path' notation. 2010-02-04 15:17:49 +00:00
Makefile
Makefile.inc