On 8/12/2023 8:54 AM, Jo Van Bulck wrote:
arch/x86/mm/pti.c | 55 ++++++++++++++++++++++++-----------------------
1 file changed, 28 insertions(+), 27 deletions(-)
This version is very similar to the original patch and much simpler.
Sorry about the unnecessary churn.
Apart from the minor nits below,
Reviewed-by: Sohil Mehta <sohil.mehta@xxxxxxxxx>
+ if (cpu_mitigations_off())
pti_mode = PTI_FORCE_OFF;
+ if (pti_mode == PTI_FORCE_OFF) {
pti_print_if_insecure("disabled on command line.");
return;
}
A new line here would be useful.
Was there an issue with the flow you had in the original patch? It was
avoiding the goto label and flow was a bit more linear.