Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Mar 2009 11:20:35 +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:  <200903011120.n21BKrAH074894@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
trasz       2009-03-01 11:20:35 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_7)
    sys/ufs/ffs          ffs_alloc.c 
  Log:
  SVN rev 189229 on 2009-03-01 11:20:35Z by trasz
  
  MFC r188240:
  
  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.147.2.5  +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?200903011120.n21BKrAH074894>