[LTP] [PATCH v3 0/2] KVM testing
Martin Doucha
mdoucha@suse.cz
Thu Apr 21 14:33:49 CEST 2022
Implement LTP infrastructure for tests which require executing a special
program inside KVM virtual machine. Basic test for CVE 2021-38198 written
using the KVM infrastrucutre (pagetable permission check bypass under software
emulated MMU) is included.
Martin Doucha (2):
KVM test infrastructure
Add test for CVE 2021-38198
configure.ac | 3 +
include/mk/config.mk.in | 2 +
include/mk/env_post.mk | 1 +
include/mk/rules.mk | 8 +
runtest/kvm | 1 +
testcases/kernel/Makefile | 1 +
testcases/kernel/kvm/.gitignore | 1 +
testcases/kernel/kvm/Makefile | 62 +++
testcases/kernel/kvm/bootstrap_x86.S | 368 ++++++++++++++++
testcases/kernel/kvm/bootstrap_x86_64.S | 515 ++++++++++++++++++++++
testcases/kernel/kvm/include/kvm_common.h | 31 ++
testcases/kernel/kvm/include/kvm_guest.h | 85 ++++
testcases/kernel/kvm/include/kvm_host.h | 115 +++++
testcases/kernel/kvm/include/kvm_test.h | 23 +
testcases/kernel/kvm/include/kvm_x86.h | 157 +++++++
testcases/kernel/kvm/kvm_pagefault01.c | 234 ++++++++++
testcases/kernel/kvm/lib_guest.c | 179 ++++++++
testcases/kernel/kvm/lib_host.c | 215 +++++++++
testcases/kernel/kvm/lib_x86.c | 150 +++++++
testcases/kernel/kvm/linker/payload.lds | 11 +
testcases/kernel/kvm/linker/x86.lds | 74 ++++
testcases/kernel/kvm/linker/x86_64.lds | 74 ++++
22 files changed, 2310 insertions(+)
create mode 100644 runtest/kvm
create mode 100644 testcases/kernel/kvm/.gitignore
create mode 100644 testcases/kernel/kvm/Makefile
create mode 100644 testcases/kernel/kvm/bootstrap_x86.S
create mode 100644 testcases/kernel/kvm/bootstrap_x86_64.S
create mode 100644 testcases/kernel/kvm/include/kvm_common.h
create mode 100644 testcases/kernel/kvm/include/kvm_guest.h
create mode 100644 testcases/kernel/kvm/include/kvm_host.h
create mode 100644 testcases/kernel/kvm/include/kvm_test.h
create mode 100644 testcases/kernel/kvm/include/kvm_x86.h
create mode 100644 testcases/kernel/kvm/kvm_pagefault01.c
create mode 100644 testcases/kernel/kvm/lib_guest.c
create mode 100644 testcases/kernel/kvm/lib_host.c
create mode 100644 testcases/kernel/kvm/lib_x86.c
create mode 100644 testcases/kernel/kvm/linker/payload.lds
create mode 100644 testcases/kernel/kvm/linker/x86.lds
create mode 100644 testcases/kernel/kvm/linker/x86_64.lds
--
2.35.1
More information about the ltp
mailing list