lkml.org 
[lkml]   [2012]   [May]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 4/5] x86: Allow nesting of the debug stack IDT setting
On 05/31/2012 01:56 PM, Steven Rostedt wrote:
> On Thu, 2012-05-31 at 13:39 -0700, H. Peter Anvin wrote:
>> On 05/31/2012 01:35 PM, Steven Rostedt wrote:
>>>
>>> Thus only the debug stack does the stack TSS trick.
>>>
>>> Is this what you were looking for? (God, it just shows how much time
>>> I've been spending on this crap, as I was able to find all this by
>>> memory and not grepping for it :-p )
>>>
>>
>> That's why I asked instead of pulled it up myself.
>>
>> However, what is missing is what the permitted transitions are. This
>> affects the options.
>
> Only the debug stack changes. These happen in the two places I already
> mentioned.
>
> One, the switch of the IDT in NMI (to convert the IST from 4 to 0, and
> just keep the same stack).
>
> Two, is the trick in the paranoidzeroentry_ist code (adding the debug
> stack). That changes the DEBUG stack pointer.
>

No, I'm asking what environments (alternate stacks) are permitted where.
That is the important information.

The interaction of the above two things is part of the problem, of
course, and I think it can (and should) be avoided.

-hpa



\
 
 \ /
  Last update: 2012-05-31 23:21    [W:0.163 / U:0.116 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site