From a261eb6ae550e4b9ba4356b77cd8fb9627bf4d58 Mon Sep 17 00:00:00 2001 From: Xuelian Guo Date: Tue, 19 Mar 2024 08:56:29 +0800 Subject: [PATCH] add KVM test for lam and lass. --- BM/lass/README.md | 4 ++-- BM/lass/tests | 24 ++++++++++++++++-------- KVM/qemu/feature_test.cfg | 4 ++++ 3 files changed, 22 insertions(+), 10 deletions(-) mode change 100644 => 100755 BM/lass/tests diff --git a/BM/lass/README.md b/BM/lass/README.md index 282dd2d..bdd2eef 100644 --- a/BM/lass/README.md +++ b/BM/lass/README.md @@ -9,8 +9,8 @@ LASS achieves this by preventing memory loads/stores to user space memory in sup ``` make # To run a specific case -./lam -t -(for example, cpuid) ./lass m +./lass +(for example, add maps) ./lass m ``` Test results (PASS or FAIL) will be printed out. diff --git a/BM/lass/tests b/BM/lass/tests old mode 100644 new mode 100755 index 3bd90c6..852fe04 --- a/BM/lass/tests +++ b/BM/lass/tests @@ -1,9 +1,17 @@ # This file collects the LASS cases -lass m # Test get vsyscall address maps.[negative] -lass d # Test execute vsyscall addr 0xffffffffff600000.[negative] -lass g # Test call vsyscall -lass t # Test call vsyscall api gettimeofday -lass r # Test read vsyscall 0xffffffffff600000.[negative] -lass i # Test read random kernel space.[negative] -lass v # Test process_vm_readv read address 0xffffffffff600000.[negative] -lass e # Test vsyscall emulation. +# Test get vsyscall address maps.[negative] +lass m +# Test execute vsyscall addr 0xffffffffff600000.[negative] +lass d +# Test call vsyscall +lass g +# Test call vsyscall api gettimeofday +lass t +# Test read vsyscall 0xffffffffff600000.[negative] +lass r +# Test read random kernel space.[negative] +lass i +# Test process_vm_readv read address 0xffffffffff600000.[negative] +lass v +# Test vsyscall emulation. +lass e diff --git a/KVM/qemu/feature_test.cfg b/KVM/qemu/feature_test.cfg index 12642a4..0e59a80 100644 --- a/KVM/qemu/feature_test.cfg +++ b/KVM/qemu/feature_test.cfg @@ -10,6 +10,10 @@ variants: - cmpccxadd: feature_dir_names = "cmpccxadd" + - lam: + feature_dir_names = "lam" + - lass: + feature_dir_names = "lass" - umip: feature_dir_names = "umip" variants: