Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3324615imu; Mon, 14 Jan 2019 00:33:11 -0800 (PST) X-Google-Smtp-Source: ALg8bN6O2qfyADhwbTpIwz2XTIOuhHG92nySugUQu8/sn6occPqxPaSQveKLIK/1W3a/qeceFMGP X-Received: by 2002:a62:7504:: with SMTP id q4mr23926203pfc.180.1547454791761; Mon, 14 Jan 2019 00:33:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547454791; cv=none; d=google.com; s=arc-20160816; b=AkFWpcLkEWGy1qrPpXyBkEnbyKhkUXwB1M3BUB5iY+c7XPLWG9a0lnOrGUjNNlUvQV QBrkxaZP8mx6vTI4iVSfH2qzJTGFO4T6gGEe+oTb2JJ8R1N6bDEdKXs8/LAT6Eo9m5xg 6jQKKWdyrOG2nQd/CA9wUhkMv0uqDYVtaP/Qsmy2PwsAE1RM8s8C/wDWE9YK7AFIMtG2 pOQEGPTsu8gOSycCv2X0l+MUbSeZu8cCZscUiZfCzVNLea7Nk9kozv2VjIm0mfi7txG0 MsTqEWouN74y+NYDc3W0NTovE8JF/8IKOhx7y4r/mm7SzdA9bm+/kmQ9VGaiGPy7Lsy5 oqhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:message-id:in-reply-to:mime-version :references:subject:cc:to:from:date; bh=kMdnSq+ccyUL7qg3lytjRor/afBVMtvqNtMUx8jphUs=; b=Z2/t1emtSC5JpjINIsoepMmeZXtjyBcPgeKQ/TMqIYIxxqgf8V2eRiQdaSFrxzsuY3 rhbc8M+1K7TW/pLtYUfq2oZqVYhnP0XEvPGmcEprOjGDZPOwqaLaKHl1pQVowWcYbbNz JwuuECjNSUc81V65yw/fmDf1jlJYoIMfd2DeWspSBMF8+pA4e5hhPDeEKXu7yo2GZFCB hUnn2AsaT7iKF84BrpmEFs7xFnogi0gCRBc+YRN2ym1ZFCoLKLZABrJdjd79AfDeBh4G 8x2hLRQONb9gHdcJ8BEp8TJT7p5F0XwmhLXmiHOEBUfxjFXnEnzrwoUcTngxkxsVhoMP jAtA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a12si38738166pll.112.2019.01.14.00.32.56; Mon, 14 Jan 2019 00:33:11 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726563AbfANIbb (ORCPT + 99 others); Mon, 14 Jan 2019 03:31:31 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:40526 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726187AbfANIbb (ORCPT ); Mon, 14 Jan 2019 03:31:31 -0500 Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id x0E8PQ0Z042747 for ; Mon, 14 Jan 2019 03:31:30 -0500 Received: from e06smtp05.uk.ibm.com (e06smtp05.uk.ibm.com [195.75.94.101]) by mx0b-001b2d01.pphosted.com with ESMTP id 2q0p2ytdpe-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 14 Jan 2019 03:31:29 -0500 Received: from localhost by e06smtp05.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 14 Jan 2019 08:31:27 -0000 Received: from b06cxnps3075.portsmouth.uk.ibm.com (9.149.109.195) by e06smtp05.uk.ibm.com (192.168.101.135) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Mon, 14 Jan 2019 08:31:17 -0000 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x0E8VFL935848340 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 14 Jan 2019 08:31:15 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A898CA4057; Mon, 14 Jan 2019 08:31:15 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A4C28A404D; Mon, 14 Jan 2019 08:31:14 +0000 (GMT) Received: from osiris (unknown [9.152.212.95]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Mon, 14 Jan 2019 08:31:14 +0000 (GMT) Date: Mon, 14 Jan 2019 09:31:13 +0100 From: Heiko Carstens To: Arnd Bergmann 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 Subject: Re: [PATCH 15/15] arch: add pkey and rseq syscall numbers everywhere References: <20190110162435.309262-1-arnd@arndb.de> <20190110162435.309262-16-arnd@arndb.de> <20190110203638.GB3676@osiris> MIME-Version: 1.0 In-Reply-To: X-TM-AS-GCONF: 00 x-cbid: 19011408-0020-0000-0000-0000030625BC X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19011408-0021-0000-0000-0000215735B7 Message-Id: <20190114083113.GB15160@osiris> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit Content-Disposition: inline X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-01-14_04:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=5 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=786 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1901140072 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 11, 2019 at 06:30:43PM +0100, Arnd Bergmann wrote: > 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. I don't think pkeys will ever work on s390, since they require a key per mapping, while the s390 storage keys are per physical page.