You probably want to read the whole thread...
On 08/13/15 14:46, Linus Torvalds wrote:
On Thu, Aug 13, 2015 at 2:42 PM, Raymond Jennings <shentino@xxxxxxxxx> wrote:Basically, when a process/thread receives a signal, what happens to its registers?I am curious about what's supposed to happen normally on signal delivery.What exactly does "supposed" mean?
Is SS a register that's supposed to be preserved like EIP/RIP and CS when a
signal is delivered?
So clearly, we're not "supposed" to save/restore it. Because realitySo it still counts as a regression if the kernel pulls the rug out from under someone that was relying on undocumented or buggy behavior?
matters a hell of a lot more than any theoretical arguments.