Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp994679imu; Fri, 11 Jan 2019 12:56:14 -0800 (PST) X-Google-Smtp-Source: ALg8bN75WYNcuK2yTqeYskhubOdhYL2wTMuaQqt736K3KucWivF+bFzbNHGuGgvtjD9HMrQ19g/0 X-Received: by 2002:a63:c748:: with SMTP id v8mr4734066pgg.108.1547240174893; Fri, 11 Jan 2019 12:56:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547240174; cv=none; d=google.com; s=arc-20160816; b=WAkv9VjY1CUawQt1EQdDClekszrsxYskhqWrGoxRMTbc1sPYz9S0+IdnYbdAq7FbcU 2DTax9TYGM/mfAV3gcTG82dkMd3XH3rGZn/+um5HJXWCnOfQZte1qVnp9G1wFmLOQPtS rY92gVB95oHglJigNi0X41fjFu3Qlp4Q++vE4/+adYIobizomKPBdhZTZuT62rs8Z8WA b/b2rjQuuxarK3SVvUP9NwF5ntZOAoIL/aTwcj/rA46tTsB76QUwKotFDXdylp1Utq4A GyQ64eWCjklc9emv30jlRuRWc051+AhI/UiOwD3lGP9FKv9tOKrxWRlpLv5Ak+U9y5OX 7M8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=SGHCnfowgHn30T+nuPC0hqbUSrYY8+wFH1Oi3pXaRzM=; b=jnjw1WWEckVaFZUJGEIBlzHIqX+PrxB/V1s2efIJvx7rPTr0lcXk5BorSxu2b7UrO3 xCuWSpve4e6wk9lkeu4/KC7wYwX7yftCnxYH21G7DtYGKpbRTZTLUZ/15Ilya6U49I1T HKSMM4kog5K9B1NgxugrWX/rhbTUuVF9Xg2iFmYHIAy9wlVGhQTrvz7HzFGBDv9BGjgx PxGBb4Dq05bX6M25lOZeq+NM9uVcRo1wmDj7lEp4amdv4YrAexGX52WKr6JEElXx4TZ3 7ovE6ITBUTG1DE+1mvUky8JsvPwRa52pfSMFLbA2Rz7MRNvr/rmnZS3p5/4mNLch66S/ thUg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t5si72728010pgc.369.2019.01.11.12.55.59; Fri, 11 Jan 2019 12:56:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387465AbfAKRbE (ORCPT + 99 others); Fri, 11 Jan 2019 12:31:04 -0500 Received: from mail-qt1-f193.google.com ([209.85.160.193]:43900 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725790AbfAKRbC (ORCPT ); Fri, 11 Jan 2019 12:31:02 -0500 Received: by mail-qt1-f193.google.com with SMTP id i7so19647870qtj.10; Fri, 11 Jan 2019 09:31:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SGHCnfowgHn30T+nuPC0hqbUSrYY8+wFH1Oi3pXaRzM=; b=WOOe2QlI17jPqERZWta9eFvu+NjfBer0Y9neCurnsZF53ESKfjLz6qU07k8coOLHA2 26ohnScM3GptJ3Y97J6D/00NZ7HTp/dGOKsiImcAfAjjoRhzoBza3RVKT2PLg5GfKFCd CLa62GyCsQyyyOntT6hdtrkIGveqSdC0b14e0+p8BGGlXCkA/u23s/DXrYjrhPWom+SO cKpypT/kelTK+StYBzP5qpPIdKDKBV3KA1HjdfIALIaJXtdtRqPGUu6cGSXYMLWcXHfg c2p72bX2Brq8GdbFgAye8DhwgRIR7tS0FgI2CEjyedBSgIGrBZz5fD3BaWY36d3Ye0+o tYpA== X-Gm-Message-State: AJcUukdpVZlLRrTEiBQmWP9XQ4qlglXUB0aQAifbz+IkUpHsQ3GlXQjM C/yz9RsPEpwuuamyW7umpWKckryPJ+wMU0YbvLk= X-Received: by 2002:ac8:2c34:: with SMTP id d49mr14875090qta.152.1547227860501; Fri, 11 Jan 2019 09:31:00 -0800 (PST) MIME-Version: 1.0 References: <20190110162435.309262-1-arnd@arndb.de> <20190110162435.309262-16-arnd@arndb.de> <20190110203638.GB3676@osiris> In-Reply-To: <20190110203638.GB3676@osiris> From: Arnd Bergmann Date: Fri, 11 Jan 2019 18:30:43 +0100 Message-ID: Subject: Re: [PATCH 15/15] arch: add pkey and rseq syscall numbers everywhere To: Heiko Carstens Cc: y2038 Mailman List , Linux API , Linux Kernel Mailing List , Ivan Kokshaysky , Matt Turner , Russell King - ARM Linux , Catalin Marinas , Will Deacon , Tony Luck , Fenghua Yu , Geert Uytterhoeven , Michal Simek , Paul Burton , Helge Deller , Michael Ellerman , Martin Schwidefsky , Rich Felker , David Miller , Andy Lutomirski , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , "the arch/x86 maintainers" , Max Filippov , Firoz Khan , "Eric W . Biederman" , Deepa Dinamani , Dominik Brodowski , Andrew Morton , Davidlohr Bueso , alpha , Linux ARM , linux-ia64@vger.kernel.org, linux-m68k , linux-mips@vger.kernel.org, Parisc List , linuxppc-dev , linux-s390 , Linux-sh list , sparclinux Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 10, 2019 at 9:36 PM Heiko Carstens wrote: > On Thu, Jan 10, 2019 at 05:24:35PM +0100, Arnd Bergmann wrote: > Since you only need/want the system call numbers, could you please > change these lines to: > > > +384 common pkey_alloc - - > > +385 common pkey_free - - > > +386 common pkey_mprotect - - > > Otherwise it _looks_ like we would need compat wrappers here as well, > even though all of them would just jump to sys_ni_syscall() in this > case. Making this explicit seems to better. Ok, fair enough. I considered doing this originally and then decided against it for consistency with the asm-generic file, but I don't care much either way. Is this something you may want to add later? I'm not sure exactly how pkey compares to s390 storage keys, or if this is something completely unrelated. Arnd