Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Feb 2001 17:52:11 -0800 (PST)
From:      Ian Dowse <iedowse@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/ufs/ufs ufs_lookup.c
Message-ID:  <200102040152.f141qB433351@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
iedowse     2001/02/03 17:52:11 PST

  Modified files:
    sys/ufs/ufs          ufs_lookup.c 
  Log:
  Extend the sanity checks in ufs_lookup to ensure that each directory
  entry fits within its DIRBLKSIZ block. The surrounding code is
  extremely fragile with respect to corruption of the directory entry
  'd_reclen' field; if directory corruption occurs, it can blindly
  scan forward beyond the end of the filesystem block. Usually this
  results in a 'fault on nofault entry' panic.
  
  Directory corruption is now much more likely to be detected, resulting
  in a 'ufs_dirbad' panic. If the filesystem is read-only, it will
  simply print a warning message, and skip the corrupted block.
  
  Reviewed by:	mckusick
  
  Revision  Changes    Path
  1.45      +3 -2      src/sys/ufs/ufs/ufs_lookup.c



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




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