Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lass 0916 #406

Merged
merged 2 commits into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions BM/lass/Makefile
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)
27 changes: 27 additions & 0 deletions BM/lass/README.md
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. |
Loading
Loading