x86/S3: Fix Shadow Stack resume path
PATCH 1/1 x86/S3: Fix Shadow Stack resume path
Fix the resume path to load the shadow stack pointer from saved_ssp (not saved_rsp), to match what suspend path does.
Signed-off-by Marek Marczykowski-Górecki <[email protected]>
Fixes 633ecc4a7cb2 ("x86/S3: Save and restore Shadow Stack configuration")
Backport: 4.14
--- xen/arch/x86/acpi/wakeup_prot.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
xen/arch/x86/acpi/wakeup_prot.S +1 -1
@@ -69,7 +69,7 @@ ENTRY(s3_resume) * so SETSSBSY will successfully load a value useful for us, then * reset MSR_PL0_SSP to its usual value and pop the temporary token. */ - mov saved_rsp(%rip), %rdi + mov saved_ssp(%rip), %rdi cmpq $1, %rdi je .L_shstk_done
Signature · 1 line
2.25.4
Quoted 4 lines · Marek Marczykowski-Górecki
Fix the resume path to load the shadow stack pointer from
saved_ssp(notsaved_rsp), to match what suspend path does.Signed-off-by Marek Marczykowski-Górecki <[email protected]>
Reviewed-by Jan Beulich <[email protected]>