From: Andrew Morton <akpm@osdl.org>
To: Dave Jones <davej@redhat.com>
Cc: linux-kernel@vger.kernel.org, torvalds@osdl.org
Subject: Re: memory corruptor in .18rc1-git
Date: Thu, 13 Jul 2006 15:24:25 -0700 [thread overview]
Message-ID: <20060713152425.86412ea3.akpm@osdl.org> (raw)
In-Reply-To: <20060713221330.GB3371@redhat.com>
On Thu, 13 Jul 2006 18:13:30 -0400
Dave Jones <davej@redhat.com> wrote:
> Three times in the last week, I've had a box running the -git-du-jour
> spontaneously reboot. It just happened again, this time I had a serial
> console hooked up, but it rebooted before transferring much data.
> The one thing it did spew however was "List corruption. prev->ne",
> which came from the patch below which I had in my tree.
> (The latter half is likely irrelevant, and came from chasing a different bug)
>
> Things in common at all three times it happened..
> reading email, and listening to oggs with rhythmbox.
> Another ALSA bug maybe ?
>
> I've up'd the speed of the serial console, in the hope that more chars
> make it over the wire before reboot should this happen again.
Are you using SMP? We have a known slab locking bug.
There have been a couple of slab.c patches committed today, but neither of
them appear to actually fix the bug.
The below should fix it, and testing this (disable lockdep) would be
useful.
It's going to take a bit of work to unpickle it all now.
diff -puN mm/slab.c~revert-slabc-lockdep-locking-change mm/slab.c
--- a/mm/slab.c~revert-slabc-lockdep-locking-change
+++ a/mm/slab.c
@@ -3100,16 +3100,7 @@ static void free_block(struct kmem_cache
if (slabp->inuse == 0) {
if (l3->free_objects > l3->free_limit) {
l3->free_objects -= cachep->num;
- /*
- * It is safe to drop the lock. The slab is
- * no longer linked to the cache. cachep
- * cannot disappear - we are using it and
- * all destruction of caches must be
- * serialized properly by the user.
- */
- spin_unlock(&l3->list_lock);
slab_destroy(cachep, slabp);
- spin_lock(&l3->list_lock);
} else {
list_add(&slabp->list, &l3->slabs_free);
}
_
next prev parent reply other threads:[~2006-07-13 22:24 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-13 22:13 Dave Jones
2006-07-13 22:24 ` Andrew Morton [this message]
2006-07-13 22:30 ` Dave Jones
2006-07-14 4:12 ` Willy Tarreau
2006-07-14 4:20 ` Dave Jones
2006-07-14 4:25 ` Willy Tarreau
2006-07-14 4:31 ` Dave Jones
2006-07-15 19:54 Chuck Ebbert
2006-07-15 20:04 ` Dave Jones
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=20060713152425.86412ea3.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=davej@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.org \
/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
all inboxes | Powered by JetHome®