Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jun 2012 10:06:43 -0600
From:      "Kenneth D. Merry" <ken@freebsd.org>
To:        Michael Butler <imb@protected-networks.net>
Cc:        Benjamin Kaduk <kaduk@mit.edu>, current@freebsd.org
Subject:   Re: Removing an SDHC card causes a kernel panic on -current
Message-ID:  <20120627160643.GA2225@nargothrond.kdm.org>
In-Reply-To: <4FEB1743.506@protected-networks.net>
References:  <4FE9D958.4000901@protected-networks.net> <alpine.GSO.1.10.1206261929300.18441@multics.mit.edu> <20120627022909.GA153@nargothrond.kdm.org> <4FEB1743.506@protected-networks.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jun 27, 2012 at 10:22:59 -0400, Michael Butler wrote:
> On 06/26/12 22:29, Kenneth D. Merry wrote:
> > On Tue, Jun 26, 2012 at 19:41:07 -0400, Benjamin Kaduk wrote:
> >> On Tue, 26 Jun 2012, Michael Butler wrote:
> >>
> >>> As follows, in "g_disk_providergone", a NULL pointer reference?:
> >>
> >> g_disk_providergone() is new in r237518 (by ken); ken cc'd.
> > 
> > Can you try the attached patch to sys/geom/geom_disk.c?
> 
> This fixes the panic :-)

Great!  I just committed it.

> > Also, do you have full dmesg information for when the panic happened?
> > 
> > It looks like disk_destroy() has already been called in this case, and I
> > suppose that's likely to happen for any of the users of the GEOM disk class
> > that haven't been updated with the reference count changes I made in da(4).
> > (i.e. all of the rest of them.)
> > 
> > Let me know whether this works for you.
> 
> All I have is the following leading up to my removal of the card (and
> the restart afterwards):

Thanks!

Ken
-- 
Kenneth Merry
ken@FreeBSD.ORG



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