Commit Graph

577 Commits

Author SHA1 Message Date
ljuzwiuk f71e4e5bf6 Simulation: switch quote generation to sgx_quote3_t and add SGX_DEPRECATED_MSG
Update SGX quote-related headers and simulation code to align with DCAP/ECDSA quote v3. 
Replace `sgx_quote_t` sizing/usage with `sgx_quote3_t` in internal and simulator paths, add `SGX_DEPRECATED_MSG` for message-bearing deprecation annotations in legacy EPID/PSE types, fix `#pragma pack(pop)` in `pce_cert.h`, and extend simulator build includes to pick up DCAP QuoteGeneration headers.

---------

Signed-off-by: Lukasz Juzwiuk <lukasz.a.juzwiuk@intel.com>
2026-02-13 15:16:00 +01:00
Bartosz Gotowalski c8b1d85717 Updates the dcap_source submodule to a newer commit
Updated DCAP submodule reference from commit `ffbe8d610bbe27e86498437f14c280c522b5af65` to `d20287a48360723f8307ef7631962ada3e9707ec`

---------

Signed-off-by: Bartosz Gotowalski <bartosz.gotowalski@intel.com>
2026-02-13 10:35:50 +01:00
Bartosz Gotowalski c672882be2 Updates the dcap_source submodule to a newer commit
Updated DCAP submodule reference from commit `f4d29a6020ddb6d1fd6c795ec130c18c52ab810a` to `ffbe8d610bbe27e86498437f14c280c522b5af65`

---------

Signed-off-by: Bartosz Gotowalski <bartosz.gotowalski@intel.com>
2026-02-12 22:02:42 +01:00
Juan del Cuvillo de1a12b7b6 Updates the SGX SSL dependency bundle to Intel SGX SSL 3.0_Rev5.2.
Bumped OpenSSL version from 3.0.17 to 3.0.19
Updated Intel SGX SSL archive version from 3.0_Rev5.1 to 3.0_Rev5.2
Updated corresponding SHA256 checksums for both downloads

---------

Signed-off-by: Juan Del Cuvillo <juan.b.del.cuvillo@intel.com>
2026-02-12 18:05:54 +01:00
Bartosz Gotowalski d86a93a077 Updates README to reflect newly supported operating systems (notably RHEL 10 and CentOS Stream 10)
Add RHEL 10.0 and CentOS Stream 10 to supported OS lists.

---------

Signed-off-by: Bartosz Gotowalski <bartosz.gotowalski@intel.com>
2026-02-11 16:29:57 +01:00
Bartosz Gotowalski 83838df483 Updates the SGX developer reference link used in the reproducibility verifier README to a unified “latest” documentation URL
Replaces a hardcoded versioned PDF link (2.27) with the “linux-latest” developer reference PDF link.

---------

Signed-off-by: Bartosz Gotowalski <bartosz.gotowalski@intel.com>
2026-02-10 09:20:35 +01:00
Bartosz Gotowalski 28e0172f77 Improves the Docker launch script to handle both interactive terminal environments and non-interactive environments (CI, nohup, file redirection, cron)
Added TTY detection logic using `[ -t 0 ] && [ -t 1 ]` to determine if the script is running in an interactive environment
Refactored Docker command construction to use arrays for proper argument handling and variable expansion
Consolidated duplicate `docker run` commands into a single reusable command array

---------

Signed-off-by: Bartosz Gotowalski <bartosz.gotowalski@intel.com>
2026-02-06 16:09:42 +01:00
ljuzwiuk e0cf98d6dd Omissions related to EPID (Enhanced Privacy ID) removal
Removed `SGXGetExtendedEpidGroupIdResponse` and `SGXSwitchExtendedEpidGroupResponse` message definitions
Removed optional response fields `sgxGetExtendedEpidGroupIdRes` and `sgxSwitchExtendedEpidGroupRes` from the Response message
Restores removed definitions needed to build PCE enclave

---------

Signed-off-by: Lukasz Juzwiuk <lukasz.a.juzwiuk@intel.com>
2026-02-06 12:31:44 +01:00
Bartosz Gotowalski 0773103ca6 Fixes the build script after a refactoring that reorganized the directory structure for various architectural enclaves (AEs)
Removed the Launch Enclave (LE) build steps
Updated paths for QE3, ID Enclave, TDQE, and QvE to their new locations under `ae/` subdirectory

---------

Signed-off-by: Bartosz Gotowalski <bartosz.gotowalski@intel.com>
2026-02-06 11:17:55 +01:00
Mateusz Bronk f932089951 [build][w/a] Prevent libcbor build from stomping on output directory
The Makefile in `external/cbor` has a conditional logic (per comment: CentOS-specific), 
which is attempting to move output subdirectory (`(...)/lib`) to a 64-bit-specific one (`(...)/lib64`).
In case the target exists, a stomp was attempted (and prevented due to non-forceful `mv` use).

This workaround is appending to destination instead.

---------

Signed-off-by: Mateusz Bronk <mateusz.bronk@intel.com>
2026-02-06 07:22:49 +01:00
Mateusz Bronk 77519956ab [build] Copy switchless static libs to build output
Fixes `sdk_install_pkg` build target (which is looking for the libs in output dir)

---------

Signed-off-by: Mateusz Bronk <mateusz.bronk@intel.com>
2026-02-05 16:42:23 +01:00
Mateusz Bronk 35a96daf2b [CI] Added var-based extensibility to C/C++ workflow
- Added dynamic runner selection using repository variables (default: Ubuntu - latest).
- Enhanced submodule handling, allowing explicit PAT configuration (i.e. for private forks).
- Added more explicit build agent dependencies (to work on minimal Ubuntu docker images, w/o github-provided pre-installs).
- Added concurrency controls to prevent redundant workflow runs.
- Broadened branch selection to allow future extensibility w/o code changes (i.e. snapshot/release flavors of branches).
- Added artifact publish at the end of the build

---------

Signed-off-by: Mateusz Bronk <mateusz.bronk@intel.com>
2026-02-02 21:20:24 +01:00
Bartosz Gotowalski 0700599eaf fixup! Updates the dcap_source submodule to a newer commit
Updates the `dcap_source` submodule to a newer commit, advancing it from `a9211bc` to `f4d29a6`

---------

Signed-off-by: Bartosz Gotowalski <bartosz.gotowalski@intel.com>
2026-02-02 16:24:55 +01:00
Bartosz Gotowalski 1829c9ee92 Updates the dcap_source submodule to a newer commit
Updated the dcap_source submodule from commit `2268092b9f4ee0a622c63e5301ed31f1de23d11f` to commit `a9211bc5a003c0ba2e40e12b352033d88c390c37`

---------

Signed-off-by: Bartosz Gotowalski <bartosz.gotowalski@intel.com>
2026-01-27 11:30:43 +01:00
Bartosz Gotowalski d2838fa71f Updates dependency version requirements in SGX components
Updated copyright year from 2025 to 2026 in RPM spec files
Bumped libsgx-pce-logic and libsgx-qe3-logic minimum version requirements from 1.24 to 1.25
Updated repository homepage URL in Debian control file

---------

Signed-off-by: Bartosz Gotowalski <bartosz.gotowalski@intel.com>
2026-01-27 10:49:15 +01:00
Bartosz Gotowalski 702d9c8704 Bumps the SGX version to 2.28
Version numbers updated from 2.27 to 2.28 across build scripts and version headers
Copyright years updated from 2025 to 2026
Repository references renamed from `intel/linux-sgx` to `intel/confidential-computing.sgx`

---------

Signed-off-by: Bartosz Gotowalski <bartosz.gotowalski@intel.com>
2026-01-26 16:39:56 +01:00
lzha101 32694eea64 Trigger QAE package build and make it part of local repo.
Trigger QAE package build and make it part of local repo.

---------

Signed-off-by: Lili Zhang <lili.z.zhang@intel.com>
Signed-off-by: Bartosz Gotowalski <bartosz.gotowalski@intel.com>
2026-01-26 14:31:21 +01:00
krzyszt1 590856d0c7 Removes the deprecated Launch Enclave mechanism from the Intel SGX Linux SDK codebase
Removed reference Launch Enclave implementation and related tools
Removed Launch Enclave service bundle from AESM
Updated build system to remove LE-related compilation flags and targets
Removed LE-related packages from installer scripts

---------

Signed-off-by: Krzysztof1 Wisniewski <krzysztof1.wisniewski@intel.com>
2026-01-23 07:50:18 +01:00
Bartosz Gotowalski 1aa2bf8de6 Adds a git reset --hard command to clean the Abseil submodule state before applying patches, ensuring patches can be applied cleanly on CentOS and RHEL 10
Added a hard reset step in the preparation target to reset the Abseil submodule before patch application

---------

Signed-off-by: Bartosz Gotowalski <bartosz.gotowalski@intel.com>
2026-01-22 16:29:00 +01:00
Bartosz Gotowalski 1e2ee3bd8a Updates the dcap_source submodule to a newer commit
Updated the dcap_source submodule commit reference from `0b542898617ead49352579d5a01a3b9896be5858` to `869fee6b6cbef3abd9f0f865f2cb8176f42c51d9`

---------

Signed-off-by: Bartosz Gotowalski <bartosz.gotowalski@intel.com>
2026-01-22 15:54:59 +01:00
Juan del Cuvillo 3589b19455 Fix SampleCommonLoader Sample Code
Add location of the SGX SDK header files to the compiler include path to fix build failure.

---------

Signed-off-by: Juan Del Cuvillo <juan.b.del.cuvillo@intel.com>
Signed-off-by: Bartosz Gotowalski <bartosz.gotowalski@intel.com>
2026-01-22 12:23:46 +01:00
lkalica-intel 8dcf3c93d9 Resolves a race condition in the parallel build process of the cpprt library by establishing proper dependency ordering between build targets and simplifying the build logic
Added explicit `libcxxrt` dependency to the `cpprt` target to ensure artifacts are available before building
Removed `libcxxrt` from `$(LIBTCXX)` dependencies since it's now transitively satisfied through `cpprt`
Simplified the `$(LIBCXXRT_STAMP)` rule by removing unnecessary `flock` synchronization logic

---------

Signed-off-by: Lukasz Kalica <lukasz.kalica@intel.com>
2026-01-21 15:07:58 +01:00
Bartosz Gotowalski 17453ebc8c Updates the dcap_source submodule to a newer commit
Updated the dcap_source submodule commit reference from `211ac0355051490aead80029aa463e73d7a1602c` to `0b542898617ead49352579d5a01a3b9896be5858`

---------

Signed-off-by: Bartosz Gotowalski <bartosz.gotowalski@intel.com>
2026-01-21 15:00:54 +01:00
Qiu Feng 4274014e33 Added SDK related changes for TD Partitioning
Update tee_report_type_t to reflect the struct change for TD Partitioning
Update sgx_verify_report2 implementation to allow new report type

---------

Signed-off-by: Feng Qiu <feng.qiu@intel.com>
Signed-off-by: Bartosz Gotowalski <bartosz.gotowalski@intel.com>
2026-01-21 10:59:46 +01:00
Bartosz Gotowalski c5eb323510 Adds a new Abseil patch to enable building on CentOS 10 and RHEL 10 with GCC 14
Added a new patch file `0001-fix-to-make-SGX-Linux-build-on-GCC14.patch` that undefines `__AVX__` in Abseil's CRC internal header
Updated build scripts to apply the new patch during the protobuf build process
Reformatted long command chains in Makefiles for better readability

---------

Signed-off-by: Bartosz Gotowalski <bartosz.gotowalski@intel.com>
2026-01-21 10:57:12 +01:00
lkalica-intel 6d89d8ed5a Refactoring of cpprt build process for all Linux distros
libcxxrt library wasn't updated for a long time. CentOS 10 introduced a new version of gcc and g++ compilers which are more strict than compilers in CentOS 9 and earlier. Because of that, a build of cpprt module (which contains source code of libcxxrt) was failing. Now libcxxrt module was extracted from cpprt module to sgx/external/ directory and its sources (in the latest version) are cloned directly from the external Github repository. It required a few adjustments to build cpprt module successfully on Linux distros.

---------

Signed-off-by: Lukasz Kalica <lukasz.kalica@intel.com>
2026-01-20 14:32:08 +01:00
[bot] CC Branch Sync b292eb785f Auto-merge changes from main branch
Signed-off-by: [bot] CC Branch Sync <sys_cc1s_branch_sync@intel.com>
2026-01-19 15:12:42 +01:00
Daniel Berrangé f3a423ec0c Fix escaping of regexes in sgx-asm-pp (#1056)
Running sgx-asm-pp.py on Python >= 3.12 generates many warnings:

  sgx-asm-pp.py:64: SyntaxWarning: invalid escape sequence '\s'
  sgx-asm-pp.py:85: SyntaxWarning: invalid escape sequence '\s'
  sgx-asm-pp.py:65: SyntaxWarning: invalid escape sequence '\s'
  sgx-asm-pp.py:86: SyntaxWarning: invalid escape sequence '\s'
  sgx-asm-pp.py:66: SyntaxWarning: invalid escape sequence '\s'

This is a new python change:

  https://docs.python.org/3/whatsnew/3.12.html#other-language-changes

  "A backslash-character pair that is not a valid escape
   sequence now generates a SyntaxWarning, instead of
   DeprecationWarning. For example, re.compile("\d+\.\d+")
   now emits a SyntaxWarning ("\d" is an invalid escape
   sequence, use raw strings for regular expression:
   re.compile(r"\d+\.\d+")). In a future Python version,
   SyntaxError will eventually be raised, instead of
   SyntaxWarning."

Given that python intends to turn this into an error in a future
release, this should be proactively fixed now.

Fortunately the regexes used by sgx-asm-pp don't appear to need
to use any genuine backslash escapes, all the backslash usage
is for regex characters, so the raw string conversion is simple.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2026-01-19 15:09:23 +01:00
Krzysztof Sandowicz fa0052ff6c Updates the DCAP (Data Center Attestation Primitives) dependency by bumping the submodule commit reference
Updated the `dcap_source` submodule to a newer commit

---------

Signed-off-by: Krzysztof Sandowicz <krzysztof.sandowicz@intel.com>
2026-01-13 11:16:40 +01:00
ljuzwiuk 1cce134370 Remove EPID support.
Removed:
- Support for EPID based Attestation. Including Remote Attestation. (sgx_uae_epid.h, sgx_key_exchange.h)
- Support for Quote version 1 and 2

---------

Signed-off-by: Lukasz Juzwiuk <lukasz.a.juzwiuk@intel.com>
2026-01-13 11:08:37 +01:00
aplatasz 665a7bbed7 Unbound variables in installation scripts fixed
Unbound variables in installation scripts fixed.
Bash strict mode (-u) treats any attempt to access an unset variable as an error, causing the script to fail whenever an unset variable is found.

---------

Signed-off-by: Anna Platasz <anna.platasz@intel.com>
2026-01-09 15:18:17 +01:00
[bot] CC Auto-merge 6b54e634f4 Fixes a crash that occurs when both EDMM (Enclave Dynamic Memory Management) and AEX-Notify features are enabled simultaneously
Added logic to reset the exception flag to 0 when a page fault is not handled by EDMM/custom handlers but will be handled by AEX-Notify mitigation
This prevents the enclave from crashing in the legacy non-EDMM page fault flow when AEX-Notify is enabled

---------

Signed-off-by: Scott Constable <scott.d.constable@intel.com>
Signed-off-by: Bartosz Gotowalski <bartosz.gotowalski@intel.com>
2026-01-09 13:21:58 +01:00
[bot] CC Auto-merge c831c3ad74 Auto-merge changes from main branch
Conflicts:
 - external/dcap_source

---------

Signed-off-by: [bot] CC Branch Sync <sys_cc1s_branch_sync@intel.com>
Signed-off-by: Bartosz Gotowalski <bartosz.gotowalski@intel.com>
2025-12-29 11:23:03 +01:00
Bartosz Gotowalski 857419fe1a Merge conflict resolution
Signed-off-by: Bartosz Gotowalski <bartosz.gotowalski@intel.com>
2025-12-29 11:09:35 +01:00
Scott Constable b7838ae15b Update sdk/trts/trts_veh.cpp
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Scott Constable <scott.d.constable@intel.com>
2025-12-19 09:31:14 -08:00
Scott Constable f890f877de Fixed a bug that could cause enclaves to crash when both EDMM and AEX-Notify are enabled 2025-12-19 09:09:25 -08:00
sprzysta 63daae3d1f Update the DCAP submodule to new version
Updates the `dcap_source` submodule to a version with new project structure

---------

Signed-off-by: Sebastian Przystawski <sebastian.przystawski@intel.com>
2025-12-19 15:11:52 +01:00
sprzysta 21a568a286 Fixes build after moving the AE to a separate directory in the DCAP source
Updated include paths to use the new directory structure
Updated installer BOM files to reflect the new path

---------

Signed-off-by: Sebastian Przystawski <sebastian.przystawski@intel.com>
2025-12-19 14:26:14 +01:00
Bartosz Gotowalski 5ab4d8cec7 Auto-merge changes from main branch
Signed-off-by: Bartosz Gotowalski <bartosz.gotowalski@intel.com>
sgx_2.27
2025-12-18 14:00:54 +01:00
Bartosz Gotowalski 9674f286fb Update DCAP to 1.24.100.2
Updated SGX SDK version string to 2.27.100.1
Updated DCAP submodule commit reference

---------

Signed-off-by: Bartosz Gotowalski <bartosz.gotowalski@intel.com>
2025-12-18 13:57:18 +01:00
Bartosz Gotowalski 477e13b550 Bump DCAP to address PCCS security vulnerabilities
Bumped DCAP from 1.23.100.0 to 1.23.101.0

---------

Signed-off-by: Bartosz Gotowalski <bartosz.gotowalski@intel.com>
sgx_2.26.1
2025-12-16 11:28:59 +01:00
Bartosz Gotowalski dc32e8f8a2 Update DCAP to 1.24.100.1
DCAP submodule update to new version

---------

Signed-off-by: Bartosz Gotowalski <bartosz.gotowalski@intel.com>
2025-12-15 17:25:25 +01:00
Bartosz Gotowalski 02d8f52292 Bump DCAP to include PCCS fix, QVL repository rename in submodules list, and copyright header update
- Updates the DCAP submodule to incorporate a PCCS fix that addresses how PCK  certificates are handled when being inserted into TCB buckets
- Changes QVL repository name in submodules list to the new one
- Copyright headers dates corrected

---------

Signed-off-by: Bartosz Gotowalski <bartosz.gotowalski@intel.com>
2025-12-14 16:45:55 +01:00
[bot] CC Auto-merge 411e48e5f8 Auto-merge changes from release branch
Conflicts:
 - external/dcap_source

---------

Signed-off-by: Bartosz Gotowalski <bartosz.gotowalski@intel.com>
2025-12-08 16:51:12 +01:00
Bartosz Gotowalski 4a56e3914f Merge conflict resolution
Signed-off-by: Bartosz Gotowalski <bartosz.gotowalski@intel.com>
2025-12-08 15:52:11 +01:00
Bartosz Gotowalski 24dc8107f3 Updates the protobuf dependency version via git patch to address a security vulnerability
Introduces a new patch file to bump protobuf Go dependency to v1.33.0
Updates Makefile targets to apply the new patch during build preparation
Integrates the patch application into both external/protobuf and root Makefile workflows

---------

Signed-off-by: Bartosz Gotowalski <bartosz.gotowalski@intel.com>
Signed-off-by: Krzysztof Sandowicz <krzysztof.sandowicz@intel.com>
2025-12-08 13:26:06 +01:00
Bartosz Gotowalski a0d5483d75 Updates the libsgx-aesm-launch-plugin
Replaced full BSD-3-Clause license text with SPDX identifier
Updated copyright year range to 2011-2025
Fixed incorrect shell variable assignment using `$pwd` instead of `$(pwd)`

---------

Signed-off-by: Bartosz Gotowalski <bartosz.gotowalski@intel.com>
Signed-off-by: Krzysztof Sandowicz <krzysztof.sandowicz@intel.com>
2025-12-04 16:27:37 +01:00
Bartosz Gotowalski eba698a07c Fixes incorrect shell variable syntax in RPM spec files and updates copyright headers
Corrected shell syntax from `OLDDIR=$pwd` to `OLDDIR=$(pwd)` across all affected spec files
Updated copyright headers from verbose BSD-3-Clause license text to SPDX identifier format
Updated copyright year range to include 2025

---------

Signed-off-by: Bartosz Gotowalski <bartosz.gotowalski@intel.com>
2025-12-04 15:29:06 +01:00
Bartosz Gotowalski 651a51e723 Updates the DCAP (Data Center Attestation Primitives) submodule to include a fix for a QVE (Quote Verification Enclave) static cast issue
Updates the dcap_source submodule commit reference

---------

Signed-off-by: Bartosz Gotowalski <bartosz.gotowalski@intel.com>
Signed-off-by: Krzysztof Sandowicz <krzysztof.sandowicz@intel.com>
2025-12-03 19:56:13 +01:00
Bartosz Gotowalski de855d75fe Updates the DCAP (Data Center Attestation Primitives) submodule reference Release Candidate 1 (RC1)
- Updates the version number for DCAP components.
- Updates the license file for PCKCertSelection to Intel Simplified.
- Updates the supported operating systems list across multiple README files.
- Fixes the Quote Verification Sample to support both Windows and Linux.
- Bumps PCCS dependency validator.js from 13.15.20 to 13.15.23.

---------

Signed-off-by: Bartosz Gotowalski <bartosz.gotowalski@intel.com>
2025-12-03 14:07:15 +01:00