Commit e8d5c968 authored by William Grant's avatar William Grant Committed by Marcelo Henrique Cerri

UBUNTU: SAUCE: x86/kvm: Fix stuff_RSB() for 32-bit

CVE-2017-5753
CVE-2017-5715
Signed-off-by: default avatarWilliam Grant <wgrant@ubuntu.com>
Acked-by: default avatarKamal Mostafa <kamal@canonical.com>
Signed-off-by: default avatarSeth Forshee <seth.forshee@canonical.com>
Signed-off-by: default avatarAndy Whitcroft <apw@canonical.com>
parent 087580bf
...@@ -194,9 +194,13 @@ static inline void stuff_RSB(void) ...@@ -194,9 +194,13 @@ static inline void stuff_RSB(void)
.label31: \n\ .label31: \n\
call .label32 \n\ call .label32 \n\
pause \n\ pause \n\
.label32: \n\ .label32: \n"
add $(32*8), %%rsp \n\ #ifdef CONFIG_X86_64
": : :"memory"); " add $(32*8), %%rsp \n"
#else
" add $(32*4), %%esp \n"
#endif
: : :"memory");
} }
enum kvm_reg { enum kvm_reg {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment