From: Ingo Molnar <mingo@kernel.org>
To: Andrei Epure <epure.andrei@gmail.com>
Cc: mingo@redhat.com, peterz@infradead.org,
linux-kernel@vger.kernel.org, trivial@kernel.org
Subject: Re: [PATCH] include:linux: task_struct personality comment
Date: Wed, 10 Apr 2013 11:30:40 +0200 [thread overview]
Message-ID: <20130410093039.GA24443@gmail.com> (raw)
In-Reply-To: <1365512532-18730-1-git-send-email-epure.andrei@gmail.com>
* Andrei Epure <epure.andrei@gmail.com> wrote:
> Signed-off-by: Andrei Epure <epure.andrei@gmail.com>
> ---
> include/linux/sched.h | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/include/linux/sched.h b/include/linux/sched.h
> index d35d2b6..8621bb0 100644
> --- a/include/linux/sched.h
> +++ b/include/linux/sched.h
> @@ -1274,8 +1274,10 @@ struct task_struct {
> int exit_code, exit_signal;
> int pdeath_signal; /* The signal sent when the parent dies */
> unsigned int jobctl; /* JOBCTL_*, siglock protected */
> - /* ??? */
> +
> + /* used with exec_domain for compatibility with other UNIX-like OSs */
> unsigned int personality;
I don't mind documenting the p->personality flag, but in practice it's not used
for emulation of other OSs really, but for emulating ABI behavior with previous
_Linux_ versions, see include/uapi/linux/personality.h:
* Flags for bug emulation.
*
* These occupy the top three bytes.
*/
enum {
UNAME26 = 0x0020000,
ADDR_NO_RANDOMIZE = 0x0040000, /* disable randomization of VA space */
FDPIC_FUNCPTRS = 0x0080000, /* userspace function ptrs point to descriptors
* (signal handling)
*/
MMAP_PAGE_ZERO = 0x0100000,
ADDR_COMPAT_LAYOUT = 0x0200000,
READ_IMPLIES_EXEC = 0x0400000,
ADDR_LIMIT_32BIT = 0x0800000,
SHORT_INODE = 0x1000000,
WHOLE_SECONDS = 0x2000000,
STICKY_TIMEOUTS = 0x4000000,
ADDR_LIMIT_3GB = 0x8000000,
So the updated comment should say that.
Thanks,
Ingo
next prev parent reply other threads:[~2013-04-10 9:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-09 13:02 [PATCH] include:linux: task_struct personality comment Andrei Epure
2013-04-10 9:30 ` Ingo Molnar [this message]
2013-04-10 14:57 ` Andrei Epure
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=20130410093039.GA24443@gmail.com \
--to=mingo@kernel.org \
--cc=epure.andrei@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=trivial@kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.