From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753939AbbJZLqD (ORCPT ); Mon, 26 Oct 2015 07:46:03 -0400 Received: from smtp50.i.mail.ru ([94.100.177.110]:32777 "EHLO smtp50.i.mail.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753529AbbJZLqA (ORCPT ); Mon, 26 Oct 2015 07:46:00 -0400 Subject: Re: [PATCH v2 0/4] x86: sigcontext fixes, again To: Andy Lutomirski , x86@kernel.org, linux-kernel@vger.kernel.org References: Cc: Brian Gerst , Denys Vlasenko , Linus Torvalds , Borislav Petkov , Stas Sergeev From: Stas Sergeev Message-ID: <562E126E.6030300@list.ru> Date: Mon, 26 Oct 2015 14:45:50 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Mras: Ok Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 26.10.2015 04:25, Andy Lutomirski пишет: > This is take 2 at fixing x86 64-bit signals wrt SS. After a lot of > thought, this is not controlled by any flags -- I would much prefer > to avoid opt-in behavior. Instead, it just tries hard to avoid > triggering the cases that break DOSEMU. > > Stas, this now seems to pass the test you sent me. It works with > stock dosemu2 (I haven't tested classic dosemu because I can't get it > to work regardless). I'll test it myself then. But this will have to wait till a week-end I am afraid. In a mean time you can test vm86() - last time I tried, I got oops and hard lockup. > It also works with a patched dosemu2 that bypasses > the userspace trampoline: > > https://github.com/amluto/dosemu2/commit/571b4d08dc885b7a133e444a2ad23e0d21366206 > > With this applied, all of the x86 selftests pass on x86_64. That > wasn't the case before -- ldt_gdt_64 was broken. > > This is a bit risky, and another option would be to do nothing at > all. Then we'd disable the problematic self-tests (sigh), and No, another option is a new SA_ flag.