Skip to content

x86-32: Clean up GS segment handling

Brian Gerst linuxppc-dev lkml 1 version Applied

Status from this message: The following commit has been merged into the x86/core branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 4 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4x86-32: Simplify ELF_CORE_COPY_REGSarch/x86/include/asm/elf.h+2 -130 replies
2/4ELF: Remove elf_core_copy_kernel_regs()arch/powerpc/kernel/fadump.c arch/powerpc/platforms/powernv/opal-core.c include/linux/elfcore.h +1 more+3 -122 replies
3/4x86-32: Remove lazy GS macrosarch/x86/include/asm/mmu_context.h arch/x86/include/asm/segment.h arch/x86/kernel/process.c +6 more+20 -280 replies
4/4x86: Merge load_gs_index()arch/x86/include/asm/segment.h arch/x86/include/asm/special_insns.h+4 -100 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchAndy LutomirskiThomas Gleixner
SeriesA-b R-b
1/4
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] x86-32: Clean up GS segment handling

Since commit 3fb0fdb3bbe ("Make the canary into a regular percpu variable"), the GS segment is no longer switched on kernel entry for 32-bit kernels. Clean up the remaining code that handled lazy GS switching.

Brian Gerst (4):
x86-32: Simplify ELF_CORE_COPY_REGS
ELF: Remove elf_core_copy_kernel_regs()
x86-32: Remove lazy GS macros
x86: Merge load_gs_index()

 arch/powerpc/kernel/fadump.c               |  2 +-
 arch/powerpc/platforms/powernv/opal-core.c |  2 +-
 arch/x86/include/asm/elf.h                 | 15 ++-------------
 arch/x86/include/asm/mmu_context.h         |  2 +-
 arch/x86/include/asm/segment.h             | 12 ------------
 arch/x86/include/asm/special_insns.h       |  7 ++++---
 arch/x86/kernel/process.c                  |  5 +----
 arch/x86/kernel/process_32.c               | 11 ++++-------
 arch/x86/kernel/ptrace.c                   |  6 +++---
 arch/x86/kernel/signal.c                   |  8 +++++---
 arch/x86/kernel/vm86_32.c                  |  4 ++--
 arch/x86/lib/insn-eval.c                   |  5 +++--
 arch/x86/math-emu/get_address.c            |  2 +-
 include/linux/elfcore.h                    |  9 ---------
 kernel/kexec_core.c                        |  2 +-
 15 files changed, 29 insertions(+), 63 deletions(-)
Signature · 1 line
2.35.1