The following reply was made to PR kern/162997; it has been noted by GNATS.

From: [email protected] (dfilter service)
To: [email protected]
Cc:  
Subject: Re: kern/162997: commit references a PR
Date: Fri,  2 Dec 2011 17:10:11 +0000 (UTC)

 Author: mav
 Date: Fri Dec  2 17:09:48 2011
 New Revision: 228204
 URL: http://svn.freebsd.org/changeset/base/228204
 
 Log:
   Close race between geom destruction on g_vfs_close() when softc destroyed
   and g_vfs_orphan() call that tries to access softc, intruced at r227015.
   
   PR:          kern/162997
 
 Modified:
   head/sys/geom/geom_vfs.c
 
 Modified: head/sys/geom/geom_vfs.c
 ==============================================================================
 --- head/sys/geom/geom_vfs.c   Fri Dec  2 15:47:05 2011        (r228203)
 +++ head/sys/geom/geom_vfs.c   Fri Dec  2 17:09:48 2011        (r228204)
 @@ -169,8 +169,10 @@ g_vfs_orphan(struct g_consumer *cp)
        g_topology_assert();
  
        gp = cp->geom;
 -      sc = gp->softc;
        g_trace(G_T_TOPOLOGY, "g_vfs_orphan(%p(%s))", cp, gp->name);
 +      sc = gp->softc;
 +      if (sc == NULL)
 +              return;
        mtx_lock(&sc->sc_mtx);
        sc->sc_orphaned = 1;
        destroy = (sc->sc_active == 0);
 _______________________________________________
 [email protected] mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "[email protected]"
 
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-geom
To unsubscribe, send any mail to "[email protected]"

Reply via email to