public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Reuben Farrelly <reuben-lkml@reub.net>
To: Ingo Molnar <mingo@elte.hu>
Cc: Andrew Morton <akpm@osdl.org>, linux-kernel@vger.kernel.org
Subject: Re: [patch] spinlock-debug fix
Date: Mon, 27 Jun 2005 22:57:07 +1200	[thread overview]
Message-ID: <42BFDB83.9080500@reub.net> (raw)
In-Reply-To: <20050627094844.GA16357@elte.hu>

Hi,

On 27/06/2005 9:48 p.m., Ingo Molnar wrote:
> * Andrew Morton <akpm@osdl.org> wrote:
> 
>> Reuben Farrelly <reuben-lkml@reub.net> wrote:
>>>  > Anyway, scary trace.  It look like some spinlock is thought to be in the
>>>  > wrong state in schedule().  Send the .config, please.
>>>
>>>  Now online at  http://www.reub.net/kernel/.config
>> Me too.
>>
>> BUG: spinlock recursion on CPU#0, swapper/0, c120d520             
>>  [<c01039ed>] dump_stack+0x19/0x20                   
>>  [<c01d9af2>] spin_bug+0x42/0x54  
>>  [<c01d9bfa>] _raw_spin_lock+0x3e/0x84
>>  [<c031d0ad>] _spin_lock+0x9/0x10     
>>  [<c031b9e9>] schedule+0x479/0xbc8
>>  [<c0100cb4>] cpu_idle+0x88/0x8c  
>>  [<c01002c1>] rest_init+0x21/0x28
>>  [<c0442899>] start_kernel+0x151/0x158
>>  [<c010020f>] 0xc010020f              
>> Kernel panic - not syncing: bad locking
>>
>> The bug is in the new spinlock debugging code itself.  Ingo, can you 
>> test that .config please?
> 
> couldnt reproduce it on an UP box, nor on an SMP/HT 2/4-way box, but it 
> finally triggered on a 2-way SMP box.
> 
> the bug is that current->pid is not a unique identifier on SMP (doh!).  
> 
> The patch below fixes the bug - which also happens to be a speedup for 
> the debugging code, as the ->pid dereferencing does not have to be done 
> anymore. Also, i've disabled the panicing for now.
> 
> 	Ingo

This patch fixes it - thanks Ingo.

reuben

      reply	other threads:[~2005-06-27 10:57 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <fa.h6rvsi4.j68fhk@ifi.uio.no>
2005-06-27  6:44 ` 2.6.12-mm2 Reuben Farrelly
2005-06-27  7:24   ` 2.6.12-mm2 Andrew Morton
2005-06-27  7:47     ` 2.6.12-mm2 Reuben Farrelly
2005-06-27  8:22       ` 2.6.12-mm2 Andrew Morton
2005-06-27  9:37         ` 2.6.12-mm2 Ingo Molnar
2005-06-27 21:14           ` 2.6.12-mm2 Andrew Morton
2005-06-28  7:30             ` 2.6.12-mm2 Ingo Molnar
2005-06-27  9:48         ` [patch] spinlock-debug fix Ingo Molnar
2005-06-27 10:57           ` Reuben Farrelly [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42BFDB83.9080500@reub.net \
    --to=reuben-lkml@reub.net \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox