[patch] 2.3.99-pre10-3 all architectures

From: Keith Owens (kaos@ocs.com.au)
Date: Thu May 25 2000 - 01:31:57 EST


There are too many bug reports being mailed in without following the
bug reporting process. This patch adds "Please read linux/REPORTING-BUGS"
to arch/*/kernel/traps.c on every architecture, against 2.3.99-pre10-3.
Would the various arch maintainers please check it before I send the
patch to Linus.

Index: 99-pre10-3.1/Documentation/oops-tracing.txt
--- 99-pre10-3.1/Documentation/oops-tracing.txt Fri, 12 Nov 1999 18:53:00 +1100 keith (linux-2.3/c/13_oops-traci 1.1.1.2.1.1 644)
+++ 99-pre10-3.1(w)/Documentation/oops-tracing.txt Thu, 25 May 2000 16:15:25 +1000 kaos (linux-2.3/c/13_oops-traci 1.1.1.2.1.1 644)
@@ -16,6 +16,9 @@
 linux-kernel@vger.rutgers.edu. Thanks for your help in making Linux as
 stable as humanly possible.
 
+If ksymoops is not installed, get it from
+ftp://ftp.kernel.org/pub/linux/utils/kernel/ksymoops
+
 Where is the_oops.txt?
 ----------------------
 
Index: 99-pre10-3.1/arch/arm/kernel/traps.c
--- 99-pre10-3.1/arch/arm/kernel/traps.c Mon, 22 May 2000 20:03:20 +1000 kaos (linux-2.3/g/9_traps.c 1.10.1.3 644)
+++ 99-pre10-3.1(w)/arch/arm/kernel/traps.c Thu, 25 May 2000 16:25:10 +1000 kaos (linux-2.3/g/9_traps.c 1.10.1.3 644)
@@ -145,6 +145,7 @@
         spin_lock_irq(&die_lock);
 
         console_verbose();
+ printk("Please read linux/REPORTING-BUGS\n");
         printk("Internal error: %s: %x\n", str, err);
         printk("CPU: %d\n", smp_processor_id());
         show_regs(regs);
Index: 99-pre10-3.1/arch/sparc64/kernel/traps.c
--- 99-pre10-3.1/arch/sparc64/kernel/traps.c Tue, 09 May 2000 22:30:45 +1000 kaos (linux-2.3/j/8_traps.c 1.8 644)
+++ 99-pre10-3.1(w)/arch/sparc64/kernel/traps.c Thu, 25 May 2000 16:24:40 +1000 kaos (linux-2.3/j/8_traps.c 1.8 644)
@@ -663,6 +663,7 @@
 " /_| \\__/ |_\\\n"
 " \\__U_/\n");
 
+ printk("Please read linux/REPORTING-BUGS\n");
         printk("%s(%d): %s\n", current->comm, current->pid, str);
         __asm__ __volatile__("flushw");
         __show_regs(regs);
Index: 99-pre10-3.1/arch/m68k/kernel/traps.c
--- 99-pre10-3.1/arch/m68k/kernel/traps.c Tue, 01 Feb 2000 21:24:33 +1100 keith (linux-2.3/l/49_traps.c 1.6 644)
+++ 99-pre10-3.1(w)/arch/m68k/kernel/traps.c Thu, 25 May 2000 16:24:07 +1000 kaos (linux-2.3/l/49_traps.c 1.6 644)
@@ -1022,6 +1022,7 @@
                 return;
 
         console_verbose();
+ printk("Please read linux/REPORTING-BUGS\n");
         printk("%s: %08x\n",str,nr);
         printk("PC: [<%08lx>]\nSR: %04x SP: %p a2: %08lx\n",
                fp->pc, fp->sr, fp, fp->a2);
Index: 99-pre10-3.1/arch/ppc/kernel/traps.c
--- 99-pre10-3.1/arch/ppc/kernel/traps.c Tue, 16 May 2000 21:50:57 +1000 kaos (linux-2.3/p/9_traps.c 1.13 644)
+++ 99-pre10-3.1(w)/arch/ppc/kernel/traps.c Thu, 25 May 2000 16:23:40 +1000 kaos (linux-2.3/p/9_traps.c 1.13 644)
@@ -74,6 +74,7 @@
 {
         if (!user_mode(regs))
         {
+ printk("Please read linux/REPORTING-BUGS\n");
                 show_regs(regs);
 #if defined(CONFIG_XMON) || defined(CONFIG_KGDB)
                 debugger(regs);
@@ -100,6 +101,7 @@
                         return;
                 }
 #endif
+ printk("Please read linux/REPORTING-BUGS\n");
                 printk("Machine check in kernel mode.\n");
                 printk("Caused by (from SRR1=%lx): ", regs->msr);
                 switch (regs->msr & 0xF0000) {
@@ -137,6 +139,7 @@
                 return;
         }
 #endif
+ printk("Please read linux/REPORTING-BUGS\n");
         show_regs(regs);
         print_backtrace((unsigned long *)regs->gpr[1]);
         panic("System Management Interrupt");
@@ -238,6 +241,7 @@
 #if defined(CONFIG_XMON) || defined(CONFIG_KGDB)
         debugger(regs);
 #endif
+ printk("Please read linux/REPORTING-BUGS\n");
         show_regs(regs);
         print_backtrace((unsigned long *)regs->gpr[1]);
         panic("kernel stack overflow");
@@ -259,6 +263,7 @@
         int errcode;
 
         if (!user_mode(regs)) {
+ printk("Please read linux/REPORTING-BUGS\n");
                 show_regs(regs);
 #if defined(CONFIG_XMON) || defined(CONFIG_KGDB)
                 debugger(regs);
Index: 99-pre10-3.1/arch/mips/kernel/traps.c
--- 99-pre10-3.1/arch/mips/kernel/traps.c Sun, 14 May 2000 13:15:06 +1000 kaos (linux-2.3/r/19_traps.c 1.5 644)
+++ 99-pre10-3.1(w)/arch/mips/kernel/traps.c Thu, 25 May 2000 16:19:48 +1000 kaos (linux-2.3/r/19_traps.c 1.5 644)
@@ -204,6 +204,7 @@
 {
         console_verbose();
         spin_lock_irq(&die_lock);
+ printk("Please read linux/REPORTING-BUGS\n");
         printk("%s", str);
         if (where)
                 printk(" in %s, line %ld", where, line);
Index: 99-pre10-3.1/arch/sparc/kernel/traps.c
--- 99-pre10-3.1/arch/sparc/kernel/traps.c Tue, 09 May 2000 22:30:45 +1000 kaos (linux-2.3/u/10_traps.c 1.4 644)
+++ 99-pre10-3.1(w)/arch/sparc/kernel/traps.c Thu, 25 May 2000 16:19:19 +1000 kaos (linux-2.3/u/10_traps.c 1.4 644)
@@ -98,6 +98,7 @@
 " /_| \\__/ |_\\\n"
 " \\__U_/\n");
 
+ printk("Please read linux/REPORTING-BUGS\n");
         printk("%s(%d): %s\n", current->comm, current->pid, str);
         show_regs(regs);
 
Index: 99-pre10-3.1/arch/alpha/kernel/traps.c
--- 99-pre10-3.1/arch/alpha/kernel/traps.c Fri, 28 Apr 2000 13:31:47 +1000 kaos (linux-2.3/v/30_traps.c 1.8 644)
+++ 99-pre10-3.1(w)/arch/alpha/kernel/traps.c Thu, 25 May 2000 16:17:54 +1000 kaos (linux-2.3/v/30_traps.c 1.8 644)
@@ -95,6 +95,7 @@
 {
         if (regs->ps & 8)
                 return;
+ printk("Please read linux/REPORTING-BUGS\n");
 #ifdef CONFIG_SMP
         printk("CPU %d ", hard_smp_processor_id());
 #endif
Index: 99-pre10-3.1/arch/i386/kernel/traps.c
--- 99-pre10-3.1/arch/i386/kernel/traps.c Thu, 25 May 2000 16:09:46 +1000 kaos (linux-2.3/x/0_traps.c 1.7.1.3.1.4.4.4 644)
+++ 99-pre10-3.1(w)/arch/i386/kernel/traps.c Thu, 25 May 2000 16:18:37 +1000 kaos (linux-2.3/x/0_traps.c 1.7.1.3.1.4.4.4 644)
@@ -271,6 +271,7 @@
 {
         console_verbose();
         spin_lock_irq(&die_lock);
+ printk("Please read linux/REPORTING-BUGS\n");
         printk("%s: %04lx\n", str, err & 0xffff);
         show_registers(regs);
 
Index: 99-pre10-3.1/arch/sh/kernel/traps.c
--- 99-pre10-3.1/arch/sh/kernel/traps.c Fri, 28 Apr 2000 13:31:47 +1000 kaos (linux-2.3/b/c/39_traps.c 1.6 644)
+++ 99-pre10-3.1(w)/arch/sh/kernel/traps.c Thu, 25 May 2000 16:25:44 +1000 kaos (linux-2.3/b/c/39_traps.c 1.6 644)
@@ -63,6 +63,7 @@
 {
         console_verbose();
         spin_lock_irq(&die_lock);
+ printk("Please read linux/REPORTING-BUGS\n");
         printk("%s: %04lx\n", str, err & 0xffff);
         show_regs(regs);
         spin_unlock_irq(&die_lock);
Index: 99-pre10-3.1/arch/ia64/kernel/traps.c
--- 99-pre10-3.1/arch/ia64/kernel/traps.c Sat, 22 Apr 2000 11:47:29 +1000 kaos (linux-2.3/B/c/22_traps.c 1.4 644)
+++ 99-pre10-3.1(w)/arch/ia64/kernel/traps.c Thu, 25 May 2000 16:26:06 +1000 kaos (linux-2.3/B/c/22_traps.c 1.4 644)
@@ -83,6 +83,7 @@
                 return;
         }
 
+ printk("Please read linux/REPORTING-BUGS\n");
         printk("%s[%d]: %s %ld\n", current->comm, current->pid, str, err);
 
         show_regs(regs);
Index: 99-pre10-3.1/arch/mips64/kernel/traps.c
--- 99-pre10-3.1/arch/mips64/kernel/traps.c Sun, 14 May 2000 13:15:06 +1000 kaos (linux-2.3/K/c/2_traps.c 1.2 644)
+++ 99-pre10-3.1(w)/arch/mips64/kernel/traps.c Thu, 25 May 2000 16:26:18 +1000 kaos (linux-2.3/K/c/2_traps.c 1.2 644)
@@ -178,6 +178,7 @@
 
         console_verbose();
         spin_lock_irq(&die_lock);
+ printk("Please read linux/REPORTING-BUGS\n");
         printk("%s: %04lx\n", str, err & 0xffff);
         show_regs(regs);
         printk("Process %s (pid: %ld, stackpage=%08lx)\n",
Index: 99-pre10-3.1/arch/s390/kernel/traps.c
--- 99-pre10-3.1/arch/s390/kernel/traps.c Sat, 13 May 2000 10:34:21 +1000 kaos (linux-2.3/g/d/42_traps.c 1.1 644)
+++ 99-pre10-3.1(w)/arch/s390/kernel/traps.c Thu, 25 May 2000 16:26:32 +1000 kaos (linux-2.3/g/d/42_traps.c 1.1 644)
@@ -174,6 +174,7 @@
 {
         console_verbose();
         spin_lock_irq(&die_lock);
+ printk("Please read linux/REPORTING-BUGS\n");
         printk("%s: %04lx\n", str, err & 0xffff);
         show_crashed_task_info();
         spin_unlock_irq(&die_lock);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed May 31 2000 - 21:00:13 EST