arm64: update PAC description for kernel
Subsystems (2)
PATCH v2 1/1 arm64: update PAC description for kernel
Remove the paragraph which has nothing to do with the kernel and add PAC description related to kernel.
---
v1 -> v2:
- Remove compiler option description
- Add PAC description for kernel
Documentation/arm64/pointer-authentication.rst | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)
Documentation/arm64/pointer-authentication.rst +4 -5
@@ -53,11 +53,10 @@ The number of bits that the PAC occupies in a pointer is 55 minus the virtual address size configured by the kernel. For example, with a virtual address size of 48, the PAC is 7 bits wide. -Recent versions of GCC can compile code with APIAKey-based return -address protection when passed the -msign-return-address option. This -uses instructions in the HINT space (unless -march=armv8.3-a or higher -is also passed), and such code can run on systems without the pointer -authentication extension. +When ARM64_PTR_AUTH_KERNEL is selected, the kernel will be compiled +with HINT space pointer authentication instructions protecting +function returns. Kernels built with this option will work on hardware +with or without pointer authentication support. In addition to exec(), keys can also be reinitialized to random values using the PR_PAC_RESET_KEYS prctl. A bitmask of PR_PAC_APIAKEY,
Signature · 1 line
2.18.0
Quoted 5 lines · Kuan-Ying Lee
Remove the paragraph which has nothing to do with the kernel and add PAC description related to kernel.
Suggested-by Mark Rutland <[email protected]>Signed-off-by Kuan-Ying Lee <[email protected]>
This looks good to me.
Catalin/Will, did you want to pick this, or do you want Jonathan to do so?
Mark.
Quoted 31 lines
---
v1 -> v2:
- Remove compiler option description
- Add PAC description for kernelDocumentation/arm64/pointer-authentication.rst | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)Documentation/arm64/pointer-authentication.rst +4
-5@@ -53,11 +53,10 @@ The number of bits that the PAC occupies in a pointer is 55 minus the virtual address size configured by the kernel. For example, with a virtual address size of 48, the PAC is 7 bits wide. -Recent versions of GCC can compile code with APIAKey-based return -address protection when passed the -msign-return-address option. This -uses instructions in the HINT space (unless -march=armv8.3-a or higher -is also passed), and such code can run on systems without the pointer -authentication extension. +When ARM64_PTR_AUTH_KERNEL is selected, the kernel will be compiled +with HINT space pointer authentication instructions protecting +function returns. Kernels built with this option will work on hardware +with or without pointer authentication support. In addition to exec(), keys can also be reinitialized to random values using the PR_PAC_RESET_KEYS prctl. A bitmask of PR_PAC_APIAKEY,Signature · 1 line
2.18.0
Quoted 10 lines · Mark Rutland
Quoted 5 lines · Kuan-Ying Lee
Remove the paragraph which has nothing to do with the kernel and add PAC description related to kernel.
Suggested-by Mark Rutland <[email protected]>Signed-off-by Kuan-Ying Lee <[email protected]>This looks good to me.
Catalin/Will, did you want to pick this, or do you want Jonathan to do so?
I can grab it.
Will
Will Deacon
AppliedQuoted 4 lines · Kuan-Ying Lee
Remove the paragraph which has nothing to do with the kernel and add PAC description related to kernel.
Applied to arm64 (for-next/fixes), thanks!
[1/1] arm64: update PAC description for kernel
https://git.kernel.org/arm64/c/ce39d473d1ed
Cheers,
Signature · 5 lines
Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev