Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753643AbbHMSlh (ORCPT ); Thu, 13 Aug 2015 14:41:37 -0400 Received: from mail-oi0-f52.google.com ([209.85.218.52]:36518 "EHLO mail-oi0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751517AbbHMSlf (ORCPT ); Thu, 13 Aug 2015 14:41:35 -0400 MIME-Version: 1.0 In-Reply-To: References: <55CA90B4.2010205@list.ru> <55CCD921.4040301@list.ru> From: Andy Lutomirski Date: Thu, 13 Aug 2015 11:41:15 -0700 Message-ID: Subject: Re: [regression] x86/signal/64: Fix SS handling for signals delivered to 64-bit programs breaks dosemu To: Linus Torvalds Cc: Stas Sergeev , Linux kernel Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1938 Lines: 45 On Thu, Aug 13, 2015 at 11:35 AM, Linus Torvalds wrote: > On Thu, Aug 13, 2015 at 10:51 AM, Stas Sergeev wrote: >> >> Hello Linus, I verified that patch-minimal.diff is enough >> to fix the problem, BUT! dosemu is in fact using the .fs and >> .gs fields of sigcontext as a placeholders. Why the minimal >> patch alone helps is simply because the kernel headers >> installed in a system do not yet represent the newer kernel >> developments and have the .fs and .gs fields in. > > Ok. So I'm inclined to do the bigger revert, just to fix the compile > issue. It would be crazy to force some silly autoconf script for > random header info. > > Of course, we could also just let the uabi version go out of sync with > the internal version, but that sounds even worse. I think we'd be > better off just leaving the old names, and just having big comments > about this.. > > Andy? I agree that we should strive to improve in this area, and this > should be worked on, but that would seem to be a 4.3 issue (and mark > that too for stable once it actually works). No? Yeah, probably makes sense, but one of us should explicitly test CRIU (both new and old versions) on the result. CRIU does interesting things involving sigcontext and protocol buffers. We can do something a bit silly wrt UABI in the long run: union { unsigned long __pad0; unsigned long ss; }; I have half-written patches to do better, but I don't think they're 4.2 material. I'm already vastly over my quota for late-arriving 4.2 things. Stas: I think uc_flags is okay. We don't currently read it during sigreturn, but I see no reason that we can't start reading it. --Andy -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/