mbox series

[0/3] Minor improvements for PIE/POE helpers

Message ID 20250219164029.2309119-1-kevin.brodsky@arm.com (mailing list archive)
Headers show
Series Minor improvements for PIE/POE helpers | expand

Message

Kevin Brodsky Feb. 19, 2025, 4:40 p.m. UTC
This is a collection of minor cleanups and improvements for the PIE/POE
macros in asm/sysreg.h and asm/por.h. Besides the readability
improvement, it will also come in handy for the kpkeys series [1] that
performs more calculations on POR_EL1.

- Kevin

[1] https://lore.kernel.org/linux-hardening/20250203101839.1223008-1-kevin.brodsky@arm.com/

---
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Joey Gouly <joey.gouly@arm.com>
Cc: Will Deacon <will@kernel.org>
---
Kevin Brodsky (3):
  arm64/sysreg: Improve PIR/POR helpers
  arm64/sysreg: Rename POE_RXW to POE_RWX
  arm64/sysreg: Move POR_EL0_INIT to asm/por.h

 arch/arm64/include/asm/pgtable-prot.h | 36 +++++++++++++--------------
 arch/arm64/include/asm/por.h          | 11 ++++----
 arch/arm64/include/asm/sysreg.h       | 15 +++++++----
 arch/arm64/kernel/signal.c            |  2 +-
 arch/arm64/kvm/at.c                   |  8 +++---
 arch/arm64/mm/mmu.c                   | 10 +++-----
 6 files changed, 43 insertions(+), 39 deletions(-)


base-commit: 0ad2507d5d93f39619fc42372c347d6006b64319