freebsd-dev/sys/ufs
Konstantin Belousov e7fd887711 Initialize mnt_stat.f_iosize before autostarting UFS1 extattrs.
It is normally initialized by ffs_statfs() after ffs_mount finished.

The extattr autostart code calls the ufs_lookup(), that uses value above
to iterate over the directory blocks, see bmask initialization in the
ufs_lookup() and ufsdirhash. Having the filesystem with root directory
spanning more then one block would result in reading a random kernel
memory.

PR:	kern/120781
Test case provided by:	rwatson
MFC after:	1 week
2008-03-05 16:34:03 +00:00
..
ffs Initialize mnt_stat.f_iosize before autostarting UFS1 extattrs. 2008-03-05 16:34:03 +00:00
ufs Continue on-going campaign to replace lockmgr locks with sx locks where 2008-03-04 12:50:11 +00:00