On Wed, Aug 12, 2015 at 12:55 PM, Stas Sergeev <s...@list.ru> wrote:
> 12.08.2015 22:20, Andy Lutomirski пишет:
>> current kernels, it stays switched.  If we change this, it won't stay
>> switched.  Even ignoring old ABI, it's not really clear to me what the
>> right thing to do is.
>
> There can be the following cases:
> - switch_userspace_thread() switches fs to non-zero selector
> - switch_userspace_thread() switches the fs base via syscall
> - switch_userspace_thread() switches fs in sigcontext
> - switch_userspace_thread() switches fs_base in sigcontext (???)
> What exactly case do you have in mind?
> I'd say, the way x86_32 is doing things - is good, but the
> bases... perhaps, in ideal world, they should be a part of
> the sigcontext as well?

Any of the above.  What do you want the kernel to do, and how does the
kernel know you want to do that?  The kernel has to pick *some*
semantics here.

-- 
Andy Lutomirski
AMA Capital Management, LLC
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to