From: "Jan Beulich" <jbeulich@novell.com>
To: "Andi Kleen" <ak@suse.de>
Cc: "Martin Bligh" <mbligh@google.com>,
"Andrew Morton" <akpm@osdl.org>, <apw@shadowen.org>,
<linux-kernel@vger.kernel.org>
Subject: Re: 2.6.17-rc2-mm1
Date: Wed, 03 May 2006 09:08:31 +0200 [thread overview]
Message-ID: <4458730F.76E4.0078.0@novell.com> (raw)
In-Reply-To: <200605030849.44893.ak@suse.de>
>> ><EOE>new stack 0 (0 0 0 10082 10)
>>
>> Looks like <rubbish> <SS> <RSP> <RFLAGS> <CS> to me, ...
>
>Hmm, right.
>
>> >Hmm weird. There isn't anything resembling an exception frame at the top of the
>> >stack. No idea how this could happen.
>>
>> ... which is a valid frame where the stack pointer was corrupted before the exception occurred. One more printed
item
>> (or rather, starting items at estack_end[-1]) would allow at least seeing what RIP this came from.
>
>Any can you add that please and check?
???
>Also worst case one could dump last branch pointers. AMD unfortunately only has four,
>on Intel with 16 it's easier.
Provided you disable recording early enough. Otherwise only one (last exception from/to) is going to be useful on
both.
>I can provide a patch for that if needed.
>
>> This actually points out another weakness of that code: if you pick up a mis-aligned stack pointer then the
conditions
>> in both the exception and interrupt stack invocations of HANDLE_STACK() won't prevent you from accessing an item
>> crossing a page boundary, and hence potentially faulting.
>
>Yes it probably should check for that.
>
>> Similarly, obtaining an entirely bad stack pointer anywhere in
>> that code will result in a fault. I guess the stack reads should really be done using get_user() or some other code
>> having recovery attached.
>
>That can cause recursive exceptions. I'm a bit paranoid with that.
Without doing so it can also cause recursive exceptions, just that this is going to be deadly then.
Jan
next prev parent reply other threads:[~2006-05-03 7:07 UTC|newest]
Thread overview: 49+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4450F5AD.9030200@google.com>
2006-04-28 8:20 ` 2.6.17-rc2-mm1 Andrew Morton
2006-05-01 14:24 ` 2.6.17-rc2-mm1 Martin J. Bligh
2006-05-01 17:07 ` 2.6.17-rc2-mm1 Andrew Morton
2006-05-01 17:14 ` 2.6.17-rc2-mm1 Martin Bligh
2006-05-01 17:19 ` 2.6.17-rc2-mm1 Badari Pulavarty
2006-05-01 17:26 ` 2.6.17-rc2-mm1 Martin Bligh
2006-05-01 17:55 ` 2.6.17-rc2-mm1 Badari Pulavarty
2006-05-01 17:57 ` 2.6.17-rc2-mm1 Martin Bligh
2006-05-01 18:32 ` 2.6.17-rc2-mm1 Andy Whitcroft
2006-05-01 23:29 ` 2.6.17-rc2-mm1 Badari Pulavarty
2006-05-01 17:32 ` 2.6.17-rc2-mm1 Martin Bligh
2006-05-02 20:20 ` 2.6.17-rc2-mm1 Martin Bligh
2006-05-01 18:34 ` 2.6.17-rc2-mm1 Andi Kleen
2006-05-02 13:20 ` 2.6.17-rc2-mm1 Andy Whitcroft
2006-05-02 20:00 ` 2.6.17-rc2-mm1 Martin Bligh
2006-05-02 20:09 ` 2.6.17-rc2-mm1 Andi Kleen
2006-05-03 6:47 ` 2.6.17-rc2-mm1 Jan Beulich
2006-05-03 6:49 ` 2.6.17-rc2-mm1 Andi Kleen
2006-05-03 7:08 ` Jan Beulich [this message]
2006-05-03 7:38 ` 2.6.17-rc2-mm1 Andi Kleen
2006-05-03 8:12 ` 2.6.17-rc2-mm1 Andy Whitcroft
2006-05-03 8:25 ` 2.6.17-rc2-mm1 Jan Beulich
2006-05-03 19:26 ` 2.6.17-rc2-mm1 Andy Whitcroft
2006-05-04 7:40 ` 2.6.17-rc2-mm1 Andy Whitcroft
2006-05-04 16:28 ` 2.6.17-rc2-mm1 Andy Whitcroft
2006-05-04 6:22 2.6.17-rc2-mm1 Chuck Ebbert
-- strict thread matches above, loose matches on Subject: below --
2006-05-03 5:37 2.6.17-rc2-mm1 Chuck Ebbert
2006-04-27 16:54 2.6.17-rc2-mm1 Martin Bligh
2006-04-27 8:41 2.6.17-rc2-mm1 Andrew Morton
2006-04-27 10:16 ` 2.6.17-rc2-mm1 Andi Kleen
2006-04-27 19:19 ` 2.6.17-rc2-mm1 Andrew Morton
2006-04-27 19:26 ` 2.6.17-rc2-mm1 Andi Kleen
2006-04-27 21:41 ` 2.6.17-rc2-mm1 Grant Coady
2006-04-27 21:50 ` 2.6.17-rc2-mm1 Randy.Dunlap
2006-04-27 22:16 ` 2.6.17-rc2-mm1 Andrew Morton
2006-04-27 10:27 ` 2.6.17-rc2-mm1 Michal Piotrowski
2006-04-27 13:07 ` 2.6.17-rc2-mm1 Michal Piotrowski
2006-04-27 15:28 ` 2.6.17-rc2-mm1 Greg KH
2006-04-27 15:32 ` 2.6.17-rc2-mm1 Michal Piotrowski
2006-04-27 20:53 ` 2.6.17-rc2-mm1 Greg KH
2006-04-27 22:09 ` 2.6.17-rc2-mm1 Michal Piotrowski
2006-04-27 15:26 ` 2.6.17-rc2-mm1 Greg KH
2006-04-27 15:43 ` 2.6.17-rc2-mm1 Michal Piotrowski
2006-04-27 15:47 ` 2.6.17-rc2-mm1 Matthieu CASTET
2006-04-27 18:02 ` 2.6.17-rc2-mm1 Vivek Goyal
2006-04-27 23:24 ` 2.6.17-rc2-mm1 Greg KH
2006-04-28 14:40 ` 2.6.17-rc2-mm1 Vivek Goyal
2006-04-28 16:07 ` 2.6.17-rc2-mm1 matthieu castet
2006-04-28 18:05 ` 2.6.17-rc2-mm1 Vivek Goyal
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=4458730F.76E4.0078.0@novell.com \
--to=jbeulich@novell.com \
--cc=ak@suse.de \
--cc=akpm@osdl.org \
--cc=apw@shadowen.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mbligh@google.com \
/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
Powered by JetHome