public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Suresh Siddha <suresh.b.siddha@intel.com>
To: "H. Peter Anvin" <hpa@zytor.com>
Cc: "Bruno Prémont" <bonbons@linux-vserver.org>,
	"Herbert Xu" <herbert@gondor.apana.org.au>,
	"Al Viro" <viro@ZenIV.linux.org.uk>,
	"Rafael J. Wysocki" <rjw@sisk.pl>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>,
	"linux-ide@vger.kernel.org" <linux-ide@vger.kernel.org>,
	"Siddha, Suresh B" <suresh.b.siddha@intel.com>,
	"Ingo Molnar" <mingo@elte.hu>,
	"Wolfgang Walter" <wolfgang.walter@stwm.de>
Subject: Re: [2.6.27-rc2-git4] Kernel panic on VIA Ester+VIA CX700
Date: Mon, 11 Aug 2008 11:17:52 -0700	[thread overview]
Message-ID: <20080811181752.GK13158@linux-os.sc.intel.com> (raw)
In-Reply-To: <489F7C2B.30807@zytor.com>

On Sun, Aug 10, 2008 at 04:39:23PM -0700, H. Peter Anvin wrote:
> Bruno Prémont wrote:
> >
> > Recompiling without viafb+squashfs patches makes the panic go away.
> >
> > So something from viafb or squashfs triggers the panic or prepare
> > for something else to trigger it...
> >
> 
> Out of those, viafb by far seems most likely.  Could you try compiling
> with only one or the other?

[    5.010629] general protection fault: 0000 [#1] 
[    5.021782] Modules linked in:
[    5.030227] 
[    5.030227] Pid: 3, comm: ksoftirqd/0 Not tainted (2.6.27-rc2-git4_nocrypto #1)
[    5.030227] EIP: 0060:[<c01042f5>] EFLAGS: 00010046 CPU: 0
[    5.030227] EIP is at math_state_restore+0x25/0x60
[    5.030227] EAX: f781db3d EBX: f781d898 ECX: 00000000 EDX: 00000000
[    5.030227] ESI: f781d000 EDI: f782c20c EBP: f781d840 ESP: f781d838
[    5.030227]  DS: 007b ES: 007b FS: 0000 GS: 0000 SS: 0068
[    5.030227] Process ksoftirqd/0 (pid: 3, ti=f781d000 task=f782c6a0 task.ti=f782a000)
[    5.030227] Stack: f782c000 f782c6a0 f781d890 c01038dd f782c000 00000000 f782c000 f782c6a0 
[    5.030227]        f782c20c f781d890 f7807e00 0000007b 0000007b 00000000 ffffffff c0101e8f 
[    5.030227]        00000060 00010002 f782c8ac f782c000 c04d8180 c011fa50 f782afc0 c03cfa61 
[    5.030227] Call Trace:
[    5.030227]  [<c01038dd>] ? device_not_available+0x2d/0x32
[    5.030227]  [<c0101e8f>] ? __switch_to+0x2f/0x130

It got a GP fault, because in __switch_to() we were doing unlazy_fpu() and
fxsave generated a DNA fault(which shouldn't happen unless we are hitting the
via padlock instruction issue or something else) and the math_state_restore()
found the task's math state pointer to be 0xf781db3d (EAX in the oops) and while
doing fxrstor we got GP fault, as the fxrstor pointer(EAX) is not 16byte
aligned.

It is interesting to see the EAX value similar to stack pointer. Task's
FP area gets dynamically allocated and as such EAX def looks wrong here.
I also see the config is using 4K stacks. Some config(viafb/squashfs?) causing
some thing wrong with the kernel stack?

  reply	other threads:[~2008-08-11 18:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-09 20:51 [2.6.27-rc2-git4] Kernel panic on VIA Ester+VIA CX700 Bruno Prémont
2008-08-09 22:00 ` Rafael J. Wysocki
2008-08-09 22:01   ` Al Viro
2008-08-09 22:13     ` Bruno Prémont
     [not found]     ` <E1KS2KD-0000he-00@gondolin.me.apana.org.au>
     [not found]       ` <20080810133056.2fd69a20@neptune.home>
2008-08-10 23:39         ` H. Peter Anvin
2008-08-11 18:17           ` Suresh Siddha [this message]
2008-08-11 20:16             ` Bruno Prémont

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080811181752.GK13158@linux-os.sc.intel.com \
    --to=suresh.b.siddha@intel.com \
    --cc=bonbons@linux-vserver.org \
    --cc=herbert@gondor.apana.org.au \
    --cc=hpa@zytor.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=rjw@sisk.pl \
    --cc=viro@ZenIV.linux.org.uk \
    --cc=wolfgang.walter@stwm.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox