Skip to content

x86/cpu: Do some janitorial work

Borislav Petkov lkml 2 versions – Applied

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 13 repliesApplied
  2. v11 patch 0 repliesSuperseded

changelog from the cover letter

----------

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/6x86/cpu: Allow feature bit names from /proc/cpuinfo in clearcpuid=Documentation/admin-guide/kernel-parameters.txt arch/x86/include/asm/cpufeature.h arch/x86/kernel/cpu/common.c+58 -172 replies
2/6x86/cpu: Remove "nosep"Documentation/admin-guide/kernel-parameters.txt arch/x86/kernel/cpu/common.c+0 -91 reply
3/6x86/cpu: Remove CONFIG_X86_SMAP and "nosmap"Documentation/admin-guide/kernel-parameters.txt Documentation/x86/cpuinfo.rst arch/x86/Kconfig +6 more+6 -715 replies
4/6x86/cpu: Remove "nosmep"Documentation/admin-guide/kernel-parameters.txt Documentation/x86/cpuinfo.rst arch/x86/kernel/cpu/common.c+3 -101 reply
5/6x86/cpu: Remove "noexec"Documentation/admin-guide/kernel-parameters.txt Documentation/x86/x86_64/boot-options.rst arch/x86/include/asm/proto.h +4 more+26 -833 replies
6/6x86/cpu: Remove "noclflush"Documentation/admin-guide/kernel-parameters.txt arch/x86/kernel/cpu/common.c+0 -101 reply

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchLai JiangshanKees Cook
1/6R-b R-b
2/6R-b
3/6R-b R-b
4/6R-b R-b
5/6R-b R-b
6/6R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/6] x86/cpu: Do some janitorial work

From: Borislav Petkov <[email protected]>

Hi all,

here's v2 with some adjustments due to dependent changes which went upstream, in the meantime. I figure I should send them out one more time before I queue them.

Also, patch 1 handles printing of naked feature numbers for which we don't generate a string for /proc/cpuinfo now too.

Thx.

changelog:
----------

v1
--

Beef up clearcpuid= so that it supports the strings from /proc/cpuinfo too and remove a bunch of useless, and, in some cases even downright dangerous, chicken bits we have added over the years.

Borislav Petkov (6):
x86/cpu: Allow feature bit names from /proc/cpuinfo in clearcpuid= x86/cpu: Remove "nosep"
x86/cpu: Remove CONFIG_X86_SMAP and "nosmap"
x86/cpu: Remove "nosmep"
x86/cpu: Remove "noexec"
x86/cpu: Remove "noclflush"

 .../admin-guide/kernel-parameters.txt         | 24 ++---
 Documentation/x86/cpuinfo.rst                 |  5 +-
 Documentation/x86/x86_64/boot-options.rst     |  9 --
 arch/x86/Kconfig                              | 11 ---
 arch/x86/include/asm/cpufeature.h             |  7 +-
 arch/x86/include/asm/disabled-features.h      |  8 +-
 arch/x86/include/asm/proto.h                  |  1 -
 arch/x86/include/asm/smap.h                   | 24 -----
 arch/x86/kernel/cpu/common.c                  | 94 +++++++++----------
 arch/x86/kernel/setup.c                       | 28 +++++-
 arch/x86/mm/Makefile                          |  3 +-
 arch/x86/mm/init_64.c                         |  1 -
 arch/x86/mm/setup_nx.c                        | 62 ------------
 scripts/Makefile.build                        |  1 -
 scripts/link-vmlinux.sh                       |  3 -
 .../arch/x86/include/asm/disabled-features.h  |  8 +-
 16 files changed, 91 insertions(+), 198 deletions(-)
 delete mode 100644 arch/x86/mm/setup_nx.c
Signature · 1 line
2.29.2