From owner-freebsd-geom@freebsd.org Wed Jul 1 22:53:13 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 81FB3992E00 for ; Wed, 1 Jul 2015 22:53:13 +0000 (UTC) (envelope-from jjuanino@gmail.com) Received: from mail-ig0-x22a.google.com (mail-ig0-x22a.google.com [IPv6:2607:f8b0:4001:c05::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 447492E07; Wed, 1 Jul 2015 22:53:13 +0000 (UTC) (envelope-from jjuanino@gmail.com) Received: by igblr2 with SMTP id lr2so45185120igb.0; Wed, 01 Jul 2015 15:53:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=HiWvevZGsX2irJWw/nDPG5NJMpEEY8B41WLcH+sAb7I=; b=R5eG2CRiENIG9EvuMr+7y45j1gmgodoGYa684XlqrhXr07647JuotR4BYhrMd8ezjq VFw+REfQC4N0+QnOk1doXprJbWYWhQ4JHBmtSkJcSUmv9894a1oL+acyDORYNHKMz5MW KG8ang8hcKjpYkrA+UBbmFGRqzr41FZ42aQuzzI+tXU0k8R6jtQgsdMhGeGJk7d8Xh4P FQn8sl5G6lNbvWvuPUHNnhPWPJJtzFyirJonv+m0ViJ20mXBuUNh8FbefEImgqo8rVRA AdjdBTBFcKfjsHy3UUwEPSb2NQUuftgNjxuSLBuNAI7LiN6jAvo/lNCMe42CAEFM++7I ke0A== MIME-Version: 1.0 X-Received: by 10.107.38.139 with SMTP id m133mr41610769iom.51.1435791192492; Wed, 01 Jul 2015 15:53:12 -0700 (PDT) Received: by 10.64.76.13 with HTTP; Wed, 1 Jul 2015 15:53:12 -0700 (PDT) In-Reply-To: <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> <20150701193027.GT50491@over-yonder.net> Date: Thu, 2 Jul 2015 00:53:12 +0200 Message-ID: Subject: Re: geli panics my system after suspend-resume: g_eli_orphan_spoil_assert() called for cd0.eli From: =?UTF-8?B?Sm9zw6kgR2FyY8OtYSBKdWFuaW5v?= To: "Matthew D. Fuller" Cc: Pawel Jakub Dawidek , freebsd-geom@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 22:53:13 -0000 On 1 July 2015 at 21:30, Matthew D. Fuller wrote= : > 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.htm= l) > 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 0xfff= ffe011ba81b10 > g_spoil_event() at g_spoil_event+0x72/frame 0xfffffe011ba81b40 > g_media_changed_event() at g_media_changed_event+0x68/frame 0xfffffe011ba= 81b70 > 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=C3=A9 for that; added him back to CC. Hi, thanks for your support! You can see the console output here, after setting kern.geom.debugflags=3D5 in /boot/loader.conf: http://picpaste.com/panic_geli.jpg Previously, I ran: # geli attach -r /dev/cd0 # mount /dev/cd0.eli /cdrom ### close the laptop lid and waits a few seconds. The system suspends. ### open the laptop again. The system resumes. Wait a few seconds: the system panics. Best regards