Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1511479imm; Sat, 11 Aug 2018 15:30:40 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwF7Rc+FG+3e/FYjR8cUSA6yXZvZvVXmWqnU9blqEbpZHeLmumEycONlllWU9bMlcqBbDIg X-Received: by 2002:a17:902:c85:: with SMTP id 5-v6mr11272900plt.141.1534026640778; Sat, 11 Aug 2018 15:30:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534026640; cv=none; d=google.com; s=arc-20160816; b=y8lMWRNCGllucxBs8g5Bwvlppz7tHz8S9MVMPYST7IbVRM7UeP4nHDdo9npTMnkmNH nBaxw1c4PGarbhp0XifjECosd/+iHeLr1LxESmBFAW4Gn3S2/x7NCdC0SEvgZl+4bh// 7Ip8RPg/WRjrjUZ24ga5e9HYcn1QvtxoXBAbk/rjOzTBgE1qvrUfQtlgrrUZxIjYmb5f LeE2qRixGViNivR841E0oJq6DTOuqihrf9PoVKiR5XIubmVRrsSoaICfmU4ij8Q1L5N8 2s2+V+bVEBUr6qU8BHXJ89In51tZhhwcODa1x4tofaXDSBqdTK/R5SkW6t6U+Mn1RGBf wmbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:subject:message-id:date:from :in-reply-to:references:mime-version:arc-authentication-results; bh=dVpFaLujCLuzTCLp8f/ciTAG9QgHtMNXhTvgdSPf+fo=; b=Ui2iKyxaPI4nISX2aPB1yyTX5YCWhEU84BpsE7jofPr8wlSG6aDFrijVgL1zMkPf7w c5H050vlzV+xNUceEPyYsU/WIV0NkZ0YbIBpU/1t2Z/g3bUtxSMpDnTppO/zreApdEi8 JzAM3CKhjz/CWAppnFhIYk43+gqNdx1bu90hFScTgY4VDpngq3AEmX1tA2I3WwL26rEu QmXKh0NR2ztT573vN/qQ8yWQpd/WsHzYVZD8RKBRE0lKrBgag3vKKRStMgk03Gb5bWBx O0hNMB8H1o19ZhKUE/yZPi9wPK5ePhL53Nyxa67ZzIkfkPA9pZ3LxMPtQBTf7UyiPnsX k8qA== 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 w25-v6si14097605pga.58.2018.08.11.15.29.55; Sat, 11 Aug 2018 15:30:40 -0700 (PDT) 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 S1727531AbeHLBDT (ORCPT + 99 others); Sat, 11 Aug 2018 21:03:19 -0400 Received: from mail-qt0-f196.google.com ([209.85.216.196]:39713 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727229AbeHLBDT (ORCPT ); Sat, 11 Aug 2018 21:03:19 -0400 Received: by mail-qt0-f196.google.com with SMTP id q12-v6so13943874qtp.6; Sat, 11 Aug 2018 15:27:40 -0700 (PDT) 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; bh=dVpFaLujCLuzTCLp8f/ciTAG9QgHtMNXhTvgdSPf+fo=; b=Z4Q0/Hwo7ilu/AilRRe6pwqPBoy7I5/TrMU494larlekMhZQr0qaUIXQBmt7Ho/VQb Lrg6Q9tZEhXYXO3wJQ8SLCy2Lr1Sx3GNi75V7W9gKzuZDsmu03OvcogWB2bafqVlKnS9 ClCPdh+7SfrE4ZO8Nog7k3/EXY2gGDsb2z+JXrMmshitZuVIo4udIKC1+F/OStbGIH/A gzkCor0u1/rf7/0Tt5hQlgvGBYNZ/uk6kCiKRuvWTg/WC0UDByPVbfBQI8Jfic3GmXqO dinL8rJVwfUjAJrCoKKwNb766wXiTNfITjeAqIIjEKJUoBlFdlA9aZXPCWWAp3fSgZ4i KS2A== X-Gm-Message-State: AOUpUlG1VNpV6xLWdOLmTVgT+vwctvendHvylqPyC/WZTGtEjbtPw1h6 t/PfDfz77s4u7mwFjOoXTkjjbfRnIlPcQz9VRt0= X-Received: by 2002:aed:241d:: with SMTP id r29-v6mr11189256qtc.389.1534026460212; Sat, 11 Aug 2018 15:27:40 -0700 (PDT) MIME-Version: 1.0 References: <1531736638-15294-1-git-send-email-firoz.khan@linaro.org> <1531736638-15294-2-git-send-email-firoz.khan@linaro.org> <20180811192804.GI6515@ZenIV.linux.org.uk> <20180811205901.gxbcn5vf4z36cozi@tower> In-Reply-To: <20180811205901.gxbcn5vf4z36cozi@tower> From: Arnd Bergmann Date: Sun, 12 Aug 2018 00:27:23 +0200 Message-ID: Subject: Re: [PATCH 1/6] alpha: Move __IGNORE* entries to non uapi header To: mcree@orcon.net.nz, Al Viro , Firoz Khan , linux-alpha@vger.kernel.org, Richard Henderson , Ivan Kokshaysky , Matt Turner , y2038 Mailman List , Linux Kernel Mailing List , linux-arch , Deepa Dinamani 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 Sat, Aug 11, 2018 at 10:59 PM Michael Cree wrote: > > On Sat, Aug 11, 2018 at 08:28:04PM +0100, Al Viro wrote: > > On Mon, Jul 16, 2018 at 03:53:53PM +0530, Firoz Khan wrote: > > > It is correct to keep __IGNORE* entry in non uapi header > > > asm/unistd.h while uapi/asm/unistd.h must hold information > > > only useful for user space applications. > > > > > diff --git a/arch/alpha/include/uapi/asm/unistd.h b/arch/alpha/include/uapi/asm/unistd.h > > > index e153ca6..3bb6ac1 100644 > > > --- a/arch/alpha/include/uapi/asm/unistd.h > > > +++ b/arch/alpha/include/uapi/asm/unistd.h > > > @@ -481,9 +481,4 @@ > > > #define __NR_pwritev2 521 > > > #define __NR_statx 522 > > > > > > -/* Alpha doesn't have protection keys. */ > > > -#define __IGNORE_pkey_mprotect > > > -#define __IGNORE_pkey_alloc > > > -#define __IGNORE_pkey_free > > > - > > > #endif /* _UAPI_ALPHA_UNISTD_H */ > > > > Hmm... There's also > > > > #define __IGNORE_alarm > > #define __IGNORE_creat > > Tell you what, I wouldn't mind if the following ones were actually > implemented as syscalls in the kernel on Alpha: > > > #define __IGNORE_getegid > > #define __IGNORE_geteuid > > #define __IGNORE_getgid > > #define __IGNORE_getpid > > #define __IGNORE_getppid > > #define __IGNORE_getuid > > There's a growing number of software packages that are deciding > to sideskip glibc and call these syscalls directly. Supporting > OSF's C ABI incompliant getxpid, etc., in such packages is not > easy and rather intrusive. That sounds like a good idea to me. It would also help simplify libc implementations in the long run, as we will probably soon have a new baseline kernel header version once the y2038 syscalls are added, with glibc (and maybe others) requiring at leat that new version as a build time dependency rather than requiring linux-3.2+ for both headers and runtime. In a number of years, the latest glibc might then use that same version again for both the header version and the kernel runtime, and at that point, it can drop the alpha specific wrapper. For the other __IGNORE_ entries, I think we can just drop the ones for alarm, creat, pause, time and utime, as they are already present in scripts/checksyscalls.sh. __IGNORE_mount2 is still required here, since alpha calls it __NR_mount rather than __NR_mount2. Arnd