mbox series

[v2,0/2] arm64: pointer auth cleanup

Message ID 20230131105809.991288-1-mark.rutland@arm.com (mailing list archive)
Headers show
Series arm64: pointer auth cleanup | expand

Message

Mark Rutland Jan. 31, 2023, 10:58 a.m. UTC
With the recent dynamic SCS patches conditionally disabling pointer
authentication for leaf functions, I thought I'd try to clean things up
and consistently do so.

Patch 1 is (hopefully not controversial) Makefile cleanup.

Patch 2 disables pointer authentication for leaf functions, for the
reasons laid out in the commit message (which laregly boils down to
"it's not necessary" and "our prior rationale for doing so doesn't hold
water").

Since v1 [1]:
* Fix typos in patch 2's commit message
* Add tags from Ard and Mark

[1] https://lore.kernel.org/linux-arm-kernel/20230125182201.800076-1-mark.rutland@arm.com/

Thanks,
Mark.

Mark Rutland (2):
  arm64: unify asm-arch manipulation
  arm64: pauth: don't sign leaf functions

 arch/arm64/Kconfig  |  4 +--
 arch/arm64/Makefile | 65 ++++++++++++++++++---------------------------
 2 files changed, 28 insertions(+), 41 deletions(-)

Comments

Catalin Marinas Jan. 31, 2023, 4:29 p.m. UTC | #1
On Tue, 31 Jan 2023 10:58:07 +0000, Mark Rutland wrote:
> With the recent dynamic SCS patches conditionally disabling pointer
> authentication for leaf functions, I thought I'd try to clean things up
> and consistently do so.
> 
> Patch 1 is (hopefully not controversial) Makefile cleanup.
> 
> Patch 2 disables pointer authentication for leaf functions, for the
> reasons laid out in the commit message (which laregly boils down to
> "it's not necessary" and "our prior rationale for doing so doesn't hold
> water").
> 
> [...]

Applied to arm64 (for-next/ptrauth), thanks!

[1/2] arm64: unify asm-arch manipulation
      https://git.kernel.org/arm64/c/1e249c41ea43
[2/2] arm64: pauth: don't sign leaf functions
      https://git.kernel.org/arm64/c/c68cf5285e18