Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Feb 2009 17:14:07 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/ufs/ffs ffs_alloc.c
Message-ID:  <200902061714.n16HEJa2098454@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
trasz       2009-02-06 17:14:07 UTC

  FreeBSD src repository

  Modified files:
    sys/ufs/ffs          ffs_alloc.c 
  Log:
  SVN rev 188240 on 2009-02-06 17:14:07Z by trasz
  
  When a device containing mounted UFS filesystem disappears, the type
  of devvp becomes VBAD, which UFS incorrectly interprets as snapshot
  vnode, which in turns causes panic.  Fix it by replacing '!= VCHR'
  with '== VREG'.
  
  With this fix in place, you should no longer be able to panic the system
  by removing a device with an UFS filesystem mounted from it - assuming
  you don't use softupdates.
  
  Reviewed by:    kib
  Tested by:      pho
  Approved by:    rwatson (mentor)
  Sponsored by:   FreeBSD Foundation
  
  Revision  Changes    Path
  1.152     +4 -4      src/sys/ufs/ffs/ffs_alloc.c



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