From: John Reiser <jreiser@BitWagon.com>
To: Nathan Lynch <ntl@pobox.com>
Cc: linux-kernel@vger.kernel.org, linuxppc-dev@ozlabs.org,
Andrew Morton <akpm@linux-foundation.org>,
torvalds@linux-foundation.org, roland@redhat.com
Subject: Re: [PATCH v3] elf loader support for auxvec base platform string
Date: Fri, 18 Jul 2008 13:31:29 -0700 [thread overview]
Message-ID: <4880FDA1.9070307@BitWagon.com> (raw)
In-Reply-To: <20080718182850.GO9594@localdomain>
Nathan Lynch wrote:
> +#define AT_EXECFN 31 /* filename of program */
>
> How did you arrive at 31 for the value of AT_EXECFN? I haven't been
> able to find out how AT_* values are "allocated", or what the reason
> is for the gap between AT_SECURE and AT_SYSINFO.
The numbers are chosen by experience, taste, and fiat.
Hopefully new choices do not conflict with existing ones,
but there is no formal "issuing authority."
In history the auxiliary vector has been not well standardized
and many times has been hidden from view of applications, although some
SysV-based systems have made it visible as a fourth argument to main().
Linux has /proc/pid/auxv, although the implementation suffers
from being exposed to overwriting by the user. From long experience
at virtualization in user mode, I favor better access, more use,
and better understanding of what the auxiliary vector provides.
AT_SYSINFO at 32 was chosen to avoid conflicts with [0,31]
partly on the theory that the first 32 might be considered
to be reserved for use across all UNIX-like systems,
while AT_SYSINFO definitely was Linux-specific.
I chose AT_EXECFN at 31 because I considered the concept
to be applicable to any system having execve(), even if AT_EXECFN
is not universally implemented. I had not seen any new tags
below 32 in a long time. The concept of AT_EXECFN allows
a nice interface for a virtualizer. The somewhat-related
AT_EXECFD already exists below 32.
Elsewhere, I've staked out use of a new AT_WINE_PRELOAD_INFO
at 30. Avoid that one, please. :-)
--
John Reiser, jreiser@BitWagon.com
next prev parent reply other threads:[~2008-07-18 20:32 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-15 23:58 AT_BASE_PLATFORM (v2) Nathan Lynch
2008-07-15 23:58 ` [PATCH] elf loader support for auxvec base platform string Nathan Lynch
2008-07-17 6:35 ` Benjamin Herrenschmidt
2008-07-17 7:09 ` Andrew Morton
2008-07-17 17:39 ` Nathan Lynch
2008-07-17 22:19 ` [PATCH v3] " Nathan Lynch
2008-07-17 22:42 ` Andrew Morton
2008-07-17 23:35 ` John Reiser
2008-07-18 18:28 ` Nathan Lynch
2008-07-18 20:31 ` John Reiser [this message]
2008-07-18 20:52 ` Andrew Morton
2008-07-21 3:24 ` Benjamin Herrenschmidt
2008-07-21 3:40 ` Andrew Morton
2008-07-21 9:33 ` Benjamin Herrenschmidt
2008-07-21 18:48 ` [PATCH v4] " Nathan Lynch
2008-07-22 2:03 ` Benjamin Herrenschmidt
2008-07-17 16:10 ` [PATCH] " Linus Torvalds
2008-07-17 19:35 ` Nathan Lynch
2008-07-21 3:19 ` Benjamin Herrenschmidt
2008-07-15 23:58 ` [PATCH] enable AT_BASE_PLATFORM aux vector for powerpc Nathan Lynch
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4880FDA1.9070307@BitWagon.com \
--to=jreiser@bitwagon.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=ntl@pobox.com \
--cc=roland@redhat.com \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).