Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Mar 2008 16:34:03 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/ufs/ffs ffs_vfsops.c
Message-ID:  <200803051634.m25GY3Hp065730@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
kib         2008-03-05 16:34:03 UTC

  FreeBSD src repository

  Modified files:
    sys/ufs/ffs          ffs_vfsops.c 
  Log:
  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
  
  Revision  Changes    Path
  1.338     +1 -0      src/sys/ufs/ffs/ffs_vfsops.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803051634.m25GY3Hp065730>