From owner-freebsd-current@FreeBSD.ORG Thu Jun 21 15:53:28 2012 Return-Path: Delivered-To: current@freebsd.org Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2001:4f8:fff6::35]) by hub.freebsd.org (Postfix) with ESMTP id 721A6106566C; Thu, 21 Jun 2012 15:53:28 +0000 (UTC) (envelope-from ae@FreeBSD.org) Received: from [127.0.0.1] (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 9FA8D158163; Thu, 21 Jun 2012 15:53:14 +0000 (UTC) Message-ID: <4FE3435F.9080400@FreeBSD.org> Date: Thu, 21 Jun 2012 19:53:03 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.3) Gecko/20120406 Thunderbird/10.0.3 MIME-Version: 1.0 To: "Kenneth D. Merry" References: <20120621042925.GA44903@nargothrond.kdm.org> In-Reply-To: <20120621042925.GA44903@nargothrond.kdm.org> X-Enigmail-Version: 1.4 OpenPGP: id=10C8A17A Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigC06ED5B5FAB9FEB9C1E7290A" Cc: current@freebsd.org Subject: Re: minor GEOM disk API change coming X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jun 2012 15:53:28 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigC06ED5B5FAB9FEB9C1E7290A Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable On 21.06.2012 08:29, Kenneth D. Merry wrote: > Fix a bug which causes a panic in daopen(). The panic is caused by > a da(4) instance going away while GEOM is still probing it. > =09 > In this case, the GEOM disk class instance has been created by > disk_create(), and the taste of the disk is queued in the GEOM > event queue. > =09 > While that event is queued, the da(4) instance goes away. When the > open call comes into the da(4) driver, it dereferences the freed > (but non-NULL) peripheral pointer provided by GEOM, which results > in a panic. I think this situation is very specific for the GEOM_DISK class, and this callback will be less useful for other classes. Does g_cancel_event() cannot help you prevent tasting? --=20 WBR, Andrey V. Elsukov --------------enigC06ED5B5FAB9FEB9C1E7290A Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQEcBAEBAgAGBQJP40NlAAoJEAHF6gQQyKF6268H/06qUMl/0Rgjs67wEML2r4lM cKXm7stMsjBhAXImPcwxBlQvcwdtpTIOb0w+BM27uybv82Df+RIaEGsAdxt65rme F0FtTkBq4xYeF19WBthCyPL+X4fvBIGA6vqa79TFHbJ0nbjjPjZRtnBS8HfJ9Oyt nYUr0N3zvKWREGoF1KdffpAWh1AGVRdWuAodq2uUfWUyoIrgNa1wno9QrM4eiAS8 lJO5HH/D1kPsZZr4hPlGUegzUCJXEp7pjFZD2Gvo+t9jFJ1VFHlkwTCom/I5xVpv 1oMIkuGE9BFsxBljTgCWaKLpO9sJDK6BThdubwFT8UBE4Bd/qyCig+OXywOZO04= =TCs6 -----END PGP SIGNATURE----- --------------enigC06ED5B5FAB9FEB9C1E7290A--