Re: 2.6.9-rc4-mm1

From: Oleg Nesterov
Date: Mon Oct 11 2004 - 07:49:14 EST


Hello.

arch/i386/kernel/traps.c damaged. CONFIG_KGDB stuff
inside print_context_stack().

Oleg.

--- 2.6.9-rc4-mm1/arch/i386/kernel/traps.c~ Mon Oct 11 16:32:07 2004
+++ 2.6.9-rc4-mm1/arch/i386/kernel/traps.c Mon Oct 11 16:32:55 2004
@@ -105,17 +105,6 @@ int register_die_notifier(struct notifie
return err;
}

-static inline int valid_stack_ptr(struct thread_info *tinfo, void *p)
-{
- return p > (void *)tinfo &&
- p < (void *)tinfo + THREAD_SIZE - 3;
-}
-
-static inline unsigned long print_context_stack(struct thread_info *tinfo,
- unsigned long *stack, unsigned long ebp)
-{
- unsigned long addr;
-
#ifdef CONFIG_KGDB
extern void sysenter_past_esp(void);
#include <asm/kgdb.h>
@@ -149,6 +138,16 @@ void breakpoint(void)
#define CHK_REMOTE_DEBUG(trapnr,signr,error_code,regs,after)
#endif

+static inline int valid_stack_ptr(struct thread_info *tinfo, void *p)
+{
+ return p > (void *)tinfo &&
+ p < (void *)tinfo + THREAD_SIZE - 3;
+}
+
+static inline unsigned long print_context_stack(struct thread_info *tinfo,
+ unsigned long *stack, unsigned long ebp)
+{
+ unsigned long addr;

#ifdef CONFIG_FRAME_POINTER
while (valid_stack_ptr(tinfo, (void *)ebp)) {
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/