public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] x86: PER_CPU segment improvements
@ 2014-07-30 22:07 Andy Lutomirski
  2014-07-30 22:07 ` [PATCH v2 1/3] x86,vdso: Change the PER_CPU segment to use struct desc_struct Andy Lutomirski
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Andy Lutomirski @ 2014-07-30 22:07 UTC (permalink / raw)
  To: hpa, x86, linux-kernel; +Cc: Andy Lutomirski

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.

Changes from v1:
 - Fix patch 2's changelog.
 - Learn to spell "Not a system segment".

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-08-23  1:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-30 22:07 [PATCH v2 0/3] x86: PER_CPU segment improvements Andy Lutomirski
2014-07-30 22:07 ` [PATCH v2 1/3] x86,vdso: Change the PER_CPU segment to use struct desc_struct Andy Lutomirski
2014-07-30 22:07 ` [PATCH v2 2/3] x86,vdso: Make the PER_CPU segment start out accessed Andy Lutomirski
2014-07-30 22:07 ` [PATCH v2 3/3] x86,vdso: Make the PER_CPU segment 32 bits Andy Lutomirski
2014-08-23  1:15 ` [PATCH v2 0/3] x86: PER_CPU segment improvements Andy Lutomirski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox