Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1336195

Re: [PATCH v5 1/4] x86/signal/64: Add a comment about sigcontext->fs and gs

From Stas Sergeev <stsp@list.ru>
Newsgroups linux.kernel
Subject Re: [PATCH v5 1/4] x86/signal/64: Add a comment about sigcontext->fs and gs
Date 2016-02-17 11:10 +0100
Message-ID <r37dw-4Sm-17@gated-at.bofh.it> (permalink)
References <r2WUN-6a6-3@gated-at.bofh.it> <r2X4t-6dy-1@gated-at.bofh.it> <r34IG-35g-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


17.02.2016 10:21, Ingo Molnar пишет:
> 
> * Andy Lutomirski <luto@kernel.org> wrote:
> 
>> +	 * If the kernel ever adds explicit fs, gs, fsbase, and gsbase
>> +	 * save/restore, it will most likely need to be opt-in and use
>> +	 * different context slots.
> 
> Btw., that's not necessarily true: it could also be made opt-out, and a 
> modify_ldt() or any other cleanly identifiable legacy usage/signature that is 
> associated with DOSEMU might trigger the opt-out automatically as well.
But there are the new versions of dosemu that still use
"modify_ldt() or any other cleanly identifiable legacy usage/signature"
and yet wants a new functionality.
Please don't go for such an unreliable heuristic.

> I.e. behaviorally it would still keep the ABI and modern default behavior could 
> still be whatever we want to make it.
You can allow glibc to deal with the opt-ins.
It has symbol versioning system AFAIK exactly for that.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v5 0/4] x86: sigcontext fixes, again Andy Lutomirski <luto@kernel.org> - 2016-02-17 00:10 +0100
  [PATCH v5 3/4] x86/signal/64: Re-add support for SS in the 64-bit signal context Andy Lutomirski <luto@kernel.org> - 2016-02-17 00:10 +0100
    [tip:x86/asm] x86/signal/64:   Re-add support for SS in the 64-bit signal context tip-bot for Andy Lutomirski <tipbot@zytor.com> - 2016-02-17 13:20 +0100
  [PATCH v5 1/4] x86/signal/64: Add a comment about sigcontext->fs and gs Andy Lutomirski <luto@kernel.org> - 2016-02-17 00:20 +0100
    Re: [PATCH v5 1/4] x86/signal/64: Add a comment about sigcontext->fs  and gs Ingo Molnar <mingo@kernel.org> - 2016-02-17 08:30 +0100
      Re: [PATCH v5 1/4] x86/signal/64: Add a comment about sigcontext->fs  and gs Stas Sergeev <stsp@list.ru> - 2016-02-17 11:10 +0100
        Re: [PATCH v5 1/4] x86/signal/64: Add a comment about sigcontext->fs  and gs Ingo Molnar <mingo@kernel.org> - 2016-02-17 12:10 +0100
    [tip:x86/asm] x86/signal/64: Add a comment about sigcontext->  fs and gs tip-bot for Andy Lutomirski <tipbot@zytor.com> - 2016-02-17 13:20 +0100

csiph-web