kern/98538: [geom] Kernel panic on ggate destroy
mglaum at sdf.lonestar.org
mglaum at sdf.lonestar.org
Tue Aug 15 13:10:22 UTC 2006
The following reply was made to PR kern/98538; it has been noted by GNATS.
From: mglaum at sdf.lonestar.org
To: bug-followup at FreeBSD.org
Cc:
Subject: Re: kern/98538: [geom] Kernel panic on ggate destroy
Date: Tue, 15 Aug 2006 13:08:07 -0000 (UTC)
A quick glance at /usr/src/sys/geom/gate/g_gate.c, I suspect the problem
is that in the g_gate_ioctl() switch case G_GATE_CMD_DESTROY, there's a
mtx_lock() but no subsequent mtx_unlock().
I've got a patch devised, below, but do not have the time or resources
to try it. Would someone be willing to review this, try a patch and run
a test? The Makefile is in /usr/src/sys/modules/geom/geom_gate. Again,
I'm not sure about the positioning of the mtx_unlock().
Michael Glaum
KVH Industries
mglaum at kvh.com
[patch for /usr/src/sys/geom/gate/g_gate.c]
--- g_gate.c Tue Aug 1 16:00:34 2006
+++ g_gate.c.orig Tue Aug 1 16:00:02 2006
@@ -487,7 +487,6 @@
error = g_gate_destroy(sc, ggio->gctl_force);
if (error == 0)
g_gate_wither(sc);
- mtx_unlock(&g_gate_list_mtx);
g_topology_unlock();
g_gate_release(sc);
return (error);
More information about the freebsd-geom
mailing list