[lkml]   [2008]   [May]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [RFC] x86: xsave/xrstor support, ucontext_t extensions
    H. Peter Anvin writes:
    > > But user can potentially change the _fpstate pointer in sigcontext struct.
    > If so, they get what they bargained for... I am not even sure the kernel
    > will successfully clean up the stack frame if they do that.

    Why would that be a problem? The stack is defined by the user's SP,
    which is in the integer state part of the sigframe. We do a sigreturn(),
    reload SP/PC/etc, and off we go. Where fpstate pointed to doesn't matter,
    as long as it was NULL or a valid fpstate image.

     \ /
      Last update: 2008-05-23 00:25    [W:0.022 / U:1.252 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site