lkml.org 
[lkml]   [2014]   [Jul]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
Subjectsignal frame ss in a 64-bit process?
How is restoring ss and ds in a 64-bit process supposed to work?
There's this comment:

/* Kernel saves and restores only the CS segment register on signals,
* which is the bare minimum needed to allow mixed 32/64-bit code.
* App's signal handler can save/restore other segments if needed. */

AFAICT this is bogus: syscall (the 64-bit version) sets regs->ss to
__USER_DS. I think that the actual ss register is untouched until the
syscall returns, so in theory sigreturn could copy ss to regs, but
that seems kind of nasty.

Can we steal __pad0 and put ss in there?

--Andy

--
Andy Lutomirski
AMA Capital Management, LLC


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