Linux s390 Architecture development
 help / color / mirror / Atom feed
* [BUG] 2.6.25-rc2-mm1 - kernel oops while bootup on s390x
       [not found] <20080216002522.9c4bd0fb.akpm@linux-foundation.org>
@ 2008-02-16 16:15 ` Kamalesh Babulal
  2008-02-16 19:45   ` Andrew Morton
  0 siblings, 1 reply; 7+ messages in thread
From: Kamalesh Babulal @ 2008-02-16 16:15 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel, linux390, linux-s390, Andy Whitcroft

Hi Andrew,

The 2.6.25-rc2-mm1 kernel panic's while boot up on the s390x

Unable to handle kernel pointer dereference at virtual kernel address 0000000000
000000
Oops: 0004 #1¨ SMP
Modules linked in:
CPU: 0 Not tainted 2.6.25-rc2-mm1-autotest #1
Process swapper (pid: 1, task: 000000003f830000, ksp: 000000003f83ba48)
Krnl PSW : 0704a00180000000 000000000024b2be (futex_atomic_cmpxchg_std+0x12/0x28
)
           R:0 T:1 IO:1 EX:1 Key:0 M:1 W:0 P:0 AS:2 CC:2 PM:0 EA:3
Krnl GPRS: 0000000000000074 00000000fffffff2 0000000000000000 0000000000000000
           0000000000000000 0000000000000001 0000000000000000 00000000004d0764
           0000000000000000 00000000004d8768 0000000000000000 000000003f83bdb0
           0000000000000040 0000000000343950 00000000000627e4 000000003f83bdb0
Krnl Code: 000000000024b2b2: b90400bf           lgr     %r11,%r15
           000000000024b2b6: a718fff2           lhi     %r1,-14
           000000000024b2ba: b2790100           sacf    256
          >000000000024b2be: ba342000           cs      %r3,%r4,0(%r2)
           000000000024b2c2: 1813               lr      %r1,%r3
           000000000024b2c4: b2790000           sacf    0
           000000000024b2c8: b9140021           lgfr    %r2,%r1
           000000000024b2cc: e3b0b0700004       lg      %r11,112(%r11)
Call Trace:
(<000000003f83bda8>¨ 0x3f83bda8)
 <00000000004bdeec>¨ init+0x30/0x104
 <00000000004b0c40>¨ kernel_init+0x1e0/0x370
 <000000000001a5c6>¨ kernel_thread_starter+0x6/0xc
 <000000000001a5c0>¨ kernel_thread_starter+0x0/0xc

 <4>--- end trace 561bb236c800851f ¨---
note: swapper1¨ exited with preempt_count 1
Kernel panic - not syncing: Attempted to kill init!

-- 
Thanks & Regards,
Kamalesh Babulal,
Linux Technology Center,
IBM, ISTL.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [BUG] 2.6.25-rc2-mm1 - kernel oops while bootup on s390x
  2008-02-16 16:15 ` [BUG] 2.6.25-rc2-mm1 - kernel oops while bootup on s390x Kamalesh Babulal
@ 2008-02-16 19:45   ` Andrew Morton
  2008-02-16 19:49     ` Thomas Gleixner
  0 siblings, 1 reply; 7+ messages in thread
From: Andrew Morton @ 2008-02-16 19:45 UTC (permalink / raw)
  To: Kamalesh Babulal
  Cc: linux-kernel, linux390, linux-s390, Andy Whitcroft,
	Thomas Gleixner

On Sat, 16 Feb 2008 21:45:54 +0530 Kamalesh Babulal <kamalesh@linux.vnet.ibm.com> wrote:

> Hi Andrew,
> 
> The 2.6.25-rc2-mm1 kernel panic's while boot up on the s390x
> 
> Unable to handle kernel pointer dereference at virtual kernel address 0000000000
> 000000
> Oops: 0004 #1¨ SMP
> Modules linked in:
> CPU: 0 Not tainted 2.6.25-rc2-mm1-autotest #1
> Process swapper (pid: 1, task: 000000003f830000, ksp: 000000003f83ba48)
> Krnl PSW : 0704a00180000000 000000000024b2be (futex_atomic_cmpxchg_std+0x12/0x28
> )
>            R:0 T:1 IO:1 EX:1 Key:0 M:1 W:0 P:0 AS:2 CC:2 PM:0 EA:3
> Krnl GPRS: 0000000000000074 00000000fffffff2 0000000000000000 0000000000000000
>            0000000000000000 0000000000000001 0000000000000000 00000000004d0764
>            0000000000000000 00000000004d8768 0000000000000000 000000003f83bdb0
>            0000000000000040 0000000000343950 00000000000627e4 000000003f83bdb0
> Krnl Code: 000000000024b2b2: b90400bf           lgr     %r11,%r15
>            000000000024b2b6: a718fff2           lhi     %r1,-14
>            000000000024b2ba: b2790100           sacf    256
>           >000000000024b2be: ba342000           cs      %r3,%r4,0(%r2)
>            000000000024b2c2: 1813               lr      %r1,%r3
>            000000000024b2c4: b2790000           sacf    0
>            000000000024b2c8: b9140021           lgfr    %r2,%r1
>            000000000024b2cc: e3b0b0700004       lg      %r11,112(%r11)
> Call Trace:
> (<000000003f83bda8>¨ 0x3f83bda8)
>  <00000000004bdeec>¨ init+0x30/0x104
>  <00000000004b0c40>¨ kernel_init+0x1e0/0x370
>  <000000000001a5c6>¨ kernel_thread_starter+0x6/0xc
>  <000000000001a5c0>¨ kernel_thread_starter+0x0/0xc
> 
>  <4>--- end trace 561bb236c800851f ¨---
> note: swapper1¨ exited with preempt_count 1
> Kernel panic - not syncing: Attempted to kill init!
> 

Possibilities are that something has gone wrong with the recent cmpxchg
changes which are now in mainline, or there's something wrong with
futex-fix-init-order.patch or
futex-runtime-enable-pi-and-robust-functionality.patch.

Or, of course, it's something else ;)

First question is: does this happen in current mainline?

If not, it would be useful if someone could test futex-fix-init-order.patch
and futex-runtime-enable-pi-and-robust-functionality.patch on curent
mainline, because those are planned for 2.6.25.

Thanks.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [BUG] 2.6.25-rc2-mm1 - kernel oops while bootup on s390x
  2008-02-16 19:45   ` Andrew Morton
@ 2008-02-16 19:49     ` Thomas Gleixner
  2008-02-16 19:50       ` Thomas Gleixner
  0 siblings, 1 reply; 7+ messages in thread
From: Thomas Gleixner @ 2008-02-16 19:49 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Kamalesh Babulal, linux-kernel, linux390, linux-s390,
	Andy Whitcroft

[-- Attachment #1: Type: TEXT/PLAIN, Size: 618 bytes --]

On Sat, 16 Feb 2008, Andrew Morton wrote:
> > The 2.6.25-rc2-mm1 kernel panic's while boot up on the s390x
> > 
> > Unable to handle kernel pointer dereference at virtual kernel address 0000000000
> > 000000
> > Oops: 0004 #1¨ SMP
> First question is: does this happen in current mainline?
> 
> If not, it would be useful if someone could test futex-fix-init-order.patch
> and futex-runtime-enable-pi-and-robust-functionality.patch on curent
> mainline, because those are planned for 2.6.25.

See: http://lkml.org/lkml/2008/2/16/109

It unearthed a BUG in the S390 exception fixup tables :)

   tglx
 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [BUG] 2.6.25-rc2-mm1 - kernel oops while bootup on s390x
  2008-02-16 19:49     ` Thomas Gleixner
@ 2008-02-16 19:50       ` Thomas Gleixner
  2008-02-17  3:40         ` Kamalesh Babulal
  0 siblings, 1 reply; 7+ messages in thread
From: Thomas Gleixner @ 2008-02-16 19:50 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Kamalesh Babulal, linux-kernel, linux390, linux-s390,
	Andy Whitcroft

[-- Attachment #1: Type: TEXT/PLAIN, Size: 766 bytes --]

On Sat, 16 Feb 2008, Thomas Gleixner wrote:
> On Sat, 16 Feb 2008, Andrew Morton wrote:
> > > The 2.6.25-rc2-mm1 kernel panic's while boot up on the s390x
> > > 
> > > Unable to handle kernel pointer dereference at virtual kernel address 0000000000
> > > 000000
> > > Oops: 0004 #1¨ SMP
> > First question is: does this happen in current mainline?
> > 
> > If not, it would be useful if someone could test futex-fix-init-order.patch
> > and futex-runtime-enable-pi-and-robust-functionality.patch on curent
> > mainline, because those are planned for 2.6.25.
> 
> See: http://lkml.org/lkml/2008/2/16/109
> 
> It unearthed a BUG in the S390 exception fixup tables :)

Oops, wrong reference.

      http://lkml.org/lkml/2008/2/16/95

Thanks,
	tglx

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [BUG] 2.6.25-rc2-mm1 - kernel oops while bootup on s390x
  2008-02-16 19:50       ` Thomas Gleixner
@ 2008-02-17  3:40         ` Kamalesh Babulal
  2008-02-17  9:06           ` Heiko Carstens
  0 siblings, 1 reply; 7+ messages in thread
From: Kamalesh Babulal @ 2008-02-17  3:40 UTC (permalink / raw)
  To: Thomas Gleixner
  Cc: Andrew Morton, linux-kernel, linux390, linux-s390, Andy Whitcroft

Thomas Gleixner wrote:
> On Sat, 16 Feb 2008, Thomas Gleixner wrote:
>> On Sat, 16 Feb 2008, Andrew Morton wrote:
>>>> The 2.6.25-rc2-mm1 kernel panic's while boot up on the s390x
>>>>
>>>> Unable to handle kernel pointer dereference at virtual kernel address 0000000000
>>>> 000000
>>>> Oops: 0004 #1¨ SMP
>>> First question is: does this happen in current mainline?

This is not happening with the current mainline 2.6.24.{1,2}.
>>>
>>> If not, it would be useful if someone could test futex-fix-init-order.patch
>>> and futex-runtime-enable-pi-and-robust-functionality.patch on curent
>>> mainline, because those are planned for 2.6.25.
>> See: http://lkml.org/lkml/2008/2/16/109
>>
>> It unearthed a BUG in the S390 exception fixup tables :)
> 
> Oops, wrong reference.
> 
>       http://lkml.org/lkml/2008/2/16/95
> 
> Thanks,
> 	tglx

To conform the patches causing the panic, I tested the 2.6.24.2 kernel with the futex-fix-init-order.patch and
futex-runtime-enable-pi-and-robust-functionality.patch applied and they seem to cause the kernel
panic.

Unable to handle kernel pointer dereference at virtual kernel address 0000000000
000000
Oops: 0004 #1¨ SMP
Modules linked in:
CPU: 0 Not tainted 2.6.25-rc2-mm1-autotest #1
Process swapper (pid: 1, task: 000000003f830000, ksp: 000000003f83ba48)
Krnl PSW : 0704a00180000000 000000000024b2be (futex_atomic_cmpxchg_std+0x12/0x28
)
           R:0 T:1 IO:1 EX:1 Key:0 M:1 W:0 P:0 AS:2 CC:2 PM:0 EA:3
Krnl GPRS: 0000000000000074 00000000fffffff2 0000000000000000 0000000000000000
           0000000000000000 0000000000000001 0000000000000000 00000000004d0764
           0000000000000000 00000000004d8768 0000000000000000 000000003f83bdb0
           0000000000000040 0000000000343950 00000000000627e4 000000003f83bdb0
Krnl Code: 000000000024b2b2: b90400bf           lgr     %r11,%r15
           000000000024b2b6: a718fff2           lhi     %r1,-14
           000000000024b2ba: b2790100           sacf    256
          >000000000024b2be: ba342000           cs      %r3,%r4,0(%r2)
           000000000024b2c2: 1813               lr      %r1,%r3
           000000000024b2c4: b2790000           sacf    0
           000000000024b2c8: b9140021           lgfr    %r2,%r1
           000000000024b2cc: e3b0b0700004       lg      %r11,112(%r11)
Call Trace:
(<000000003f83bda8>¨ 0x3f83bda8)
 <00000000004bdeec>¨ init+0x30/0x104
 <00000000004b0c40>¨ kernel_init+0x1e0/0x370
 <000000000001a5c6>¨ kernel_thread_starter+0x6/0xc
 <000000000001a5c0>¨ kernel_thread_starter+0x0/0xc

 <4>--- end trace 561bb236c800851f ¨---
note: swapper1¨ exited with preempt_count 1
Kernel panic - not syncing: Attempted to kill init!

-- 
Thanks & Regards,
Kamalesh Babulal,
Linux Technology Center,
IBM, ISTL.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [BUG] 2.6.25-rc2-mm1 - kernel oops while bootup on s390x
  2008-02-17  3:40         ` Kamalesh Babulal
@ 2008-02-17  9:06           ` Heiko Carstens
  2008-02-18 14:08             ` Kamalesh Babulal
  0 siblings, 1 reply; 7+ messages in thread
From: Heiko Carstens @ 2008-02-17  9:06 UTC (permalink / raw)
  To: Kamalesh Babulal
  Cc: Thomas Gleixner, Andrew Morton, linux-kernel, linux390,
	linux-s390, Andy Whitcroft

On Sun, Feb 17, 2008 at 09:10:46AM +0530, Kamalesh Babulal wrote:
> To conform the patches causing the panic, I tested the 2.6.24.2 kernel with the futex-fix-init-order.patch and
> futex-runtime-enable-pi-and-robust-functionality.patch applied and they seem to cause the kernel
> panic.
> 
> Unable to handle kernel pointer dereference at virtual kernel address 0000000000
> 000000
> Oops: 0004 #1¨ SMP
> Modules linked in:
> CPU: 0 Not tainted 2.6.25-rc2-mm1-autotest #1
> Process swapper (pid: 1, task: 000000003f830000, ksp: 000000003f83ba48)
> Krnl PSW : 0704a00180000000 000000000024b2be (futex_atomic_cmpxchg_std+0x12/0x28
> )
>            R:0 T:1 IO:1 EX:1 Key:0 M:1 W:0 P:0 AS:2 CC:2 PM:0 EA:3
> Krnl GPRS: 0000000000000074 00000000fffffff2 0000000000000000 0000000000000000
>            0000000000000000 0000000000000001 0000000000000000 00000000004d0764
>            0000000000000000 00000000004d8768 0000000000000000 000000003f83bdb0
>            0000000000000040 0000000000343950 00000000000627e4 000000003f83bdb0
> Krnl Code: 000000000024b2b2: b90400bf           lgr     %r11,%r15
>            000000000024b2b6: a718fff2           lhi     %r1,-14
>            000000000024b2ba: b2790100           sacf    256
>           >000000000024b2be: ba342000           cs      %r3,%r4,0(%r2)
>            000000000024b2c2: 1813               lr      %r1,%r3
>            000000000024b2c4: b2790000           sacf    0
>            000000000024b2c8: b9140021           lgfr    %r2,%r1
>            000000000024b2cc: e3b0b0700004       lg      %r11,112(%r11)
> Call Trace:
> (<000000003f83bda8>¨ 0x3f83bda8)
>  <00000000004bdeec>¨ init+0x30/0x104
>  <00000000004b0c40>¨ kernel_init+0x1e0/0x370
>  <000000000001a5c6>¨ kernel_thread_starter+0x6/0xc
>  <000000000001a5c0>¨ kernel_thread_starter+0x0/0xc
> 
>  <4>--- end trace 561bb236c800851f ¨---
> note: swapper1¨ exited with preempt_count 1
> Kernel panic - not syncing: Attempted to kill init!

Thanks for reporting! Patch below should fix it.

Index: linux-2.6/arch/s390/lib/uaccess_std.c
===================================================================
--- linux-2.6.orig/arch/s390/lib/uaccess_std.c
+++ linux-2.6/arch/s390/lib/uaccess_std.c
@@ -293,8 +293,8 @@ int futex_atomic_cmpxchg_std(int __user 
 
 	asm volatile(
 		"   sacf 256\n"
-		"   cs   %1,%4,0(%5)\n"
-		"0: lr   %0,%1\n"
+		"0: cs   %1,%4,0(%5)\n"
+		"   lr   %0,%1\n"
 		"1: sacf 0\n"
 		EX_TABLE(0b,1b)
 		: "=d" (ret), "+d" (oldval), "=m" (*uaddr)

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [BUG] 2.6.25-rc2-mm1 - kernel oops while bootup on s390x
  2008-02-17  9:06           ` Heiko Carstens
@ 2008-02-18 14:08             ` Kamalesh Babulal
  0 siblings, 0 replies; 7+ messages in thread
From: Kamalesh Babulal @ 2008-02-18 14:08 UTC (permalink / raw)
  To: Heiko Carstens
  Cc: Kamalesh Babulal, Thomas Gleixner, Andrew Morton, linux-kernel,
	linux390, linux-s390, Andy Whitcroft

On Sun, Feb 17, 2008 at 10:06:16AM +0100, Heiko Carstens wrote:
> On Sun, Feb 17, 2008 at 09:10:46AM +0530, Kamalesh Babulal wrote:
> > To conform the patches causing the panic, I tested the 2.6.24.2 kernel with the futex-fix-init-order.patch and
> > futex-runtime-enable-pi-and-robust-functionality.patch applied and they seem to cause the kernel
> > panic.
> > 
> > Unable to handle kernel pointer dereference at virtual kernel address 0000000000
> > 000000
> > Oops: 0004 #1¨ SMP
> > Modules linked in:
> > CPU: 0 Not tainted 2.6.25-rc2-mm1-autotest #1
> > Process swapper (pid: 1, task: 000000003f830000, ksp: 000000003f83ba48)
> > Krnl PSW : 0704a00180000000 000000000024b2be (futex_atomic_cmpxchg_std+0x12/0x28
> > )
> >            R:0 T:1 IO:1 EX:1 Key:0 M:1 W:0 P:0 AS:2 CC:2 PM:0 EA:3
> > Krnl GPRS: 0000000000000074 00000000fffffff2 0000000000000000 0000000000000000
> >            0000000000000000 0000000000000001 0000000000000000 00000000004d0764
> >            0000000000000000 00000000004d8768 0000000000000000 000000003f83bdb0
> >            0000000000000040 0000000000343950 00000000000627e4 000000003f83bdb0
> > Krnl Code: 000000000024b2b2: b90400bf           lgr     %r11,%r15
> >            000000000024b2b6: a718fff2           lhi     %r1,-14
> >            000000000024b2ba: b2790100           sacf    256
> >           >000000000024b2be: ba342000           cs      %r3,%r4,0(%r2)
> >            000000000024b2c2: 1813               lr      %r1,%r3
> >            000000000024b2c4: b2790000           sacf    0
> >            000000000024b2c8: b9140021           lgfr    %r2,%r1
> >            000000000024b2cc: e3b0b0700004       lg      %r11,112(%r11)
> > Call Trace:
> > (<000000003f83bda8>¨ 0x3f83bda8)
> >  <00000000004bdeec>¨ init+0x30/0x104
> >  <00000000004b0c40>¨ kernel_init+0x1e0/0x370
> >  <000000000001a5c6>¨ kernel_thread_starter+0x6/0xc
> >  <000000000001a5c0>¨ kernel_thread_starter+0x0/0xc
> > 
> >  <4>--- end trace 561bb236c800851f ¨---
> > note: swapper1¨ exited with preempt_count 1
> > Kernel panic - not syncing: Attempted to kill init!
Hi Heiko,

Thanks for the patch, I have tested patch, it fixes the bootup panic.

Tested-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>

Index: linux-2.6/arch/s390/lib/uaccess_std.c
===================================================================
--- linux-2.6.orig/arch/s390/lib/uaccess_std.c
+++ linux-2.6/arch/s390/lib/uaccess_std.c
@@ -293,8 +293,8 @@ int futex_atomic_cmpxchg_std(int __user 

      asm volatile(
              "   sacf 256\n"
-             "   cs   %1,%4,0(%5)\n"
-             "0: lr   %0,%1\n"
+             "0: cs   %1,%4,0(%5)\n"
+             "   lr   %0,%1\n"
              "1: sacf 0\n"
              EX_TABLE(0b,1b)
              : "=d" (ret), "+d" (oldval), "=m" (*uaddr)
--
-- 
Thanks & Regards,
Kamalesh Babulal,
Linux Technology Center,
IBM, ISTL.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-02-18 14:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20080216002522.9c4bd0fb.akpm@linux-foundation.org>
2008-02-16 16:15 ` [BUG] 2.6.25-rc2-mm1 - kernel oops while bootup on s390x Kamalesh Babulal
2008-02-16 19:45   ` Andrew Morton
2008-02-16 19:49     ` Thomas Gleixner
2008-02-16 19:50       ` Thomas Gleixner
2008-02-17  3:40         ` Kamalesh Babulal
2008-02-17  9:06           ` Heiko Carstens
2008-02-18 14:08             ` Kamalesh Babulal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox