Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2165955imm; Wed, 16 May 2018 08:51:51 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpNlCRINRUXbeFlKEEZRyhHol6YzgCr84IfmpgqMggtuSi4uhgCvbs0qiW2VAMWuLp/kh7X X-Received: by 2002:a17:902:5c6:: with SMTP id f64-v6mr1473874plf.50.1526485911093; Wed, 16 May 2018 08:51:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526485911; cv=none; d=google.com; s=arc-20160816; b=HvRp7iyrn1f4jpd5WPrQKtOIPV+S/Abr4xwl1zokW8eXYCdk0B0l5r7hUhGI9sJELe Ye2myrpQc03v/Xxi1lFwZtJewsSl0n3b77xyEvIRRkJe/Pzwe/0OITSLrndfsJ6K/yD8 De5arM63v7qHvsHQl+snmwI5HxbHicQGop3DP0M/SHjrC1u5e73jQzeFR7didJZXPoj2 s+HaI9mCAzdMXaTxptQCin2gTPOBQsv6orwwUYLLWUB6fzC0vFmN9W0FDC0Fjaz/UvW3 AVHqWYsFQKO8aFnqMQXYx5JYXNfXmSaCVm1MZLGlkH3D317eWPo6AOW4oS+Zpk7N8d7K jXBw== 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=JF1MeJKZxh69YcONr0ngKsW5i0yOOJNQvarzwW3G3LU=; b=hy9jOtKHKgxBXqYF5BMWlwPpwsWZJL5wATJibhMe0oEmDYSY9ve7QXoN1Z61aEHa4e 5YZ9I6dC2P/En+8GhHfewCE4XHJo9BOxvuof5VhsfnmGHcWy/FkP2IgJqH+ML8c8Il80 YZLGvlIbGT+6hV2dEHuHKVtupdKQyc/wqg1+bEZdHDJNfrn6onJ1lpqSqWuTqjhm9I31 GC5Um1mfsLQwjGyhMSdfP37nC/IZFQ3l79A5r5jgvLVp2+KIilD2a1qyYr8HBFJt/Jf5 rgxeGsOSSiezIzomzHjWeYYMktmrtnxhpn/N5mg8gHvEyzfI8lYAUGZSxVGPsv62ySzc 5w/A== 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 g1-v6si2274303pgo.637.2018.05.16.08.51.36; Wed, 16 May 2018 08:51:51 -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 S1751098AbeEPPuK (ORCPT + 99 others); Wed, 16 May 2018 11:50:10 -0400 Received: from foss.arm.com ([217.140.101.70]:50790 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750746AbeEPPuI (ORCPT ); Wed, 16 May 2018 11:50:08 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A172F80D; Wed, 16 May 2018 08:50:07 -0700 (PDT) Received: from e103592.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5FD793F25D; Wed, 16 May 2018 08:50:02 -0700 (PDT) Date: Wed, 16 May 2018 16:49:59 +0100 From: Dave Martin To: Rich Felker 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: <20180516154957.GT7753@e103592.cambridge.arm.com> References: <1526480447-18185-1-git-send-email-Dave.Martin@arm.com> <20180516152913.GY1392@brightrain.aerifal.cx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180516152913.GY1392@brightrain.aerifal.cx> User-Agent: Mutt/1.5.23 (2014-03-12) 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 11:29:13AM -0400, Rich Felker wrote: > 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. I agree, it would be better to merge them. My concern was that the correct way to get these definitions from userspace is very unclear, so there may be software out there including directly, which would now lack expected definitions. codesearch.debian.net shows no real hits for that, so maybe I'm too paranoid. Since only contains #defines, it may be enough for arch headers to include . Thoughts? Cheers ---Dave