From owner-freebsd-amd64@FreeBSD.ORG Wed Feb 25 14:36:18 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 446B91065670; Wed, 25 Feb 2009 14:36:18 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 131F18FC17; Wed, 25 Feb 2009 14:36:18 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (pool-98-109-39-197.nwrknj.fios.verizon.net [98.109.39.197]) by cyrus.watson.org (Postfix) with ESMTPSA id 9596546B52; Wed, 25 Feb 2009 09:36:17 -0500 (EST) Received: from localhost (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.14.3/8.14.3) with ESMTP id n1PEa59O033379; Wed, 25 Feb 2009 09:36:11 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-amd64@freebsd.org Date: Wed, 25 Feb 2009 09:19:19 -0500 User-Agent: KMail/1.9.7 References: <200902240640.n1O6eLg7058706@www.freebsd.org> In-Reply-To: <200902240640.n1O6eLg7058706@www.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200902250919.19779.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Wed, 25 Feb 2009 09:36:11 -0500 (EST) X-Virus-Scanned: ClamAV 0.94.2/9047/Wed Feb 25 05:59:41 2009 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: freebsd-gnats-submit@freebsd.org, Olivier Cochard-Labbe , rnoland@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 14:36:18 -0000 On Tuesday 24 February 2009 1:40:21 am Olivier Cochard-Labbe wrote: > > >Number: 132042 > >Category: amd64 This is drm specific and not amd64-specific. > Fatal trap 12: page fault while in kernel mode > cpuid = 0; apic id = 00 > fault virtual address = 0x258 > fault code = supervisor read data, page not present > > #7 0xffffffff8050c34e in calltrap () at /usr/src/sys/amd64/amd64/exception.S:209 > #8 0xffffffff802d47aa in _mtx_lock_sleep (m=0xffffff000348a968, tid=18446742974229954560, opts=Variable "opts" is not available. > ) at /usr/src/sys/kern/kern_mutex.c:339 > #9 0xffffffff802d4b5f in _mtx_lock_flags (m=Variable "m" is not available. > ) at /usr/src/sys/kern/kern_mutex.c:186 > #10 0xffffffffaf18c11d in i915_irq_wait (kdev=Variable "kdev" is not available. > ) at /usr/src/sys/modules/drm/i915/../../../dev/drm/i915_irq.c:117 > #11 0xffffffffaf194179 in drm_ioctl (kdev=0xffffff0001f76400, cmd=2147771461, data=0xffffff002f9d11d0 "\031Y", flags=67, > p=0xffffff0001e8c000) at /usr/src/sys/modules/drm/drm/../../../dev/drm/drm_drv.c:911 > #12 0xffffffff802ab4d2 in giant_ioctl (dev=0xffffff0001f76400, cmd=2147771461, data=0xffffff002f9d11d0 "\031Y", fflag=67, > td=0xffffff0001e8c000) at /usr/src/sys/kern/kern_conf.c:408 > > (kgdb) up 10 > #10 0xffffffffaf18c11d in i915_irq_wait (kdev=Variable "kdev" is not available. > ) at /usr/src/sys/modules/drm/i915/../../../dev/drm/i915_irq.c:117 > 117 DRM_WAIT_ON(ret, dev_priv->irq_queue, 3 * DRM_HZ, > > > (kgdb) list *0xffffffff802d47aa 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). -- John Baldwin