-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add lass test cases for Bare-metal [Test Components] lass [Test Types] func Signed-off-by: Xuelian Guo <[email protected]>
- Loading branch information
1 parent
54ecaf1
commit 7a4ccc9
Showing
5 changed files
with
878 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# SPDX-License-Identifier: GPL-2.0-only | ||
# Copyright (c) 2024 Intel Corporation. | ||
|
||
CC = gcc | ||
TARGET = lass | ||
|
||
$(TARGET): lass.c | ||
$(CC) -o $@ $< | ||
|
||
clean: | ||
rm -f $(TARGET) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#LASS | ||
|
||
## Description | ||
Linear Address Space Separation (LASS) aims to prevent side-channel attacks based that rely on timing memory accesses (cache hits will have shorter access times). | ||
|
||
LASS achieves this by preventing memory loads/stores to user space memory in supervisor mode and vice versa (access to kernel memory in user mode). | ||
|
||
## Usage | ||
``` | ||
make | ||
# To run a specific case | ||
./lam -t <testcase_id> | ||
(for example, cpuid) ./lass m | ||
``` | ||
Test results (PASS or FAIL) will be printed out. | ||
|
||
## Testcase ID | ||
| Case ID | Case Name | | ||
| ------ | ------------------------------------------------------------------- | | ||
| m | Test get vsyscall address maps.[negative] | | ||
| d | Test execute vsyscall addr 0xffffffffff600000.[negative] | | ||
| g | Test call vsyscall | | ||
| t | Test call vsyscall api gettimeofday | | ||
| r | Test read vsyscall 0xffffffffff600000.[negative] | | ||
| i | Test read random kernel space.[negative] | | ||
| v | Test process_vm_readv read address 0xffffffffff600000.[negative] | | ||
| e | Test vsyscall emulation. | |
Oops, something went wrong.