Date: Thu, 21 Jun 2012 19:53:03 +0400 From: "Andrey V. Elsukov" <ae@FreeBSD.org> To: "Kenneth D. Merry" <ken@freebsd.org> Cc: current@freebsd.org Subject: Re: minor GEOM disk API change coming Message-ID: <4FE3435F.9080400@FreeBSD.org> In-Reply-To: <20120621042925.GA44903@nargothrond.kdm.org> References: <20120621042925.GA44903@nargothrond.kdm.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FE3435F.9080400>