From: "Michael Kerrisk (man-pages)" <mtk.manpages@gmail.com>
To: Andy Lutomirski <luto@amacapital.net>, linux-kernel@vger.kernel.org
Cc: mtk.manpages@gmail.com
Subject: Re: [PATCH manpages] modify_ldt.2: Clarify the lm bit's behavior
Date: Thu, 05 Feb 2015 08:51:38 +0100 [thread overview]
Message-ID: <54D3210A.90303@gmail.com> (raw)
In-Reply-To: <27da5d1594c1b5b7db0e33d425edaa35d45535a8.1423086787.git.luto@amacapital.net>
On 02/04/2015 10:53 PM, Andy Lutomirski wrote:
> The lm bit should never have existed in the first place. Sigh.
Thanks, Andy. Applied in the branch.
Cheers,
Michael
> Signed-off-by: Andy Lutomirski <luto@amacapital.net>
> ---
> man2/modify_ldt.2 | 13 +++++++++++--
> 1 file changed, 11 insertions(+), 2 deletions(-)
>
> diff --git a/man2/modify_ldt.2 b/man2/modify_ldt.2
> index 1c2cf9cdef93..d6e0514973a6 100644
> --- a/man2/modify_ldt.2
> +++ b/man2/modify_ldt.2
> @@ -187,12 +187,21 @@ The normal use for
> .BR modify_ldt (2)
> is to run legacy 16-bit or segmented 32-bit code.
> Not all kernels allow 16-bit segments to be installed, however.
> +.PP
> +Even on 64-bit kernels,
> +.BR modify_ldt (2)
> +cannot be used to create a long mode (i.e. 64-bit) code segment. The
> +undocumented field "lm" in
> +.IR user_desc
> +is not useful, and, despite its name, does not result in a long mode segment.
> .SH BUGS
> On 64-bit kernels before Linux 3.19,
> .\" commit e30ab185c490e9a9381385529e0fd32f0a399495
> -setting the "lm" padding bit in
> +setting the "lm" bit in
> .IR user_desc
> -prevents the descriptor from being considered empty.
> +prevents the descriptor from being considered empty. Keep in mind that the
> +"lm" bit does not exist in the 32-bit headers, but these buggy kernels
> +will still notice the bit even when set in a 32-bit process.
> .SH SEE ALSO
> .BR arch_prctl (2),
> .BR set_thread_area (2),
>
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
prev parent reply other threads:[~2015-02-05 7:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-04 21:53 [PATCH manpages] modify_ldt.2: Clarify the lm bit's behavior Andy Lutomirski
2015-02-05 7:51 ` Michael Kerrisk (man-pages) [this message]
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=54D3210A.90303@gmail.com \
--to=mtk.manpages@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=luto@amacapital.net \
/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.