Skip to content

Commit ce39d47

Browse files
Kuan-Ying Leewilldeacon
authored andcommitted
arm64: update PAC description for kernel
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]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent 94902d8 commit ce39d47

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Documentation/arm64/pointer-authentication.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,10 @@ The number of bits that the PAC occupies in a pointer is 55 minus the
5353
virtual address size configured by the kernel. For example, with a
5454
virtual address size of 48, the PAC is 7 bits wide.
5555

56-
Recent versions of GCC can compile code with APIAKey-based return
57-
address protection when passed the -msign-return-address option. This
58-
uses instructions in the HINT space (unless -march=armv8.3-a or higher
59-
is also passed), and such code can run on systems without the pointer
60-
authentication extension.
56+
When ARM64_PTR_AUTH_KERNEL is selected, the kernel will be compiled
57+
with HINT space pointer authentication instructions protecting
58+
function returns. Kernels built with this option will work on hardware
59+
with or without pointer authentication support.
6160

6261
In addition to exec(), keys can also be reinitialized to random values
6362
using the PR_PAC_RESET_KEYS prctl. A bitmask of PR_PAC_APIAKEY,

0 commit comments

Comments
 (0)