[LTP] [PATCH v2 2/7] Add test for CVE 2021-3656

Petr Vorel pvorel@suse.cz
Fri May 26 16:27:45 CEST 2023


Hi all,

Martin sent patch which fixed it.

I'm going to merge whole patchset.

Thanks!

Kind regards,
Petr

diff --git a/testcases/kernel/kvm/kvm_svm02.c b/testcases/kernel/kvm/kvm_svm02.c
index e6ff5e874..5d2e2ce37 100644
--- a/testcases/kernel/kvm/kvm_svm02.c
+++ b/testcases/kernel/kvm/kvm_svm02.c
@@ -34,7 +34,7 @@ static void *vmsave_buf;
 static int guest_vmload(void)
 {
        asm (
-               "vmload\n"
+               "vmload %0\n"
                :
                : "a" (vmsave_buf)
        );
@@ -45,7 +45,7 @@ static int guest_vmload(void)
 static int guest_vmsave(void)
 {
        asm (
-               "vmsave\n"
+               "vmsave %0\n"
                :
                : "a" (vmsave_buf)
        );


More information about the ltp mailing list