From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262086AbULVX70 (ORCPT ); Wed, 22 Dec 2004 18:59:26 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262087AbULVX70 (ORCPT ); Wed, 22 Dec 2004 18:59:26 -0500 Received: from omx2-ext.sgi.com ([192.48.171.19]:22979 "EHLO omx2.sgi.com") by vger.kernel.org with ESMTP id S262086AbULVX7U (ORCPT ); Wed, 22 Dec 2004 18:59:20 -0500 Date: Thu, 23 Dec 2004 10:58:58 +1100 From: Nathan Scott To: "Nathaniel W. Filardo" Cc: Ingo Molnar , LKML Subject: Re: [BUG] XFS crash using Realtime Preemption patch Message-ID: <20041223105858.C702917@wobbly.melbourne.sgi.com> References: <20041221104042.GA31843@elte.hu> <20041222093242.B674830@wobbly.melbourne.sgi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from nwf@andrew.cmu.edu on Wed, Dec 22, 2004 at 02:50:20AM -0500 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 22, 2004 at 02:50:20AM -0500, Nathaniel W. Filardo wrote: > I added > BUG_ON( (mrp->mr_writer != 0) && (mrp->mr_writer != 1) ); > to mrlock.h : mrunlock() to see if it was corruption and got the following Good thinkin. > instead. It's a similar call pathway, but somewhat different. Thats exactly the same call path right? There is no call to down_trylock from xfs_iunlock (goes directly to up_write) so I think that must just be leftover stack junk, and we should assume the path was xfs_iunlock->(inline)mrunlock->up_write, which means your BUG_ON didn't trigger... (put a printk of the value there, maybe we'll get lucky and get some recognisable hex pattern). > kernel BUG at kernel/rt.c:1210! > invalid operand: 0000 [#1] > PREEMPT > Modules linked in: uhci_hcd rtc eth1394 ohci1394 ieee1394 pcmcia > hostap_pci hostap 8139too mii yenta_socket pcmcia_core ehci_hcd > i2c_ali15x3 i2c_core ohci_hcd usbcore tun crc32 > CPU: 0 > EIP: 0060:[] Not tainted VLI > EFLAGS: 00010286 (2.6.10-rc3-mm1-V0.7.33-04-tcfq17) > EIP is at up_write+0x8c/0xa0 > eax: 00000019 ebx: d039171c ecx: 00000000 edx: 00000000 > esi: 00000008 edi: d039168c ebp: 00000000 esp: cf8a6cdc > ds: 007b es: 007b ss: 0068 preempt: 00000001 > Process rm (pid: 8661, threadinfo=cf8a6000 task=d5014370) > Stack: c0357dbb c035a1f6 000004ba c0130ddf 00000010 00000286 d039171c > c01d2d8c > cf8a6000 d038dec8 d020bb44 d039168c d038dec8 d020bb44 c01d735c > cf8a6d38 > cf8a6d3c 00000000 00000000 d6c3eb4c 00000000 d6c3ec00 00000002 > c7af1700 > Call Trace: > [] down_trylock+0x1f/0xb0 (16) > [] xfs_iunlock+0x6c/0x130 (16) > [] xfs_iflush+0x1cc/0x440 (28) -- Nathan