lkml.org 
[lkml]   [2014]   [Jul]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 2/2] x86_64,signal: Remove 'fs' and 'gs' from sigcontext
From
Date
Because you are doing something weird (like Pin, for example) and take an asynchronous fault?

On July 12, 2014 11:37:48 AM PDT, Andi Kleen <andi@firstfloor.org> wrote:
>> This seems like it's asking for trouble. I think wxe'd have to
>> separately save the selectors and the base registers to avoid
>breaking
>> something, especially once wrgsbase, etc are enabled.
>
>I agree, it would likely break existing code.
>
>> Linus, for context, the other patch in this series saves and restores
>> SS.
>
>> Without that, 64-bit sigreturn to a nondefault stack segment is
>> basically impossible.
>
>Why would you ever want to do that?
>
>-Andi

--
Sent from my mobile phone. Please pardon brevity and lack of formatting.


\
 
 \ /
  Last update: 2014-07-12 21:21    [W:0.075 / U:25.712 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site