Re: IRQ sharing: BUG: spinlock lockup on CPU#0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In-Reply-To: <[email protected]>

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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux