Skip to content

Clean up x86_32 stackprotector

Andy Lutomirski lkml 2 versions – 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 · linked by author and title

  1. v2 Latest2 patches 19 repliesApplied
  2. v12 patches 8 repliesSuperseded

Changes in v2 from the cover letter

- Changelog fixes.
- Comment fixes (mostly from Sean).
- Fix the !SMP case.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2x86/stackprotector/32: Make the canary into a regular percpu variablearch/x86/Kconfig arch/x86/Makefile arch/x86/entry/entry_32.S +17 more+62 -22616 replies
2/2x86/entry/32: Remove leftover macros after stackprotector cleanupsarch/x86/entry/entry_32.S+2 -410 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/2] Clean up x86_32 stackprotector

x86_32 stackprotector is a maintenance nightmare. Clean it up. This disables stackprotector on x86_32 on GCC 8.1 and on all clang versions. Some clang people are cc'd.

Changes from v1:
- Changelog fixes.
- Comment fixes (mostly from Sean).
- Fix the !SMP case.

Andy Lutomirski (2):
x86/stackprotector/32: Make the canary into a regular percpu variable x86/entry/32: Remove leftover macros after stackprotector cleanups

 arch/x86/Kconfig                          |  7 +-
 arch/x86/Makefile                         |  8 ++
 arch/x86/entry/entry_32.S                 | 95 +----------------------
 arch/x86/include/asm/processor.h          | 15 +---
 arch/x86/include/asm/ptrace.h             |  5 +-
 arch/x86/include/asm/segment.h            | 30 ++-----
 arch/x86/include/asm/stackprotector.h     | 79 ++++---------------
 arch/x86/include/asm/suspend_32.h         |  6 +-
 arch/x86/kernel/asm-offsets_32.c          |  5 --
 arch/x86/kernel/cpu/common.c              |  5 +-
 arch/x86/kernel/doublefault_32.c          |  4 +-
 arch/x86/kernel/head_32.S                 | 18 +----
 arch/x86/kernel/setup_percpu.c            |  1 -
 arch/x86/kernel/tls.c                     |  8 +-
 arch/x86/kvm/svm/svm.c                    | 10 +--
 arch/x86/lib/insn-eval.c                  |  4 -
 arch/x86/platform/pvh/head.S              | 14 ----
 arch/x86/power/cpu.c                      |  6 +-
 arch/x86/xen/enlighten_pv.c               |  1 -
 scripts/gcc-x86_32-has-stack-protector.sh |  6 +-
 20 files changed, 62 insertions(+), 265 deletions(-)
Signature · 1 line
2.29.2