Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Dec 2011 17:20:07 GMT
From:      dfilter@FreeBSD.ORG (dfilter service)
To:        freebsd-geom@FreeBSD.org
Subject:   Re: kern/162997: commit references a PR
Message-ID:  <201112021720.pB2HK7P3020940@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/162997; it has been noted by GNATS.

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
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);
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 



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