LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Jiri Kosina <jkosina@suse.cz>
To: Jiri Olsa <olsajiri@gmail.com>,
	Andrew Morton <akpm@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org,
	Nadia Derbey <Nadia.Derbey@bull.net>,
	peifferp@gmail.com
Subject: Re: [BUG] soft lockup detected with ipcs
Date: Sun, 2 Mar 2008 22:23:25 +0100 (CET)	[thread overview]
Message-ID: <Pine.LNX.4.64.0803022214190.15209@jikos.suse.cz> (raw)
In-Reply-To: <20080302120236.61e0ec74.akpm@linux-foundation.org>

On Sun, 2 Mar 2008, Jiri Olsa wrote:

> I got more logs via netconsole, first I ran ipcs it segfaulted next run
> the system freezed.

Did you run ipcs without any arguments? If so, it should only call 
shmctl(SHM_INFO) and shmctl(SHM_STAT), so the only two spinlocks involved 
should be either shmem_inode_info->lock in shm_get_stat() or 
kern_ipc_perm->out_lock in ipc_lock().

Could you please try what is the output with the attached patch below, so 
that we know which spinlock buggers?

Also, could you please provide strace of the first (segfaulting) 
invocation of ipcs?

On Sun, 2 Mar 2008, Andrew Morton wrote:

> > [  144.699366] BUG: unable to handle kernel paging request at virtual address 6b6b6c2b
[ ... ]
> Looks like you got a use-after free when lockdep was playing with a 
> spinlock which is taken in sys_shmctl() or one of its inlined callees.

BTW any idea where does the '2b' come from? (it's single-bit flip).

-- 
Jiri Kosina
SUSE Labs

  reply	other threads:[~2008-03-02 21:23 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-29 10:46 Jiri Olsa
2008-02-29 10:57 ` Andrew Morton
2008-02-29 11:01   ` Jiri Olsa
2008-02-29 11:29     ` Andrew Morton
2008-02-29 11:35       ` Jiri Olsa
2008-02-29 11:43 ` Jiri Kosina
2008-03-02 17:45   ` Jiri Olsa
2008-03-02 20:02     ` Andrew Morton
2008-03-02 21:23       ` Jiri Kosina [this message]
2008-03-02 21:26         ` Jiri Kosina
2008-03-03 12:00           ` Jiri Olsa
2008-03-03 12:06             ` Jiri Kosina
2008-03-03 12:19               ` Jiri Olsa
2008-03-03 12:28                 ` Jiri Kosina
2008-03-03 12:38                   ` Jiri Olsa
2008-03-03 14:04                     ` Jiri Olsa
2008-03-03 14:45                       ` Jiri Kosina
2008-03-04  9:56                         ` Jiri Olsa
2008-03-04 12:57                           ` Jiri Olsa

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=Pine.LNX.4.64.0803022214190.15209@jikos.suse.cz \
    --to=jkosina@suse.cz \
    --cc=Nadia.Derbey@bull.net \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=olsajiri@gmail.com \
    --cc=peifferp@gmail.com \
    --subject='Re: [BUG] soft lockup detected with ipcs' \
    /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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).