[xen master] x86: fix asm() constraint for GS selector update

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[xen master] x86: fix asm() constraint for GS selector update

patchbot
commit 65ab53de34851243fb7793ebf12fd92a65f84ddd
Author:     Jan Beulich <[hidden email]>
AuthorDate: Thu Oct 26 01:57:31 2017 -0600
Commit:     Andrew Cooper <[hidden email]>
CommitDate: Fri Oct 27 13:49:10 2017 +0100

    x86: fix asm() constraint for GS selector update
   
    Exception fixup code may alter the operand, which ought to be reflected
    in the constraint.
   
    Signed-off-by: Jan Beulich <[hidden email]>
    Reviewed-by: Andrew Cooper <[hidden email]>
    Release-acked-by: Julien Grall <[hidden email]>
---
 xen/arch/x86/x86_64/mm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen/arch/x86/x86_64/mm.c b/xen/arch/x86/x86_64/mm.c
index 1174673..34cd845 100644
--- a/xen/arch/x86/x86_64/mm.c
+++ b/xen/arch/x86/x86_64/mm.c
@@ -1062,7 +1062,7 @@ long do_set_segment_base(unsigned int which, unsigned long base)
             "     jmp  1b             \n"
             ".previous                \n"
             _ASM_EXTABLE(1b, 2b)
-            : : "r" (base&0xffff) );
+            : "+r" (base) );
         break;
 
     default:
--
generated by git-patchbot for /home/xen/git/xen.git#master

_______________________________________________
Xen-changelog mailing list
[hidden email]
https://lists.xenproject.org/xen-changelog