Skip to content

x86: TLS regression fixes

Andy Lutomirski lkml stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2x86, tls, ldt: Stop checking lm in LDT_emptyarch/x86/include/asm/desc.h+2 -70 replies
2/2x86, tls: Interpret an all-zero struct user_desc as "no segment"arch/x86/include/asm/desc.h arch/x86/kernel/tls.c+36 -22 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] x86: TLS regression fixes

The recent TLS hardening work broke at least one game. This series fixes it. I'm not entirely happy with this series, but I'm far from entirely happy with the TLS or LDT code in the first place.

Thoughts?

Andy Lutomirski (2):
x86, tls, ldt: Stop checking lm in LDT_empty
x86, tls: Interpret an all-zero struct user_desc as "no segment"

 arch/x86/include/asm/desc.h | 20 ++++++++++++++------
 arch/x86/kernel/tls.c       | 25 +++++++++++++++++++++++--
 2 files changed, 37 insertions(+), 8 deletions(-)
Signature · 1 line
2.1.0