From: Vegard Nossum <vegard.nossum@gmail.com>
To: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: David Howells <dhowells@redhat.com>,
Serge Hallyn <serue@us.ibm.com>,
LKML <linux-kernel@vger.kernel.org>,
Lee Schermerhorn <Lee.Schermerhorn@hp.com>
Subject: Re: [CRED bug?] 2.6.29-rc3 don't survive on stress workload
Date: Tue, 10 Feb 2009 08:10:29 +0100 [thread overview]
Message-ID: <19f34abd0902092310g513fb776s2e4d37285c8fa7be@mail.gmail.com> (raw)
In-Reply-To: <20090210142443.629E.KOSAKI.MOTOHIRO@jp.fujitsu.com>
[-- Attachment #1: Type: text/plain, Size: 686 bytes --]
On Tue, Feb 10, 2009 at 6:41 AM, KOSAKI Motohiro
<kosaki.motohiro@jp.fujitsu.com> wrote:
> Hi
>
> I periodically test kernel on stress workload.
> Unfortunately, recent kerenel don't survive >24H.
>
> It paniced with following stack.
> Do you have any suggestions?
>
> thanks!
That stack trace looks somewhat similar to the one in
http://lkml.org/lkml/2009/2/6/136
If this is reproducible, maybe a patch like the one attached can help
pinpoint it?
Vegard
--
"The animistic metaphor of the bug that maliciously sneaked in while
the programmer was not looking is intellectually dishonest as it
disguises that the error is the programmer's own creation."
-- E. W. Dijkstra, EWD1036
[-- Attachment #2: kref-warn_on.patch --]
[-- Type: application/octet-stream, Size: 672 bytes --]
diff --git a/lib/kref.c b/lib/kref.c
index 1599dbf..a547ad3 100644
--- a/lib/kref.c
+++ b/lib/kref.c
@@ -40,7 +40,7 @@ void kref_init(struct kref *kref)
*/
void kref_get(struct kref *kref)
{
- WARN_ON(!atomic_read(&kref->refcount));
+ WARN_ON(atomic_read(&kref->refcount) <= 0);
atomic_inc(&kref->refcount);
smp_mb__after_atomic_inc();
}
@@ -63,7 +63,7 @@ int kref_put(struct kref *kref, void (*release)(struct kref *kref))
{
WARN_ON(release == NULL);
WARN_ON(release == (void (*)(struct kref *))kfree);
- WARN_ON(!atomic_read(&kref->refcount));
+ WARN_ON(atomic_read(&kref->refcount) <= 0);
if (atomic_dec_and_test(&kref->refcount)) {
release(kref);
next prev parent reply other threads:[~2009-02-10 7:10 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-10 5:41 KOSAKI Motohiro
2009-02-10 7:10 ` Vegard Nossum [this message]
2009-02-10 7:28 ` KOSAKI Motohiro
2009-02-11 3:56 ` Vegard Nossum
2009-02-11 10:48 ` David Howells
2009-02-10 12:18 ` Ingo Molnar
2009-02-11 12:25 ` KOSAKI Motohiro
2009-02-11 12:54 ` David Howells
2009-02-10 10:35 ` David Howells
2009-02-10 10:49 ` KOSAKI Motohiro
2009-02-11 12:41 ` David Howells
2009-02-11 12:52 ` KOSAKI Motohiro
2009-02-11 13:09 ` David Howells
2009-02-11 14:04 ` KOSAKI Motohiro
2009-02-11 16:33 ` Ingo Molnar
2009-02-11 17:07 ` David Howells
2009-02-11 17:19 ` Ingo Molnar
2009-02-12 11:09 ` David Howells
2009-02-12 11:23 ` KOSAKI Motohiro
2009-02-12 12:04 ` David Howells
2009-02-12 14:39 ` Serge E. Hallyn
2009-02-12 17:18 ` David Howells
2009-02-13 4:44 ` KOSAKI Motohiro
2009-02-13 8:28 ` Ingo Molnar
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=19f34abd0902092310g513fb776s2e4d37285c8fa7be@mail.gmail.com \
--to=vegard.nossum@gmail.com \
--cc=Lee.Schermerhorn@hp.com \
--cc=dhowells@redhat.com \
--cc=kosaki.motohiro@jp.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=serue@us.ibm.com \
/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®