Skip to contentSkip to conversation

kernel oops with 2.6.17-rc1 & 2.6.17-rc2

DISCUSSION Per Øyvind Karlsen 2 participants 6 messages Apr 27, 2006 – May 5, 2006

lore
Share & tools
lore
#0 lore raw

When running 2.6.17-rc1 or rc2 I seem to get a lot of these oops, not certain about what exactly causes those, but might seem to happen during a little load..
2.6.16 runs fine without this ever happening.

Machine is a blade 100..

Unable to handle kernel paging request in mna handler<1> at virtual address 
00000000445173d6
current->{active_,}mm->context = 00000000000010f8
current->{active_,}mm->pgd = fffff80002de6000
              \|/ ____ \|/
              "@'/ .. \`@"
              /_| \__/ |_\
                 \__U_/

sh(8558): Oops [#1]
TSTATE: 0000000011009406 TPC: 0000000000439e14 TNPC: 0000000000439e18 Y:
00000000 Not tainted
TPC: <__flush_tlb_pending+0x34/0x80>
g0: fffff8000bd1efe0 g1: ffffffffffc00000 g2: 00000000000010f8 g3:
fffff80007194000
g4: fffff80003665760 g5: 0000000000350049 g6: fffff80007194000 g7:
0000000000000096
o0: 00000000000010f8 o1: fffffffffffff2d0 o2: 00000000006fc608 o3:
00000000445173d6
o4: 0000000000000010 o5: 000000000000000c sp: fffff80007197431 ret_pc:
000000000043a1b8
RPC: <flush_tlb_pending+0x58/0x6c>
l0: 00000000006fc400 l1: 00000000006fc5f0 l2: 00000000fff0c000 l3:
00000000fff0c000
l4: fffff8000c2bfc30 l5: fffff8000aff5c30 l6: fffff8000eab8800 l7:
fffff80008684800
i0: fffff8000bd1f040 i1: fffff8000bd1e160 i2: fffff80003f0fe78 i3:
fffff80002de6004
i4: 00000000fff0c000 i5: fffff80022d16004 i6: fffff800071974f1 i7:
0000000000447900
I7: <copy_process+0x9c8/0x1080>
Caller[0000000000447900]: copy_process+0x9c8/0x1080 Caller[0000000000448048]: do_fork+0x90/0x1b4 Caller[0000000000406a94]: linux_sparc_syscall32+0x34/0x40 Caller[00000000f7ea6978]: 0xf7ea6978
Instruction DUMP: 962ae001 02400003 9612e010 <c0f2cae0> c0f2cbe0 8143e040 0afa7ff7 01000000 c4f30b00

Signature · 3 lines
Regards,
Per Øyvind Karlsen
Mandrakesoft becomes Mandriva
#1 lore raw

From: Per Øyvind Karlsen <[email protected]>
Date: Fri, 28 Apr 2006 00:42:07 +0200

Quoted 6 lines

When running 2.6.17-rc1 or rc2 I seem to get a lot of these oops, not certain about what exactly causes those, but might seem to happen during a little load..
2.6.16 runs fine without this ever happening.

Machine is a blade 100..

Thanks, this is the second report like this. The theory is that tlb->nr is becoming negative for some reason or otherwise being corrupted.

I'll try to reproduce that here.

#2 lore raw
In reply to Per Øyvind Karlsen

From: Per Øyvind Karlsen <[email protected]>
Date: Fri, 28 Apr 2006 00:42:07 +0200

Quoted 6 lines

When running 2.6.17-rc1 or rc2 I seem to get a lot of these oops, not certain about what exactly causes those, but might seem to happen during a little load..
2.6.16 runs fine without this ever happening.

Machine is a blade 100..

I did some investigating. Do you have preemption enabled? That's the only way this bug could possibly trigger.

Jim reported a nearly identical OOPS to your's and his provided config has preemption enabled.

This patch should fix the problem:

arch/sparc64/mm/tlb.c +5 -0
index a079cf4..3f10fc9 100644
@@ -8,6 +8,7 @@ #include <linux/init.h>
 #include <linux/percpu.h>
 #include <linux/mm.h>
 #include <linux/swap.h>
+#include <linux/preempt.h>
 
 #include <asm/pgtable.h>
 #include <asm/pgalloc.h>
@@ -24,6 +25,8 @@ void flush_tlb_pending(void)
 {
 	struct mmu_gather *mp = &__get_cpu_var(mmu_gathers);
 
+	preempt_disable();
+
 	if (mp->tlb_nr) {
 		flush_tsb_user(mp);
 
@@ -38,6 +41,8 @@ #endif
 		}
 		mp->tlb_nr = 0;
 	}
+
+	preempt_enable();
 }
 
 void tlb_batch_add(struct mm_struct *mm, unsigned long vaddr, pte_t *ptep, pte_t orig)
#3 lore raw
In reply to Per Øyvind Karlsen

Mandag 01 mai 2006 07:51, skrev du :

Quoted 8 lines

From: Per Øyvind Karlsen <[email protected]>
Date: Fri, 28 Apr 2006 00:42:07 +0200

Quoted 5 lines

When running 2.6.17-rc1 or rc2 I seem to get a lot of these oops, not certain about what exactly causes those, but might seem to happen during a little load..
2.6.16 runs fine without this ever happening.

Quoted 4 lines
Quoted 1 line

Machine is a blade 100..

I did some investigating. Do you have preemption enabled? That's the only way this bug could possibly trigger.

Yupps

Quoted 36 lines

Jim reported a nearly identical OOPS to your's and his provided config has preemption enabled.

This patch should fix the problem:

arch/sparc64/mm/tlb.c +5 -0
index a079cf4..3f10fc9 100644
@@ -8,6 +8,7 @@ #include <linux/init.h>
 #include <linux/percpu.h>
 #include <linux/mm.h>
 #include <linux/swap.h>
+#include <linux/preempt.h>
 
 #include <asm/pgtable.h>
 #include <asm/pgalloc.h>
@@ -24,6 +25,8 @@ void flush_tlb_pending(void)
 {
 	struct mmu_gather *mp = &__get_cpu_var(mmu_gathers);
 
+	preempt_disable();
+
 	if (mp->tlb_nr) {
 		flush_tsb_user(mp);
 
@@ -38,6 +41,8 @@ #endif
 		}
 		mp->tlb_nr = 0;
 	}
+
+	preempt_enable();
 }
 
 void tlb_batch_add(struct mm_struct *mm, unsigned long vaddr, pte_t *ptep,
Quoted 4 lines

pte_t orig) -
To unsubscribe from this list: send the line "unsubscribe sparclinux" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

This didn't do the trick, it made things crash at once, spitting out several pages of errors.. :\
A lot of these with tracebacks..

BUG: scheduling while atomic: swapper/0x00000011/1
Signature · 3 lines
Regards,
Per Øyvind Karlsen
Mandrakesoft becomes Mandriva
#4 lore raw
In reply to Per Øyvind Karlsen

From: Per Øyvind Karlsen <[email protected]>
Date: Thu, 4 May 2006 15:21:25 +0200

Quoted 4 lines

This didn't do the trick, it made things crash at once, spitting out several pages of errors.. :\
A lot of these with tracebacks..

BUG: scheduling while atomic: swapper/0x00000011/1

Thanks for testing, I'll try to figure out what's wrong.

#5 lore raw
In reply to Per Øyvind Karlsen

Fredag 05 mai 2006 01:07, skrev David S. Miller:

Quoted 9 lines

From: Per Øyvind Karlsen <[email protected]>
Date: Thu, 4 May 2006 15:21:25 +0200

Quoted 4 lines

This didn't do the trick, it made things crash at once, spitting out several pages of errors.. :\
A lot of these with tracebacks..

BUG: scheduling while atomic: swapper/0x00000011/1

Thanks for testing, I'll try to figure out what's wrong.

I responded to this one yesterday, but I noticed that I only responded to myself :o)
Anyways, I applied the patch wrong, tried it again and it seems to work now :)

Signature · 3 lines
Regards,
Per Øyvind Karlsen
Mandrakesoft becomes Mandriva