From: Andy Lutomirski <luto@amacapital.net>
To: hpa@zytor.com, x86@kernel.org, linux-kernel@vger.kernel.org
Cc: Andy Lutomirski <luto@amacapital.net>
Subject: [PATCH 0/3] x86: PER_CPU segment improvements
Date: Fri, 25 Jul 2014 18:12:58 -0700 [thread overview]
Message-ID: <cover.1406336986.git.luto@amacapital.net> (raw)
x86 sets up a per-cpu GDT entry so that vgetcpu can use LSL on it
to determine the CPU number and node.
This series, in little baby steps, cleans up that code and sets
the accessed and 32-bit flags on the segment.
The accessed bit prevents user code from setting the accessed bit
on its own, and making the segment 32-bit prevents concerns about
shenanigans involving CPU oddities with 16-bit data segments.
The latter isn't a real problem -- if it were a 16-bit read/write
segment, it could be used to bypass espfix64, but fortunately
RO segments can't be loaded into SS.
Andy Lutomirski (3):
x86,vdso: Change the PER_CPU segment to use struct desc_struct
x86,vdso: Make the PER_CPU segment start out accessed
x86,vdso: Make the PER_CPU segment 32 bits
arch/x86/kernel/vsyscall_64.c | 19 ++++++++++++-------
1 file changed, 12 insertions(+), 7 deletions(-)
--
1.9.3
next reply other threads:[~2014-07-26 1:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-26 1:12 Andy Lutomirski [this message]
2014-07-26 1:12 ` [PATCH 1/3] x86,vdso: Change the PER_CPU segment to use struct desc_struct Andy Lutomirski
2014-07-26 1:13 ` [PATCH 2/3] x86,vdso: Make the PER_CPU segment start out accessed Andy Lutomirski
2014-07-26 1:13 ` [PATCH 3/3] x86,vdso: Make the PER_CPU segment 32 bits Andy Lutomirski
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=cover.1406336986.git.luto@amacapital.net \
--to=luto@amacapital.net \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=x86@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox