Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2143665imm; Wed, 16 May 2018 08:30:56 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpRnM8HEdYhKzMBQtDjsoulPRRd499ppMzYGsLXT1nWXP8+rL5vY4T7Myr0zghX5yewhGsY X-Received: by 2002:a17:902:4c88:: with SMTP id b8-v6mr1350982ple.285.1526484656277; Wed, 16 May 2018 08:30:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526484656; cv=none; d=google.com; s=arc-20160816; b=DHbFpF6btIgjT05VsGcgjCzcqkXU2ZypIC9m5t4HXRrjS9R+wlmeRneFxzw5rFGGXz 1O63dYn/57wvX5cin7O+GIYEbAUtxKtgN9z5LaoER99KU8qw+WRofyXFIAmou24zuEdW eO4TR+WZM0rTdtkKa3AU3K3DndWpEC0pBS8aia+RdovVlMWH7N55s9SV5MNXPeV0dRWT q5rOMsGx6byu4X8rMyeE5Nns+r0AR9/HLq/p63YSI3KpCcSaXphwRXQwnL78xB4jBQwr NMpbDe5eGmX7D+A7q28Eota2eDeQT/X9DeuSte03ZGQoiyW1fzK1pQvtKDS7ZRunZjpe OrQA== 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:message-id:subject:cc :to:from:date:arc-authentication-results; bh=IKWc4YfN+tAi8xIbtF3tNe/L589CnU0HalNazpbPHpQ=; b=TDuf4m2nO7rDYpNh9fzAGDlqYlOeGSYcFEkw02iQaZJNsScUHhj9I49tDAEA+Zi0qf 1Ril76Tfs0y0CGbn9MpFBwaR3cTXe2KzTBSvqraDKkQ8VUV3cmHxttcK5eFjEuRbn2ar zIONiXRQ36fylPrYKRZexNnDHbmcvtgjpBBrlW6rRgEpFDlULUa3nejtl5F17Zq6BBn2 P06hlvQ1dK9/9AeeNqUm8hepey1I/3GfEhAJklm2W6GxMbU26gh5UlA5u8dF0dzI9Eft QR62AHV8HuUUYzC6bwxI4/Nfq7PYK5vSCNuR48MqWAp68aI0T7+FI71HYoeis4TU2Dkv p+cw== 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 e26-v6si2982099pfb.185.2018.05.16.08.30.40; Wed, 16 May 2018 08:30:56 -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 S1752136AbeEPP3X (ORCPT + 99 others); Wed, 16 May 2018 11:29:23 -0400 Received: from 216-12-86-13.cv.mvl.ntelos.net ([216.12.86.13]:54160 "EHLO brightrain.aerifal.cx" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751510AbeEPP3V (ORCPT ); Wed, 16 May 2018 11:29:21 -0400 Received: from dalias by brightrain.aerifal.cx with local (Exim 3.15 #2) id 1fIyMb-0002S5-00; Wed, 16 May 2018 15:29:13 +0000 Date: Wed, 16 May 2018 11:29:13 -0400 From: Rich Felker To: Dave Martin Cc: linux-kernel@vger.kernel.org, x86@kernel.org, linux-arch@vger.kernel.org, linux-api@vger.kernel.org, Richard Henderson , Ivan Kokshaysky , Matt Turner , Russell King , Catalin Marinas , Will Deacon , Tony Luck , Fenghua Yu , Michal Simek , Ralf Baechle , James Hogan , Greentime Hu , Vincent Chen , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Palmer Dabbelt , Albert Ou , Martin Schwidefsky , Heiko Carstens , Yoshinori Sato , "David S. Miller" , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Chris Zankel , Max Filippov Subject: Re: [RFC PATCH] UAPI: Document auxvec AT_* namespace policy and note reservations Message-ID: <20180516152913.GY1392@brightrain.aerifal.cx> References: <1526480447-18185-1-git-send-email-Dave.Martin@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1526480447-18185-1-git-send-email-Dave.Martin@arm.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 16, 2018 at 03:20:47PM +0100, Dave Martin wrote: > There are constraints on defining AT_* auxvec tags that are not > obvious to the casual maintainer of either the global > or the arch-specific headers. This is likely > to lead to mistakes. (I certainly fell foul of it...) > > For the benefit of future maintainers, this patch collects the > relevant information in one place, documenting how the namespace > needs to be managed, and noting all the values currently in use. > > Maintaining a global list may result in some merge conflicts, but > AT_* values are not added frequently. I'm open to suggestions on > the best approach. > > I also assume that values 38 and 39 may have been used for > historical purposes, such as an architecture that is no longer > supported. If they have definitely never been used for anything, > they could be removed from the "reserved" list. On the userspace side (elf.h) all the AT_* constants are in one file. Why don't we just do the same here and eliminate the arch/*/include/uapi/asm/auxvec.h files and likewise the need to manually maintain consistency of the comments about reservations? If there are reasons not to do that, I'm not opposed to this patch as-is. Rich