Skip to content

arm64: Support of PAuth QARMA3 architected algorithm

Vladimir Murzin linux-arm-kernel 3 versions – Applied

Status from this message: Applied to arm64 (for-next/pauth), thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 2 repliesApplied
  2. v24 patches 11 repliesSuperseded
  3. v14 patches 0 repliesSuperseded

Changes in v3 from the cover letter

- Removed WARN_ON(s) (per Will)
- Rebased on 5.17-rc5

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/3arm64: cpufeature: Account min_field_value when cheking secondaries for PAutharch/arm64/kernel/cpufeature.c+1 -10 replies
2/3arm64: cpufeature: Mark existing PAuth architected algorithm as QARMA5arch/arm64/kernel/cpufeature.c arch/arm64/tools/cpucaps+14 -100 replies
3/3arm64: Add support of PAuth QARMA3 architected algorithmarch/arm64/include/asm/asm_pointer_auth.h arch/arm64/include/asm/cpufeature.h arch/arm64/include/asm/kvm_hyp.h +8 more+97 -40 replies

Reviews trailers per patch

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

PatchMarc Zyngier
SeriesA-b
1/3
2/3
3/3

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

Read the v3 thread

Cover letter [PATCH v3 0/3] arm64: Support of PAuth QARMA3 architected algorithm

QARMA3 is relaxed version of the QARMA5 algorithm which expected to reduce the latency of calculation while still delivering a suitable level of security.

Feature advertised via a new ID fields in ID_AA64ISAR2_EL1 [1], so we need to teach the kernel to identify this.

[1] https://developer.arm.com/documentation/ddi0601/2021-12/AArch64-Registers/ID-AA64ISAR2-EL1--AArch64-Instruction-Set-Attribute-Register-2?lang=en

Changelog:

v1 -> v2
- Removed unintended whitespace change in sysreg.h
- FTR_ALIAS_OPTION_LEN now accounts null terminator
- Extract only APA3 bits from ID_AA64ISAR2_APA3_SHIFT (in contrast to id_aa64isar1_el1 where both APA and API bits are extracted) in asm_pointer_auth.h
v2 -> v3
- Removed WARN_ON(s) (per Will)
- Rebased on 5.17-rc5

Thanks!

Vladimir Murzin (3):
arm64: cpufeature: Account min_field_value when cheking secondaries
for PAuth
arm64: cpufeature: Mark existing PAuth architected algorithm as QARMA5
arm64: Add support of PAuth QARMA3 architected algorithm

 arch/arm64/include/asm/asm_pointer_auth.h      |  3 ++
 arch/arm64/include/asm/cpufeature.h            |  1 +
 arch/arm64/include/asm/kvm_hyp.h               |  1 +
 arch/arm64/include/asm/sysreg.h                | 12 ++++++
 arch/arm64/kernel/cpufeature.c                 | 59 ++++++++++++++++++++++----
 arch/arm64/kernel/idreg-override.c             | 16 ++++++-
 arch/arm64/kvm/arm.c                           |  1 +
 arch/arm64/kvm/hyp/include/nvhe/fixed_config.h |  5 +++
 arch/arm64/kvm/hyp/nvhe/sys_regs.c             | 14 ++++++
 arch/arm64/kvm/sys_regs.c                      |  5 +++
 arch/arm64/tools/cpucaps                       |  6 ++-
 11 files changed, 110 insertions(+), 13 deletions(-)
Signature · 7 lines
2.7.4


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel