Skip to content

Commit

Permalink
Remove unused LVI_MITIGATIONS flag (#6751)
Browse files Browse the repository at this point in the history
  • Loading branch information
achamayou authored Jan 13, 2025
1 parent 8798151 commit 547c97f
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 26 deletions.
6 changes: 3 additions & 3 deletions .azure-pipelines-templates/daily-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ parameters:
cmake_args: "-DCOMPILE_TARGET=sgx"
cmake_env: ""
SNPCC:
cmake_args: "-DCOMPILE_TARGET=snp -DLVI_MITIGATIONS=OFF -DLONG_TESTS=OFF"
cmake_args: "-DCOMPILE_TARGET=snp -DLONG_TESTS=OFF"
cmake_env: "CC=`which clang-15` CXX=`which clang++-15`"
debug:
cmake_args: "-DCMAKE_BUILD_TYPE=Debug -DLVI_MITIGATIONS=OFF"
cmake_args: "-DCMAKE_BUILD_TYPE=Debug"
cmake_env: ""
ASAN:
cmake_args: "-DSAN=ON"
Expand All @@ -39,7 +39,7 @@ parameters:
cmake_args: "-DTSAN=ON -DWORKER_THREADS=2"
cmake_env: ""
unsafe:
cmake_args: "-DLVI_MITIGATIONS=OFF -DVERBOSE_LOGGING=ON -DUNSAFE_VERSION=ON"
cmake_args: "-DVERBOSE_LOGGING=ON -DUNSAFE_VERSION=ON"
cmake_env: ""

jobs:
Expand Down
4 changes: 2 additions & 2 deletions .azure-pipelines-templates/release-matrix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ parameters:
cmake_env: ""
ninja_targets: "default"
SNPCC:
cmake_args: "-DCOMPILE_TARGET=snp -DLVI_MITIGATIONS=OFF -DLONG_TESTS=OFF"
cmake_args: "-DCOMPILE_TARGET=snp -DLONG_TESTS=OFF"
cmake_env: "CC=`which clang-15` CXX=`which clang++-15`"
ninja_targets: "default"
release:
cmake_args: "-DCLIENT_PROTOCOLS_TEST=ON -DLONG_TESTS=ON"
cmake_env: ""
ninja_targets: "default"
unsafe:
cmake_args: "-DLVI_MITIGATIONS=OFF -DVERBOSE_LOGGING=ON -DUNSAFE_VERSION=ON"
cmake_args: "-DVERBOSE_LOGGING=ON -DUNSAFE_VERSION=ON"
cmake_env: ""
ninja_targets: "default"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-verification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ jobs:
git config --global --add safe.directory /__w/CCF/CCF
mkdir build
cd build
cmake -L -GNinja .. -DCMAKE_BUILD_TYPE=Debug -DLVI_MITIGATIONS=OFF -DVERBOSE_LOGGING=ON -DCOMPILE_TARGET=virtual -DCCF_RAFT_TRACING=ON
cmake -L -GNinja .. -DCMAKE_BUILD_TYPE=Debug -DVERBOSE_LOGGING=ON -DCOMPILE_TARGET=virtual -DCCF_RAFT_TRACING=ON
ninja raft_driver
shell: bash

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
git config --global --add safe.directory /__w/CCF/CCF
mkdir build
cd build
cmake -GNinja -DCOMPILE_TARGET=${{ matrix.platform.name }} -DCMAKE_BUILD_TYPE=Debug -DLVI_MITIGATIONS=OFF ..
cmake -GNinja -DCOMPILE_TARGET=${{ matrix.platform.name }} -DCMAKE_BUILD_TYPE=Debug ..
ninja
shell: bash

Expand Down Expand Up @@ -132,7 +132,7 @@ jobs:
git config --global --add safe.directory /__w/CCF/CCF
mkdir build
cd build
CC=`which clang` CXX=`which clang++` cmake -GNinja -DCOMPILE_TARGET=virtual -DCMAKE_BUILD_TYPE=Debug -DLVI_MITIGATIONS=OFF -DUSE_LIBCXX=OFF ..
CC=`which clang` CXX=`which clang++` cmake -GNinja -DCOMPILE_TARGET=virtual -DCMAKE_BUILD_TYPE=Debug -DUSE_LIBCXX=OFF ..
ninja
shell: bash

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
set -ex
mkdir build
cd build
cmake -DCOMPILE_TARGET=virtual -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTS=OFF -DLVI_MITIGATIONS=OFF ..
cmake -DCOMPILE_TARGET=virtual -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTS=OFF ..
name: Run CMake
- run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/long-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
git config --global --add safe.directory "$GITHUB_WORKSPACE"
mkdir build
cd build
cmake -GNinja -DCOMPILE_TARGET=virtual -DCMAKE_BUILD_TYPE=Debug -DLONG_TESTS=ON -DLVI_MITIGATIONS=OFF -DSAN=ON ..
cmake -GNinja -DCOMPILE_TARGET=virtual -DCMAKE_BUILD_TYPE=Debug -DLONG_TESTS=ON -DSAN=ON ..
ninja
- name: "Test"
Expand Down Expand Up @@ -91,7 +91,7 @@ jobs:
git config --global --add safe.directory /__w/CCF/CCF
mkdir build
cd build
cmake -GNinja -DCOMPILE_TARGET=virtual -DCMAKE_BUILD_TYPE=Debug -DLONG_TESTS=ON -DLVI_MITIGATIONS=OFF -DTSAN=ON -DWORKER_THREADS=2 ..
cmake -GNinja -DCOMPILE_TARGET=virtual -DCMAKE_BUILD_TYPE=Debug -DLONG_TESTS=ON -DTSAN=ON -DWORKER_THREADS=2 ..
ninja
- name: "Test"
Expand Down Expand Up @@ -129,7 +129,7 @@ jobs:
git config --global --add safe.directory /__w/CCF/CCF
mkdir build
cd build
cmake -GNinja -DCOMPILE_TARGET=virtual -DCMAKE_BUILD_TYPE=Debug -DLONG_TESTS=ON -DLVI_MITIGATIONS=OFF -DWORKER_THREADS=2 ..
cmake -GNinja -DCOMPILE_TARGET=virtual -DCMAKE_BUILD_TYPE=Debug -DLONG_TESTS=ON -DWORKER_THREADS=2 ..
ninja
- name: "Test"
Expand Down
14 changes: 0 additions & 14 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -132,20 +132,6 @@ install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/cmake/tools.cmake DESTINATION cmake)
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/ccf_app.cmake)
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/cmake/ccf_app.cmake DESTINATION cmake)

if(SAN AND LVI_MITIGATIONS)
message(
FATAL_ERROR
"Building with both SAN and LVI mitigations is unsafe and deadlocks - choose one"
)
endif()

if(TSAN AND LVI_MITIGATIONS)
message(
FATAL_ERROR
"Building with both TSAN and LVI mitigations is unsafe and deadlocks - choose one"
)
endif()

# Copy and install CCF utilities
set(CCF_UTILITIES keygenerator.sh submit_recovery_share.sh verify_quote.sh)
foreach(UTILITY ${CCF_UTILITIES})
Expand Down

0 comments on commit 547c97f

Please sign in to comment.