Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758360AbdCUWew (ORCPT ); Tue, 21 Mar 2017 18:34:52 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:47180 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757685AbdCUWeu (ORCPT ); Tue, 21 Mar 2017 18:34:50 -0400 Date: Tue, 21 Mar 2017 23:34:39 +0100 (CET) From: Thomas Gleixner To: hpa@zytor.com cc: Dmitry Safonov , linux-kernel@vger.kernel.org, 0x7f454c46@gmail.com, Adam Borowski , linux-mm@kvack.org, Andrei Vagin , Cyrill Gorcunov , Borislav Petkov , "Kirill A. Shutemov" , x86@kernel.org, Andy Lutomirski , Ingo Molnar Subject: Re: [PATCHv3] x86/mm: set x32 syscall bit in SET_PERSONALITY() In-Reply-To: <26CDE83A-CDBE-4F23-91F6-05B07B461BDD@zytor.com> Message-ID: References: <20170321174711.29880-1-dsafonov@virtuozzo.com> <26CDE83A-CDBE-4F23-91F6-05B07B461BDD@zytor.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 661 Lines: 25 On Tue, 21 Mar 2017, hpa@zytor.com wrote: > On March 21, 2017 3:21:13 PM PDT, Thomas Gleixner wrote: > >On Tue, 21 Mar 2017, Dmitry Safonov wrote: > >> v3: > >> - clear x32 syscall flag during x32 -> x86-64 exec() (thanks, HPA). > > > >For correctness sake, this wants to be cleared in the IA32 path as > >well. It's not causing any harm, but .... > > > >I'll amend the patch. > > > >Thanks, > > > > tglx > > Since the i386 syscall namespace is totally separate (and different), > should we simply change the system call number to the appropriate > sys_execve number? That should work as well and would be more intuitive. Thanks, tglx