Skip to contentSkip to conversation

Bogus KERN_ALERT on oops

PATCH In review Alexey Dobriyan 3 participants 5 messages Oct 22, 2007 – Oct 24, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Bogus KERN_ALERT on oops

printing eip: f881b9f3 *pdpt = 0000000000003001 <1>*pde = 000000000480a067 *pte = 0000000000000000

						^^^

---

 arch/x86/mm/fault_32.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/mm/fault_32.c +1 -1
@@ -550,7 +550,7 @@ no_context:
 			page &= PAGE_MASK;
 			page = ((__typeof__(page) *) __va(page))[(address >> PMD_SHIFT)
 			                                         & (PTRS_PER_PMD - 1)];
-			printk(KERN_ALERT "*pde = %016Lx ", page);
+			printk("*pde = %016Lx ", page);
 			page &= ~_PAGE_NX;
 		}
 #else
#1 lore raw

Hi Alexey,

arch/x86/mm/fault_32.c no_context: · line 553

Quoted 10 lines · Alexey Dobriyan

printing eip: f881b9f3 *pdpt = 0000000000003001 <1>*pde = 000000000480a067 *pte = 0000000000000000

arch/x86/mm/fault_32.c +1 -1
@@ -550,7 +550,7 @@ no_context:
                        page &= PAGE_MASK;
                        page = ((__typeof__(page) *) __va(page))[(address >> PMD_SHIFT)
                                                                 & (PTRS_PER_PMD - 1)];
-                       printk(KERN_ALERT "*pde = %016Lx ", page);
+                       printk("*pde = %016Lx ", page);

Use the new KERN_CONT annotation here?

#4 lore raw
In reply to Alexey Dobriyan
Quoted 2 lines · Alexey Dobriyan

printing eip: f881b9f3 *pdpt = 0000000000003001 <1>*pde = 000000000480a067 *pte = 0000000000000000

						^^^

thanks, added this to the x86 queue.

Ingo

#2 lore raw
In reply to Pekka Enberg
Quoted 4 lines · Pekka Enberg

arch/x86/mm/fault_32.c no_context: · line 553

Quoted 2 lines
arch/x86/mm/fault_32.c +1 -1
-                       printk(KERN_ALERT "*pde = %016Lx ", page);
+                       printk("*pde = %016Lx ", page);

Use the new KERN_CONT annotation here?

indeed - i changed the patch to do that.

Ingo

#3 lore raw
Quoted 9 lines · Ingo Molnar
Quoted 4 lines · Pekka Enberg

arch/x86/mm/fault_32.c no_context: · line 553

Quoted 2 lines
arch/x86/mm/fault_32.c +1 -1
-                       printk(KERN_ALERT "*pde = %016Lx ", page);
+                       printk("*pde = %016Lx ", page);

Use the new KERN_CONT annotation here?

indeed - i changed the patch to do that.

Might as well change comment around KERN_CONT -- for starters it lied about "early bootup" phase since day one.

Proposed text:

/*
* Annotation for a "continued" line of log printout (only done
* after a line that had no enclosing \n).
*
* Introduced because checkpatch.pl couldn't be arsed to learn C
* and distinguish continued printk() from the one that starts
* new line.
*
* Caveat #1: Empty string-literal, so compiler can't check for
* KERN_CONT misuse.
* Caveat #2: Empty string-literal, so it can't be used in
* printk(var); situations.
* Caveat #3: takes characters on the screen, so code is harder
* to read.
* Caveat #4: checkpatch.pl doesn't know C, so it can't check
* for KERN_CONT misuse, anyway.
*/