From: Chuck Ebbert <76306.1226@compuserve.com>
To: "Keith Chew" <keith.chew@gmail.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: IRQ sharing: BUG: spinlock lockup on CPU#0
Date: Sun, 11 Jun 2006 02:09:42 -0400 [thread overview]
Message-ID: <200606110211_MC3-1-C21E-301E@compuserve.com> (raw)
In-Reply-To: <20f65d530606080351o1be35d15qc528f40c84e6279e@mail.gmail.com>
On Thu, 8 Jun 2006 22:51:17 +1200, Keith Chew wrote:
> We have updated all the 10 PCs kernel to 2.6.16.18. We only have 1 of
> them running in IOAPIC mode (ie local APIC mode support), the rest are
> in XT-PIC. The APIC machine crashed after 24 hours of operation. Below
> is the stack trace. Is this related to the IO APIC, or should we be
> worried about the XT-PIC machines too?
Something has corrupted memory. thread_info->task points to a task_struct
at ed103560, but that task_struct->thread_info contains 00000000, its
command-line field (comm) contains junk and its pid is -1. This is
very hard to diagnose. Are you using 8K stacks? Stack overflow is one
possible cause, the other likely one is random memory scribbles.
I've been playing with this patch but it's only boot tested on one config.
It should catch this kind of corruption earlier but I can't easily test
that.
Whether IO-APIC caused this bug or not, it's hard to say...
--- 2.6.17-rc6-nb-post.orig/include/asm-i386/current.h
+++ 2.6.17-rc6-nb-post/include/asm-i386/current.h
@@ -3,6 +3,19 @@
#include <linux/thread_info.h>
+#define CONFIG_PARANOID
+#ifdef CONFIG_PARANOID
+
+/* must be a macro or things will get ugly */
+#define get_current() \
+({ \
+ struct task_struct *task = current_thread_info()->task; \
+ BUG_ON(task->thread_info != current_thread_info()); \
+ task; \
+})
+
+#else
+
struct task_struct;
static __always_inline struct task_struct * get_current(void)
@@ -10,6 +23,8 @@ static __always_inline struct task_struc
return current_thread_info()->task;
}
+#endif
+
#define current get_current()
#endif /* !(_I386_CURRENT_H) */
--
Chuck
next reply other threads:[~2006-06-11 6:12 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-11 6:09 Chuck Ebbert [this message]
2006-06-11 10:28 ` Keith Chew
-- strict thread matches above, loose matches on Subject: below --
2006-06-12 10:42 Chuck Ebbert
2006-06-02 5:33 Chuck Ebbert
2006-06-02 6:17 ` Keith Chew
2006-06-08 10:51 ` Keith Chew
2006-06-02 1:29 Keith Chew
2006-06-02 2:59 ` Andrew Morton
2006-06-02 3:20 ` Keith Chew
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=200606110211_MC3-1-C21E-301E@compuserve.com \
--to=76306.1226@compuserve.com \
--cc=keith.chew@gmail.com \
--cc=linux-kernel@vger.kernel.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®