]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
x86/S3: fix shadow stack resume path
authorMarek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Mon, 28 Sep 2020 08:43:10 +0000 (10:43 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 28 Sep 2020 08:43:10 +0000 (10:43 +0200)
Fix the resume path to load the shadow stack pointer from saved_ssp (not
saved_rsp), to match what suspend path does.

Fixes: 633ecc4a7cb2 ("x86/S3: Save and restore Shadow Stack configuration")
Backport: 4.14
Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/acpi/wakeup_prot.S

index a2c41c4f3f263ebed6b9de656eccba05eb411ab0..c6b3fcc93d934bb8134a77190858eed7d12c0d65 100644 (file)
@@ -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