Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1469381imm; Sat, 11 Aug 2018 14:20:45 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyI2p1kUipa7GqDdpUzIdheA6wSsE2kEcFmc1W5uK50Pg7xgczDOKY/Y0iesWy5tW+5nvdI X-Received: by 2002:a63:9902:: with SMTP id d2-v6mr11387438pge.343.1534022445766; Sat, 11 Aug 2018 14:20:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534022445; cv=none; d=google.com; s=arc-20160816; b=bxgmrpskdenhQO/VOq6K+y8Z0JMaTCRdBlk/d5vMBfUqLWUqhv0Un/PC6zzq37R+yZ 4JSkKplwmMebCLZkzlUjTIM5UuBjvschHfYRTlG9YhR0mu7gJ43Nl+ttC3lbLgIEFU7H BGuWj3kP/SWZdth4+uPRDDtnGgw+iDOx83r7AtQToMKRlhCdHGlKO/J3uMMEWNWu+uSS KfRw7+oZzDgNR7tZcXwNkkPeyrSpe88dsN2fHFX5unO3ULfZ0o6Hu0kGscqaJXXiBheJ EPyQeW6f3HsTfgX8O4hRlPi7Nz1weAxEhbADV+BwrQPEDe22R7ukTuqhxQUlVVvXBXGS rS2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:arc-authentication-results; bh=ePiWDLT0E+2/f7/zwJkA+ni/RvfNixro63PU7QK16cw=; b=U5gnyXay7YvUBbt+y6nYLNCRSglDLwmMVnwvHqdAqjyuqqsHuyTeEeUjzvl6+EE6JA DtfI4Z2xcV2chxtvCf29PuWqXmwq0j0VQv0dBAMKVR/ItjmHMttYCijKozvs4UNcSFFA Q08hUC85h9RT8Juit2ny0cpZmXjB/SzNgVcrAChKQgDew8rFRt/As6yBBtAgHI6cxQXw vFf8dH8PCcvXRA89VKG415Ym29fFZZhJkZLEyPDA3548QRLf24I1sVK3PFXsXT8jWRh9 JzaycSeQBYrJ3YPx/vpi9BVXuAXQxinIyHTbSBUw8UnWZbscY5WBjHGHbi1MRkPuToJJ es6Q== 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=orcon.net.nz Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t10-v6si11700159pge.624.2018.08.11.14.20.01; Sat, 11 Aug 2018 14:20:45 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=orcon.net.nz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727614AbeHKXxA (ORCPT + 99 others); Sat, 11 Aug 2018 19:53:00 -0400 Received: from smtp-4.orcon.net.nz ([60.234.4.59]:39399 "EHLO smtp-4.orcon.net.nz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727041AbeHKXxA (ORCPT ); Sat, 11 Aug 2018 19:53:00 -0400 X-Greylist: delayed 1093 seconds by postgrey-1.27 at vger.kernel.org; Sat, 11 Aug 2018 19:52:59 EDT Received: from [121.99.228.40] (port=44121 helo=tower) by smtp-4.orcon.net.nz with esmtpa (Exim 4.86_2) (envelope-from ) id 1foayY-00035n-S7; Sun, 12 Aug 2018 08:59:06 +1200 Date: Sun, 12 Aug 2018 08:59:01 +1200 From: Michael Cree To: Al Viro Cc: Firoz Khan , linux-alpha@vger.kernel.org, rth@twiddle.net, ink@jurassic.park.msu.ru, mattst88@gmail.com, y2038@lists.linaro.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, arnd@arndb.de, deepa.kernel@gmail.com Subject: Re: [PATCH 1/6] alpha: Move __IGNORE* entries to non uapi header Message-ID: <20180811205901.gxbcn5vf4z36cozi@tower> Mail-Followup-To: Michael Cree , Al Viro , Firoz Khan , linux-alpha@vger.kernel.org, rth@twiddle.net, ink@jurassic.park.msu.ru, mattst88@gmail.com, y2038@lists.linaro.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, arnd@arndb.de, deepa.kernel@gmail.com 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180811192804.GI6515@ZenIV.linux.org.uk> User-Agent: NeoMutt/20170113 (1.7.2) X-GeoIP: NZ X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- 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 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. Cheers, Michael.