Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4966013imu; Tue, 15 Jan 2019 08:54:48 -0800 (PST) X-Google-Smtp-Source: ALg8bN6Axzy+C4R2aYoFzsbZD7iLGwnx73GboHMr6bf7BC7IzvkJZpmSTfjlI58fc6iRCutrorvM X-Received: by 2002:a17:902:59c8:: with SMTP id d8mr5060197plj.116.1547571288412; Tue, 15 Jan 2019 08:54:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547571288; cv=none; d=google.com; s=arc-20160816; b=gsJpvDK4k+oLSz9BqFDPppQIPcMirFqYDMD3GTLT3WwDD9MY7KrpD7PfbKNEua8Iv0 hz/nrC+m81gd87ugn3mTWIf72Bz1KiQhKiCpHTuBamJS7lXDv79q70AxCMq+RYu7ZXYt 4FOitDlMRF7lMMQZaaUq3YdzpOMUVa83eRpkg5tifvf9/m6BTECOJ5Sug9L9nVV1wGTw lwuMUmT1VP39yD/RYpc+PcfpfRPMc1DcOjcZrTkZzzHf1XrZNUUTyGgd0RFfT/xYnik7 /fXkgUCbOPXbgaJFE71huv3FionAhNsqDIW32vtF/lsXCRBBKzn9OIOUXYrY7Nlo0Yi8 X55g== 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=CJSgcbSLHBpkQA1mStr0T4cc3D19F0djyMHOoCBmTQM=; b=cHM2oQAOKnysXKDiGhAcqC/RLiq2+lNfJ73l2zEzJguaCXOhzrszxfIdTgvFG4B/8T x2EvsDohBydrI+Fb5n2w9HLrOX5tdB4KvSObrQBpilDVisVXLHFpKuZYDkqfTPRIUXmQ aPudcL2QH035sLDguzDZ7MaKKHwgVTpwuK56+vOr11zJzTQAGQwIVEnrG4cK9s23nRm1 KBgJwmo876gTsKLAxdD8NpY4vugJz7XaF/rTOBk6avRQPaTlR+Y7PbI7EDTlfA2hJha8 GN0pLaAt5pzXrWW6mnXbw0G672DY6gSaPae/HPM5LkL/r/+SttnJmRMl8gefaozirHqb BobA== 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 n4si3627112pgd.10.2019.01.15.08.54.29; Tue, 15 Jan 2019 08:54:48 -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 S1730328AbfAOOre (ORCPT + 99 others); Tue, 15 Jan 2019 09:47:34 -0500 Received: from mail-qk1-f193.google.com ([209.85.222.193]:44572 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727307AbfAOOrd (ORCPT ); Tue, 15 Jan 2019 09:47:33 -0500 Received: by mail-qk1-f193.google.com with SMTP id o8so1644170qkk.11; Tue, 15 Jan 2019 06:47:31 -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=CJSgcbSLHBpkQA1mStr0T4cc3D19F0djyMHOoCBmTQM=; b=RUHAyP+29kPixCb277J+uTWs5WYDKV/MAXivp1JFG6o8q4t/wOrKu0yMKiYWhAPBGH 5IQK6m19u8Gpd+GKIyveu34hegHIdewUJ4IxNYqLh1ynNNjmcRrzMYgK91JXF8IxnBLe tPWeHTZJt5y2LTkz39FMJuzCJZ/Eg+ae7lZa2G5hVMBs9DpdhXu7H+WTvfPOHDEpiYgK F+w9SpBoIvoHPTfSqzyuTxhqPjOCRtpYfPNxxBoeropt45iToRPdsr0tGeTdtQyatehJ qOvWWJkiww5RfjgORfHO6L6V91nFeHWVxHHfd8UfBK0pX8oqMKdrx+OM2kSxGv9FDW/3 joFw== X-Gm-Message-State: AJcUukf0QOJClHwB8aQtv/xIyIWaR97688J0afs0IvblMSSWvofdNOcD b4KDNJHWAYODTFzxldedA7XnMZT70CLQic//AhY= X-Received: by 2002:ae9:d8c2:: with SMTP id u185mr2838414qkf.107.1547563651094; Tue, 15 Jan 2019 06:47:31 -0800 (PST) MIME-Version: 1.0 References: <20190110162435.309262-1-arnd@arndb.de> <20190110162435.309262-16-arnd@arndb.de> <20190115115229.mcrmmpwdmjxf2cra@e5254000004ec.dyn.armlinux.org.uk> In-Reply-To: <20190115115229.mcrmmpwdmjxf2cra@e5254000004ec.dyn.armlinux.org.uk> From: Arnd Bergmann Date: Tue, 15 Jan 2019 15:47:14 +0100 Message-ID: Subject: Re: [PATCH 15/15] arch: add pkey and rseq syscall numbers everywhere To: Russell King - ARM Linux admin Cc: y2038 Mailman List , Linux API , Linux Kernel Mailing List , Ivan Kokshaysky , Matt Turner , Catalin Marinas , Will Deacon , Tony Luck , Fenghua Yu , Geert Uytterhoeven , Michal Simek , Paul Burton , Helge Deller , Michael Ellerman , Martin Schwidefsky , Heiko Carstens , 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 Tue, Jan 15, 2019 at 12:52 PM Russell King - ARM Linux admin wrote: > > On Thu, Jan 10, 2019 at 05:24:35PM +0100, Arnd Bergmann wrote: > > Most architectures define system call numbers for the rseq and pkey system > > calls, even when they don't support the features, and perhaps never will. > > > > Only a few architectures are missing these, so just define them anyway > > for consistency. If we decide to add them later to one of these, the > > system call numbers won't get out of sync then. > > I was lambasted for adding the pkey syscalls for 32-bit ARM in 2016, > which will probably never support it. Why has the attitude towards > this kind of thing now apparently become acceptable? I was (and still am) a bit unsure about this one. A number of architectures added the numbers that won't ever support them, but I wasn't sure if any of those that didn't add them might need it later. I tried to just go by the rule that anything that we list in asm-generic/unistd.h is probably important enough that we want to list it everywhere, even if that includes a couple that we end up being rather architecture specific. I'm happy to drop this patch if you or others feel that we're better off without it though. Arnd