Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754640AbbHNA1M (ORCPT ); Thu, 13 Aug 2015 20:27:12 -0400 Received: from mail-io0-f177.google.com ([209.85.223.177]:34350 "EHLO mail-io0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753567AbbHNA1K (ORCPT ); Thu, 13 Aug 2015 20:27:10 -0400 MIME-Version: 1.0 In-Reply-To: <55CD3382.5070506@list.ru> References: <55CA90B4.2010205@list.ru> <55CCD921.4040301@list.ru> <20150813200823.GS2059@uranus> <55CD0F29.4070604@gmail.com> <55CD13F3.1070904@list.ru> <55CD1968.7070002@list.ru> <55CD1F79.2010508@list.ru> <55CD2F9A.9040300@list.ru> <55CD3382.5070506@list.ru> Date: Thu, 13 Aug 2015 17:27:09 -0700 X-Google-Sender-Auth: eIrgctUPaK6x9-mmHSg7RP1wvs0 Message-ID: Subject: Re: [regression] x86/signal/64: Fix SS handling for signals delivered to 64-bit programs breaks dosemu From: Linus Torvalds To: Stas Sergeev Cc: Andy Lutomirski , Raymond Jennings , Cyrill Gorcunov , Pavel Emelyanov , 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: 735 Lines: 18 On Thu, Aug 13, 2015 at 5:17 PM, Stas Sergeev wrote: > > For example because you can as well do: > prctl(ARCH_SET_SIGNAL_SS, 0) > which will mean "restore ss in sighandler to its current value", I really think a prctl() is the wrong thing to do. If you want a signal handler to save/restore segments, I think it should be a SA_xyz flag to sigaction() (the way we have SA_RESTART etc). And off by default because of the obvious compatibility issues. Linus -- 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/