File tree Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -53,11 +53,10 @@ The number of bits that the PAC occupies in a pointer is 55 minus the
53
53
virtual address size configured by the kernel. For example, with a
54
54
virtual address size of 48, the PAC is 7 bits wide.
55
55
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.
61
60
62
61
In addition to exec(), keys can also be reinitialized to random values
63
62
using the PR_PAC_RESET_KEYS prctl. A bitmask of PR_PAC_APIAKEY,
Original file line number Diff line number Diff line change 77
77
.endm
78
78
79
79
SYM_CODE_START(ftrace_regs_caller)
80
+ #ifdef BTI_C
81
+ BTI_C
82
+ #endif
80
83
ftrace_regs_entry 1
81
84
b ftrace_ common
82
85
SYM_CODE_END(ftrace_regs_caller)
83
86
84
87
SYM_CODE_START(ftrace_caller)
88
+ #ifdef BTI_C
89
+ BTI_C
90
+ #endif
85
91
ftrace_regs_entry 0
86
92
b ftrace_ common
87
93
SYM_CODE_END(ftrace_caller)
Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ int machine_kexec_post_load(struct kimage *kimage)
147
147
if (rc )
148
148
return rc ;
149
149
kimage -> arch .ttbr1 = __pa (trans_pgd );
150
- kimage -> arch .zero_page = __pa (empty_zero_page );
150
+ kimage -> arch .zero_page = __pa_symbol (empty_zero_page );
151
151
152
152
reloc_size = __relocate_new_kernel_end - __relocate_new_kernel_start ;
153
153
memcpy (reloc_code , __relocate_new_kernel_start , reloc_size );
You can’t perform that action at this time.
0 commit comments