From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932108AbbHMSZ0 (ORCPT ); Thu, 13 Aug 2015 14:25:26 -0400 Received: from mail-oi0-f43.google.com ([209.85.218.43]:35382 "EHLO mail-oi0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752767AbbHMSZW (ORCPT ); Thu, 13 Aug 2015 14:25:22 -0400 MIME-Version: 1.0 In-Reply-To: <55CCDFC2.1000503@list.ru> References: <55CBA4CE.1040108@list.ru> <55CBBFB9.1080201@list.ru> <20150813083949.GA17091@gmail.com> <55CC911D.3080607@list.ru> <55CCB625.3000900@list.ru> <55CCBFDC.5000207@list.ru> <55CCC3E1.9060603@list.ru> <55CCC812.5010101@list.ru> <55CCCA78.8030806@list.ru> <55CCD054.5020600@list.ru> <55CCDB55.3040803@list.ru> <55CCDFC2.1000503@list.ru> From: Andy Lutomirski Date: Thu, 13 Aug 2015 11:25:02 -0700 Message-ID: Subject: Re: [regression] x86/signal/64: Fix SS handling for signals delivered to 64-bit programs breaks dosemu To: Stas Sergeev Cc: Ingo Molnar , X86 ML , Linux kernel , Linus Torvalds , "H. Peter Anvin" , Thomas Gleixner , Brian Gerst , Borislav Petkov , Stas Sergeev Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 13, 2015 at 11:19 AM, Stas Sergeev wrote: > It is more about selecting the right field for such a flag. > You can select the right field now, and introduce some flag > to it, like SIG_SAVE_SS or whatever. This will fix a regression. > Then, when the TLS time will code, you'll just add SIG_SAVE_FS > flag to the same field, so that they can be ORed. Oh. I think the field is obvious: uc_flags. I also thing that all of the saving should happen automatically, since I still don't see how anything will break if the kernel starts saving more things. It's the restore part that's problematic. --Andy -- Andy Lutomirski AMA Capital Management, LLC