From owner-freebsd-geom@freebsd.org Wed Jul 1 19:30:35 2015 Return-Path: Delivered-To: freebsd-geom@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BDAFE991B17 for ; Wed, 1 Jul 2015 19:30:35 +0000 (UTC) (envelope-from fullermd@over-yonder.net) Received: from thyme.infocus-llc.com (thyme.infocus-llc.com [199.15.120.10]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 98BE52938; Wed, 1 Jul 2015 19:30:35 +0000 (UTC) (envelope-from fullermd@over-yonder.net) Received: from draco.over-yonder.net (c-75-65-60-66.hsd1.ms.comcast.net [75.65.60.66]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by thyme.infocus-llc.com (Postfix) with ESMTPSA id 078DD37B54F; Wed, 1 Jul 2015 14:30:28 -0500 (CDT) Received: by draco.over-yonder.net (Postfix, from userid 100) id 3mMCM72W5yz2Xh; Wed, 1 Jul 2015 14:30:27 -0500 (CDT) Date: Wed, 1 Jul 2015 14:30:27 -0500 From: "Matthew D. Fuller" To: Pawel Jakub Dawidek Cc: =?iso-8859-1?Q?Jos=E9_Garc=EDa?= Juanino , freebsd-geom@freebsd.org Subject: Re: geli panics my system after suspend-resume: g_eli_orphan_spoil_assert() called for cd0.eli Message-ID: <20150701193027.GT50491@over-yonder.net> References: <20150613224602.GB1733@over-yonder.net> <20150615060128.GC1733@over-yonder.net> <20150629013011.GN50491@over-yonder.net> <20150701154233.GA1456@garage.freebsd.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20150701154233.GA1456@garage.freebsd.pl> X-Editor: vi X-OS: FreeBSD User-Agent: Mutt/1.5.23-fullermd.4 (2014-03-12) X-Virus-Scanned: clamav-milter 0.98.7 at thyme.infocus-llc.com X-Virus-Status: Clean X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jul 2015 19:30:35 -0000 On Wed, Jul 01, 2015 at 05:42:33PM +0200 I heard the voice of Pawel Jakub Dawidek, and lo! it spake thus: > > The spoil event happens when provider is open for writting for the > first time (its open-for-write counter goes from 0 to >0). Since > GELI opens its providers always exclusively there can be no write > opens, thus the spoil event is unexpected. Well, from OP (https://lists.freebsd.org/pipermail/freebsd-current/2015-June/056193.html) it's coming from a CD media change event. The BT linked from the mail shows. panic() at panic+0x43/frame 0xfffffe011ba81b00 g_eli_orphan_spoil_assert() at g_eli_orphan_spoil_assert+0x1f/frame 0xfffffe011ba81b10 g_spoil_event() at g_spoil_event+0x72/frame 0xfffffe011ba81b40 g_media_changed_event() at g_media_changed_event+0x68/frame 0xfffffe011ba81b70 g_run_events() at g_run_events+0x1a7/frame 0xfffffe011ba81bb0 > To see what exactly is happening I'd need to see the console output > from before that happens with kern.geom.debugflags set to 5. 'd have to talk to José for that; added him back to CC. -- Matthew Fuller (MF4839) | fullermd@over-yonder.net Systems/Network Administrator | http://www.over-yonder.net/~fullermd/ On the Internet, nobody can hear you scream.