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

From: Kevin Brodsky
Date: Wed Feb 19 2025 - 11:42:22 EST


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@xxxxxxx/

---
Cc: Catalin Marinas <catalin.marinas@xxxxxxx>
Cc: Joey Gouly <joey.gouly@xxxxxxx>
Cc: Will Deacon <will@xxxxxxxxxx>
---
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
--
2.47.0