Skip to content

arm64: Fully disable configured-out features

Marc Zyngier kvmarm linux-arm-kernel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest11 patches 15 repliesIn review
  2. v19 patches 7 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11arm64: Skip update of an idreg field affected by an overridearch/arm64/kernel/cpufeature.c+7 -08 replies
2/11arm64: Add a helper setting a feature field to its safe valuearch/arm64/kernel/cpufeature.c+7 -32 replies
3/11arm64: Add logic to fully remove features from sanitised id registersarch/arm64/include/asm/cpufeature.h arch/arm64/kernel/cpufeature.c+36 -133 replies
4/11arm64: Convert CONFIG_ARM64_PTR_AUTH to FTR_CONFIG()arch/arm64/kernel/cpufeature.c+6 -60 replies
5/11arm64: Convert CONFIG_ARM64_SVE to FTR_CONFIG()arch/arm64/kernel/cpufeature.c+13 -130 replies
6/11arm64: Convert CONFIG_ARM64_SME to FTR_CONFIG()arch/arm64/kernel/cpufeature.c+24 -240 replies
7/11arm64: Convert CONFIG_ARM64_GCS to FTR_CONFIG()arch/arm64/kernel/cpufeature.c+1 -10 replies
8/11arm64: Convert CONFIG_ARM64_MTE to FTR_CONFIG()arch/arm64/kernel/cpufeature.c+1 -11 reply
9/11arm64: Convert CONFIG_ARM64_POE to FTR_CONFIG()arch/arm64/kernel/cpufeature.c+1 -10 replies
10/11arm64: Convert CONFIG_ARM64_BTI to FTR_CONFIG()arch/arm64/kernel/cpufeature.c+2 -20 replies
11/11arm64: Remove FTR_VISIBLE_IF_IS_ENABLED()arch/arm64/include/asm/cpufeature.h+0 -20 replies

Reviews trailers per patch

3 of 11 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchFuad TabbaSuzuki K Poulose
SeriesR-b T-b
1/11R-b R-b
2/11R-b R-b
3/11R-b R-b
4/11
5/11
6/11
7/11
8/11
9/11
10/11
11/11

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 00/11] arm64: Fully disable configured-out features

This is v2 of this series attempting at making the handling of features that are disabled at compile time a bit less awkward for non-userspace consumers of the sanitised feature bits.

A few things have changed, thanks to Fuad and Suzuki spending time on reviewing this, but the overall behaviour is the same.

* From v1 [1]:

- Mark ALL_HIDDEN and HIGHER_SAFE as incompatible

- Don't update a feature that is ALL_HIDDEN (or overridden) on the secondary boot path

- Reduce the size of struct arm64_ftr_bits

- Add a helper for setting a field to its safe value

[1] https://lore.kernel.org/r/[email protected]

Marc Zyngier (11):
arm64: Skip update of an idreg field affected by an override
arm64: Add a helper setting a feature field to its safe value
arm64: Add logic to fully remove features from sanitised id registers
arm64: Convert CONFIG_ARM64_PTR_AUTH to FTR_CONFIG()
arm64: Convert CONFIG_ARM64_SVE to FTR_CONFIG()
arm64: Convert CONFIG_ARM64_SME to FTR_CONFIG()
arm64: Convert CONFIG_ARM64_GCS to FTR_CONFIG()
arm64: Convert CONFIG_ARM64_MTE to FTR_CONFIG()
arm64: Convert CONFIG_ARM64_POE to FTR_CONFIG()
arm64: Convert CONFIG_ARM64_BTI to FTR_CONFIG()
arm64: Remove FTR_VISIBLE_IF_IS_ENABLED()

 arch/arm64/include/asm/cpufeature.h |  15 +--
 arch/arm64/kernel/cpufeature.c      | 141 +++++++++++++++++-----------
 2 files changed, 94 insertions(+), 62 deletions(-)
Signature · 1 line
2.47.3