From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932118AbcFNOeb (ORCPT ); Tue, 14 Jun 2016 10:34:31 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38652 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752040AbcFNOe2 (ORCPT ); Tue, 14 Jun 2016 10:34:28 -0400 Date: Tue, 14 Jun 2016 16:34:22 +0200 From: Oleg Nesterov To: Andy Lutomirski Cc: Dmitry Safonov , "H. Peter Anvin" , Dmitry Safonov <0x7f454c46@gmail.com>, khorenko@virtuozzo.com, "linux-kernel@vger.kernel.org" , Thomas Gleixner , Cyrill Gorcunov , xemul@virtuozzo.com, X86 ML , Ingo Molnar Subject: Re: [PATCH 5/6] x86/ptrace: down with test_thread_flag(TIF_IA32) Message-ID: <20160614143422.GA32331@redhat.com> References: <1464786697-20639-1-git-send-email-dsafonov@virtuozzo.com> <1464786697-20639-6-git-send-email-dsafonov@virtuozzo.com> <20160606211918.GB23681@redhat.com> <20160610200739.GA14789@redhat.com> <20160613135020.GA27007@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Tue, 14 Jun 2016 14:34:28 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/13, Andy Lutomirski wrote: > > On Mon, Jun 13, 2016 at 6:50 AM, Oleg Nesterov wrote: > > > > Well, I can't resist but to me SA_IA32_ABI/SA_X32_ABI looks like a hack > > too. We actually shift TIF_*32 into k_sigaction->flags, and the fact > > that we do this per-signal looks, well, interesting ;) > > Is anything actually wrong with this, though? No, I think the patch is correct... It adds the user-visible change, but I do not think it can break something. Well, perhaps we should also remove SA_IA32_ABI|SA_X32_ABI from oact->sa.sa_flags in do_sigaction() to ensure that these non-uapi flags won't leak to user-space, but probably we do not really care. Oleg.