From owner-freebsd-amd64@FreeBSD.ORG Wed Feb 25 19:18:33 2009 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EC232106566C for ; Wed, 25 Feb 2009 19:18:33 +0000 (UTC) (envelope-from rnoland@FreeBSD.org) Received: from gizmo.2hip.net (gizmo.2hip.net [64.74.207.195]) by mx1.freebsd.org (Postfix) with ESMTP id 8BE848FC22 for ; Wed, 25 Feb 2009 19:18:33 +0000 (UTC) (envelope-from rnoland@FreeBSD.org) Received: from [192.168.1.2] (adsl-156-5-199.bna.bellsouth.net [70.156.5.199]) (authenticated bits=0) by gizmo.2hip.net (8.14.3/8.14.3) with ESMTP id n1PJ0xln012961 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 25 Feb 2009 14:00:59 -0500 (EST) (envelope-from rnoland@FreeBSD.org) From: Robert Noland To: Olivier =?ISO-8859-1?Q?Cochard-Labb=E9?= In-Reply-To: <3131aa530902251014y6606c3d7pb27b80d734140cd0@mail.gmail.com> References: <200902240640.n1O6eLg7058706@www.freebsd.org> <200902250919.19779.jhb@freebsd.org> <3131aa530902251014y6606c3d7pb27b80d734140cd0@mail.gmail.com> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-kRsdmaGMuQUbaOyJJsOx" Organization: FreeBSD Date: Wed, 25 Feb 2009 13:02:13 -0600 Message-Id: <1235588533.1273.71.camel@widget.2hip.net> Mime-Version: 1.0 X-Mailer: Evolution 2.24.4 FreeBSD GNOME Team Port X-Spam-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,RDNS_DYNAMIC autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on gizmo.2hip.net X-Mailman-Approved-At: Wed, 25 Feb 2009 19:24:32 +0000 Cc: freebsd-gnats-submit@freebsd.org, freebsd-amd64@freebsd.org Subject: Re: amd64/132042: drm module crash the system when closing gnome session X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Feb 2009 19:18:34 -0000 --=-kRsdmaGMuQUbaOyJJsOx Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable On Wed, 2009-02-25 at 19:14 +0100, Olivier Cochard-Labb=E9 wrote: > Dear FreeBSD kernel guru, > =20 >=20 > =20 > =20 > This is drm specific and not amd64-specific. >=20 > I know, but on the web page http://www.freebsd.org/send-pr.html, the > category selection don't propose "drm". > Then I choose the category related to the kernel that I'm using. > =20 >=20 > =20 > Please go to frame 8 and 'p *m'. If the 'mtx_lock' member is > 6, then the > mutex is destroyed and it is a use-after-free bug in drm(4). >=20 > (kgdb) frame 8 > #8 0xffffffff802d47aa in _mtx_lock_sleep (m=3D0xffffff000348a968,=20 > tid=3D18446742974229954560, opts=3DVariable "opts" is not available. > ) at /usr/src/sys/kern/kern_mutex.c:339 > 339 owner =3D (struct thread *)(v & ~MTX_FLAGMASK); > (kgdb) p *m > $1 =3D {lock_object =3D {lo_name =3D 0xffffffffaf198e0f "DRM IRQ lock",=20 > lo_type =3D 0xffffffffaf198e0f "DRM IRQ lock", lo_flags =3D 16908288,= =20 > lo_witness_data =3D {lod_list =3D {stqe_next =3D 0x0}, lod_witness = =3D > 0x0}},=20 > mtx_lock =3D 6, mtx_recurse =3D 0} >=20 > The mtx_lock is 6, as you predicted. >=20 > Regards, >=20 > Olivier >=20 > (reading gnu gdb documentation for understanding what "frame" and "p > *m" mean) I just committed several changes to the i915 drm driver in CURRENT. Not the least of which is an overhaul of the irq handler. Can you see if that addresses the issue? robert. --=20 Robert Noland FreeBSD --=-kRsdmaGMuQUbaOyJJsOx Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.10 (FreeBSD) iEYEABECAAYFAkmllbUACgkQM4TrQ4qfRONLXACghCcORO4lVZ4vQfUbVPfFmF6X u3MAn0+3N6IWOKrFFZ94fOpb3bMXLMFf =oskj -----END PGP SIGNATURE----- --=-kRsdmaGMuQUbaOyJJsOx--