Skip to content

Commit b0af6e7

Browse files
committed
Linux 2.18 Open Source Gold Release
Along with the latest processor microcode address CVE-2022-21233. Modified the Switchless library to have mitigations for the associated issue. Added support for the Linux kernel APIs for the Enclave Dynamic Memory Management (EDMM) features that are available with the Linux kernel v6.0 or later. Refer to the SGX SDK developer reference for details on new trusted APIs and enclave configuration for the EDMM features. Enabled C++17 within SGX SDK. Supported AMX (Advanced Matrix Extensions) in Enclave. Replace hardcoded Enclave signing keys in all sample projects with dynamically generated keys. Added a new API to allow user to configure enclave internal cache size in the Protected File System library. Upgraded to OpenSSL 1.1.1q and upgraded Intel(R) SGX Quote Verification Enclave to integrate SgxSSL/OpenSSL version 1.1.1q. Supported new OS: Ubuntu* 22.04 LTS 64-bit Server version, CentOS* 8.3 64bits, Red Hat* Enterprise Linux* Server 8.6 (for x86_64), SUSE* Linux* Enterprise Server 15.4 64bits, Debian* 10 and Anolis* OS 8.6. Upgraded Intel SGX QE3 to make it backward compatible. Improved ECDSA quote generation and verification performance by caching PCK certificates and collaterals in memory and disk drive. Added Java support for quote verification library. Added new APIs to unify Intel SGX and TDX quote verification in Quote Verification Library. Added Advisory ID in ECDSA quote verification supplemental data. Added Intel TDX support in RA-TLS (Remote Attestation based TLS) library. Improved TDX quote generation throughput in vsock mode. Added Rust support for TDX quote generation. Fixed bugs. Signed-off-by: Li, Xun <[email protected]>
1 parent 4887b30 commit b0af6e7

File tree

554 files changed

+62719
-31470
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

554 files changed

+62719
-31470
lines changed

.gitmodules

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,7 @@
1616
[submodule "external/protobuf/protobuf_code"]
1717
path = external/protobuf/protobuf_code
1818
url = https://github.com/protocolbuffers/protobuf.git
19-
branch = 3.20.x
19+
branch = v3.20.1
20+
[submodule "external/sgx-emm/emm_src"]
21+
path = external/sgx-emm/emm_src
22+
url = https://github.com/intel/sgx-emm.git

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ preparation:
5454
./external/dcap_source/QuoteVerification/prepare_sgxssl.sh nobuild
5555
cd external/openmp/openmp_code && git apply ../0001-Enable-OpenMP-in-SGX.patch >/dev/null 2>&1 || git apply ../0001-Enable-OpenMP-in-SGX.patch --check -R
5656
cd external/protobuf/protobuf_code && git apply ../sgx_protobuf.patch >/dev/null 2>&1 || git apply ../sgx_protobuf.patch --check -R
57+
./external/sgx-emm/create_symlink.sh
5758
@# download prebuilt binaries
5859
./download_prebuilt.sh
5960
./external/dcap_source/QuoteGeneration/download_prebuilt.sh

Makefile.psw_dcap

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,19 @@ ippcp:
6464
$(MAKE) -C external/ippcp_internal/
6565

6666
sdk: ippcp
67-
$(MAKE) -C sdk/ USE_OPT_LIBS=$(USE_OPT_LIBS)
67+
$(MAKE) -C sdk/ MITIGATION-CVE-2020-0551=LOAD
68+
$(MAKE) -C sdk/ clean
69+
$(MAKE) -C sdk/ MITIGATION-CVE-2020-0551=CF
70+
$(MAKE) -C sdk/ clean
71+
$(MAKE) -C sdk/
72+
$(MAKE) -C external/dcap_source/QuoteVerification/dcap_tvl MITIGATION-CVE-2020-0551=LOAD
73+
$(MAKE) -C external/dcap_source/QuoteVerification/dcap_tvl MITIGATION-CVE-2020-0551=CF clean
74+
$(MAKE) -C external/dcap_source/QuoteVerification/dcap_tvl MITIGATION-CVE-2020-0551=CF
6875
$(MAKE) -C external/dcap_source/QuoteVerification/dcap_tvl clean
6976
$(MAKE) -C external/dcap_source/QuoteVerification/dcap_tvl
7077

7178
install_sdk: sdk
72-
./linux/installer/bin/build-installpkg.sh sdk
79+
./linux/installer/bin/build-installpkg.sh sdk cve-2020-0551
7380
ifeq ($(call DIR_EXISTS,$(SGX_SDK)),)
7481
./linux/installer/bin/sgx_linux_x64_sdk_*.bin --prefix=$(dir $(SGX_SDK))
7582
endif

Makefile.psw_tdx

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
#
2+
# Copyright (C) 2011-2021 Intel Corporation. All rights reserved.
3+
#
4+
# Redistribution and use in source and binary forms, with or without
5+
# modification, are permitted provided that the following conditions
6+
# are met:
7+
#
8+
# * Redistributions of source code must retain the above copyright
9+
# notice, this list of conditions and the following disclaimer.
10+
# * Redistributions in binary form must reproduce the above copyright
11+
# notice, this list of conditions and the following disclaimer in
12+
# the documentation and/or other materials provided with the
13+
# distribution.
14+
# * Neither the name of Intel Corporation nor the names of its
15+
# contributors may be used to endorse or promote products derived
16+
# from this software without specific prior written permission.
17+
#
18+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19+
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20+
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21+
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22+
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23+
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24+
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25+
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26+
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27+
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28+
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29+
#
30+
#
31+
32+
include buildenv.mk
33+
34+
define DIR_EXISTS
35+
$(shell test -d $(1) && echo "$(1)")
36+
endef
37+
38+
SGX_SDK := /tmp/intel/sgxsdk
39+
export SGX_SDK
40+
41+
.PHONY: build psw dcap install clean sdk install_sdk ippcp
42+
43+
build: psw dcap
44+
45+
psw: install_sdk
46+
@$(MAKE) -C psw/urts/linux/ USE_OPT_LIBS=$(USE_OPT_LIBS)
47+
48+
dcap: install_sdk
49+
@$(MAKE) -C external/dcap_source/
50+
51+
install:
52+
@$(MAKE) -I linux/installer/common/psw-tdx -f linux/installer/common/psw-tdx/Makefile SRCDIR=. DESTDIR=$(DESTDIR) install
53+
54+
clean:
55+
@$(MAKE) -C psw/urts/linux/ clean
56+
@$(MAKE) -C external/dcap_source/ clean
57+
@$(MAKE) -C sdk/ clean
58+
@$(MAKE) -C external/ippcp_internal/ clean
59+
ifneq ($(call DIR_EXISTS,$(SGX_SDK)),)
60+
$(SGX_SDK)/uninstall.sh
61+
endif
62+
63+
ippcp:
64+
$(MAKE) -C external/ippcp_internal/
65+
sdk: ippcp
66+
$(MAKE) -C sdk/ MITIGATION-CVE-2020-0551=LOAD
67+
$(MAKE) -C sdk/ clean
68+
$(MAKE) -C sdk/ MITIGATION-CVE-2020-0551=CF
69+
$(MAKE) -C sdk/ clean
70+
$(MAKE) -C sdk/
71+
$(MAKE) -C external/dcap_source/QuoteVerification/dcap_tvl MITIGATION-CVE-2020-0551=LOAD
72+
$(MAKE) -C external/dcap_source/QuoteVerification/dcap_tvl MITIGATION-CVE-2020-0551=CF clean
73+
$(MAKE) -C external/dcap_source/QuoteVerification/dcap_tvl MITIGATION-CVE-2020-0551=CF
74+
$(MAKE) -C external/dcap_source/QuoteVerification/dcap_tvl clean
75+
$(MAKE) -C external/dcap_source/QuoteVerification/dcap_tvl
76+
77+
install_sdk: sdk
78+
./linux/installer/bin/build-installpkg.sh sdk cve-2020-0551
79+
ifeq ($(call DIR_EXISTS,$(SGX_SDK)),)
80+
./linux/installer/bin/sgx_linux_x64_sdk_*.bin --prefix=$(dir $(SGX_SDK))
81+
endif

0 commit comments

Comments
 (0)