[LTP] [PATCH 2/7] Add test for CVE 2021-3656
Martin Doucha
mdoucha@suse.cz
Thu May 18 10:29:39 CEST 2023
On 18. 05. 23 0:32, Petr Vorel wrote:
> Hi Martin,
>
>> +++ b/testcases/kernel/kvm/kvm_svm02.c
> ...
>> +
>> +#ifdef COMPILE_PAYLOAD
>> +#if defined(__i386__) || defined(__x86_64__)
>> +
>> +#include "kvm_x86_svm.h"
>> +
>> +#define AVIC_REG_ADDR 0x280
>> +#define AVIC_TEST_VAL 0xec
>> +#define AVIC_READ_FAIL 0x12ead
>> +
>> +#define AVIC_INFO_MASK ((1ULL << 32) | 0xff0)
>> +#define AVIC_INFO_EXP ((1ULL << 32) | AVIC_REG_ADDR)
>
> These five constants aren't used at all.
> Maybe copy paste from kvm_svm01.c ?
Yes, the AVIC constants are leftovers from copying kvm_svm01.c, sorry
about that. Should I send a v2 after other patches get merged?
--
Martin Doucha mdoucha@suse.cz
QA Engineer for Software Maintenance
SUSE LINUX, s.r.o.
CORSO IIa
Krizikova 148/34
186 00 Prague 8
Czech Republic
More information about the ltp
mailing list