437 Commits

Author SHA1 Message Date
Jing He 064d0468de add a sample project for stdc_ex branch
Signed-off-by: Jing He <jing.j.he@intel.com>
2023-06-19 10:14:40 +08:00
Zhang Lili e4748b7ca1 Bug fix.
Signed-off-by: Zhang Lili <lili.z.zhang@intel.com>
2022-11-30 15:24:11 +08:00
Zhang Lili cd8ea431c3 Rebase the code to 2.18 release.
Signed-off-by: Zhang Lili <lili.z.zhang@intel.com>
2022-11-29 15:51:35 +08:00
yanxue 34ba60baa2 Fix CVE-2022-37434
Signed-off-by: yanxue <yan.xue@intel.com>
2022-11-16 14:41:09 +08:00
Zhang Lili 9112d1c46a Add stdc ex libs.
Signed-off-by: Zhang Lili <lili.z.zhang@intel.com>
stdc_ex_1.0
2022-08-17 10:51:59 +08:00
Li, Xun 70e1535caa Linux 2.17.1 Open Source Gold Release
Along with the latest processor microcode address CVE-2022-21233.
- Modified the Edger8r to generate code with mitigations for the associated issue.
- Modified the API memcpy and memcpy_s to have mitigations for the associated issue.

Signed-off-by: Li, Xun <xun.li@intel.com>
sgx_2.17.1
2022-08-10 08:55:34 +08:00
Li Xun 15098e70d7 Merge pull request #858 from yuguorui/master
Fix aesmd booting error after RPM upgrade.
2022-07-27 13:04:33 +08:00
yuguorui 7523535879 Fix aesmd booting error after RPM upgrade.
According to the spec [1], the scriptlet %post of a new package executes
before %preun of the old package.

This will cause the startup.sh of the new package to be executed first,
and then the cleanup.sh of the old package to be executed when
sgx-aesm-service is upgraded, and the user aesmd will be deleted,
which leading aesmd booting error.

Replace %post with %posttrans to make sure the prerequisites for service
aesmd are met.

[1]. https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/

Signed-off-by: yuguorui <yuguorui@pku.edu.cn>
2022-06-24 13:33:34 +08:00
Zhang Lili fdb3b8b469 Fix pthread tls bug.
Signed-off-by: Zhang Lili <lili.z.zhang@intel.com>
2022-06-17 17:10:03 +08:00
Li, Xun effae62802 Linux 2.17 Open Source Gold Release
Along with the latest processor microcode and re-signed all the Intel(R) SGX
  Architecture Enclaves (AEs) to address CVE-2022-21123, CVE-2022-21125 and
  CVE-2022-21166.
Upgraded to Protobuf 3.20.
Upgraded to SgxSSL/OpenSSL 1.1.1o.
Added Intel TDX Attestation support.
Added Rust support for ECDSA quote verification.
Fixed bugs.

Signed-off-by: Li, Xun <xun.li@intel.com>
sgx_2.17
2022-06-15 09:34:27 +08:00
Haitao Huang da3ce11c64 Merge pull request #810 from haitaohuang/deb_docker
Dockerfile: add debian package build
2022-06-06 10:49:55 -05:00
junjungu 0746daab39 fix comments
Signed-off-by: junjungu <junjun.gu@intel.com>
2022-05-16 13:36:18 +08:00
junjungu 957ce9383e remove the stored config when destroy enclave
Signed-off-by: junjungu <junjun.gu@intel.com>
2022-05-16 13:36:18 +08:00
junjungu 2eed93a0d9 fix the issue that s_enclave_elrange_map destructor is invalid
which is reported from https://github.com/intel/linux-sgx/issues/818

Signed-off-by: junjungu <junjun.gu@intel.com>
2022-05-16 13:36:18 +08:00
Le Yao 508b5ee37c Remove duplicated headers
Signed-off-by: Le Yao <le.yao@intel.com>
2022-05-05 14:17:41 +08:00
Yu Ding 917d20d0f6 fix: typo
Signed-off-by: Yu Ding <dingelish@gmail.com>
2022-05-05 14:10:42 +08:00
junjungu e1a37bdc38 fix a issue for vdso reported from msft
Signed-off-by: junjungu <junjun.gu@intel.com>
2022-04-13 12:55:37 +08:00
Zhang Lili e636b6c42b Fix psw installer failure casued by PATH.
Signed-off-by: Zhang Lili <lili.z.zhang@intel.com>
2022-04-13 09:51:32 +08:00
Zhang Lili 1a98debccc Fix get_max_tcs_num() API for SGX1.
Signed-off-by: Zhang Lili <lili.z.zhang@intel.com>
2022-04-08 14:31:15 +08:00
gaoyusong 111a916b5d Fix sgx_create_enclave retry mechanism
Fix sgx_create_enclave retry mechanism when load_enclave
just return SGX_ERROR_MEMORY_MAP_FAILURE. Deprecated the
SGX_ERROR_MEMORY_MAP_CONFLICT. Make the retry mechanism
compatible with new driver and urts.

Signed-off-by: gaoyusong <a869920004@163.com>
2022-04-08 10:29:29 +08:00
Li, Xun 321a6580fb Linux 2.16 Open Source Gold Release
Upgraded to OpenSSL 1.1.1m.
Provided RA-TLS (Remote Attestation based Transport Layer Security) APIs and
  Samples.
Supported PKRU (Protection Key rights Register) in Enclave.
Added APIs of SHA384 and VerifyReport2 to support TDX.
Enhanced QPL (Quote Provider Library) to support caching Intel PCK
  (Provisioning Certificate Key) certificate chain in local memory, or
  retrieving Intel PCK cert chain from local HTTP/S address.
Upgraded Intel ECDSA Quote Verification Enclave to integrate SgxSSL/OpenSSL
  version 1.1.1m.
Introduced Intel ID enclave for QE identity generation.
Fixed bugs.

Signed-off-by: Li, Xun <xun.li@intel.com>
sgx_2.16
2022-04-06 12:06:27 +08:00
Haitao Huang dd65737a2f Dockerfile: add debian package build
Updated README
Also revert aesm docker to run as root inside
This was to ensure access to /dev/sgx_provision

Signed-off-by: Haitao Huang <4699115+haitaohuang@users.noreply.github.com>
2022-03-23 17:22:36 -07:00
Li Xun 0af6a83ef9 Merge pull request #808 from llly/update_readme
Update toolset instruction in README
2022-03-11 16:20:07 +08:00
Li, Xun acb9c84b9b Update toolset instruction in README
Toolset file names in prebuilt package are changed.

Signed-off-by: Li, Xun <xun.li@intel.com>
2022-03-11 09:53:26 +08:00
Vincent Haupert f607f89ab1 Fix Nix detection (#773)
Detect Nix by probing for the presence of the `NIX_STORE` environment
variable instead of `NIX_PATH`. The latter is only set in a `nix-shell`
session but isn't when building a derivation through `nix-build`. In
contrast, the `NIX_STORE` environment variable is set in both cases.

Signed-off-by: Vincent Haupert <mail@vincent-haupert.de>
2022-02-14 08:59:45 +08:00
Sylvain Bellemare 2ee53db4e8 Replace /bin/cp with cp for nix-build (#730)
* Replace /bin/cp with cp for nix-build

When using nix-build, /bin/cp cannot be found as there's nothing under
/bin except for sh.

Signed-off-by: Sylvain Bellemare <sbellem@gmail.com>

* Call getconf(1) relative to `PATH`

Signed-off-by: Vincent Haupert <mail@vincent-haupert.de>

Co-authored-by: Vincent Haupert <mail@vincent-haupert.de>
2022-01-05 16:36:25 +08:00
Guorui Yu 71211efb54 Fix aesmd service permission in linksgx.sh. (#736)
This commit ensures that no matter what the order of package installation is,
aesmd can have access to the sgx_provision device file.

Signed-off-by: yuguorui <yuguorui@pku.edu.cn>
2022-01-05 15:52:19 +08:00
Sylvain Bellemare 51d1087b70 Add sgx_ippcp.h to build sdk 2.15 from source (#752)
(when ipp crypto is built from source)

Related to: #719

Signed-off-by: Sylvain Bellemare <sbellem@gmail.com>
2021-12-07 13:19:54 +08:00
Li, Xun a59e51e223 Linux 2.15.1 Open Source Gold Release
Upgraded to OpenSSL 1.1.1l

Signed-off-by: Li, Xun <xun.li@intel.com>
sgx_2.15.1
2021-11-18 15:30:52 +08:00
lzha101 e6d626d0ba Add SECURITY.md
Signed-off-by: Zhang Lili lili.z.zhang@intel.com
2021-11-10 13:17:26 +08:00
lzha101 8ade0f2297 Update README.md
Fix the broken documentation link.

Signed-off-by: Zhang Lili <lili.z.zhang@intel.com>
sgx_2.15
2021-09-30 14:25:28 +08:00
Zhang Lili 6bb988fd7c Linux 2.15 Open Source Gold Release
Upgraded Intel(R) Integrated Performance Primitives Cryptography library to version 2021 update 3.
Upgraded Intel(R) SGX Architecture Enclaves based on new IPP crypto library.
Added software prevention of fault injection attacks.
Upgraded to GNU Binutils 2.36.1. Stopped providing ld.gold (developers should use ld instead).
Supported Google Protobuf C++.
Enabled C++14 within SGX SDK.
Added SM2/3/4 Samples.
Fixed bugs.

Signed-off-by: Zhang Lili <lili.z.zhang@intel.com>
2021-09-30 00:32:18 +00:00
Li Xun 6b8d2d14d0 Merge pull request #746 from LeoneChen/FixTypo
Fix URL
2021-09-15 14:27:06 +08:00
leone d36736dba0 fix typo 2021-09-07 22:29:18 +08:00
lzha101 8abc6dd8cb Merge pull request #743 from theShmoo/fix-malloc-without-free-#739
fix malloc without free
Signed-off-by: Zhang Lili <lili.z.zhang@intel.com>
2021-08-31 08:40:53 +08:00
David Pfahler f6a7fa2728 fix malloc without free
Signed-off-by: David Pfahler <david@pfahler.at>
2021-08-30 11:15:17 +02:00
lzha101 ca3795bdfb Change some type definitions in pthread. (#738)
Make sure the pthread structures be initialized by PTHREAD_*_INITIALIZER.
Also fix one potential race condition issue.

Signed-off-by: Zhang Lili <lili.z.zhang@intel.com>
2021-08-23 16:25:06 +08:00
Li Xun ebcab67e1e Merge pull request #735 from llly/fix_gcc11
Fix aesm_service optimization issue for GCC11
2021-07-30 13:01:18 +08:00
Li, Xun f97ea5bdb8 Fix optimization issue for GCC11
Tail call optimization breaks __builtin_return_address in aesm_service.
Add -fno-optimize-sibling-calls to an aesm_service source file to disable it.

Signed-off-by: Li, Xun <xun.li@intel.com>
2021-07-26 16:20:41 +08:00
Haitao Huang 5178e0c26b Merge pull request #725 from haitaohuang/docker_aesm
docker: run aesm with root
2021-07-19 11:05:23 -05:00
Pi Delport 69aff72510 docs(linux/reproducibility/README): fix typos (#724)
Signed-off-by: Pi Delport <pjdelport@gmail.com>
2021-07-16 08:43:51 +08:00
Li, Xun 0cea078f17 Update DCAP submodule
Signed-off-by: Li, Xun <xun.li@intel.com>
sgx_2.14
2021-07-14 11:56:28 +08:00
lzha101 500517af57 Update README and script. (#727)
Signed-off-by: Zhang Lili <lili.z.zhang@intel.com>
2021-07-14 12:41:44 +08:00
Li, Xun edfe42a517 Linux 2.14 Open Source Gold Release
Supported loading enclave at address 0.
Upgraded Intel(R) Quote Verification Enclave to integrate SgxSSL/OpenSSL version 1.1.1k.
Updated the DCAP driver V1.33 with stability fixes, released as V1.33.2. This is to support
  legacy solutions not ready to transition to the latest DCAP driver V1.41 or kernel 5.11+.
Fixed bugs.

Signed-off-by: Li, Xun <xun.li@intel.com>
2021-07-13 14:01:03 +08:00
Haitao Huang 1dea275f95 docker: run aesm with root
Groups/permissions in container do not always match with host env.
Run aesm with root to ensure access to /dev/sgx_provision

Signed-off-by: Haitao Huang <4699115+haitaohuang@users.noreply.github.com>
2021-07-09 03:50:01 +00:00
Sylvain Bellemare ebf4534bbc Update ipp-crypto branch in ippcp_internal/README (#716)
Signed-off-by: Sylvain Bellemare <sbellem@gmail.com>
2021-07-08 08:51:16 +08:00
Yu Ding 75375a3bef typo fix (#701)
Signed-off-by: Yu Ding dingelish@gmail.com
2021-07-06 15:08:17 +08:00
Sylvain Bellemare 90eb55fc1f Support setting BINUTILS_DIR as an env var (#718)
Signed-off-by: Sylvain Bellemare <sbellem@gmail.com>
2021-07-06 15:07:44 +08:00
lzha101 82cd9d4cce Fix simulation mode failure with tcmalloc. (#683)
Signed-off-by: Zhang Lili <lili.z.zhang@intel.com>
2021-05-18 10:54:38 +08:00
lzha101 26c458905b Update copyright. (#708)
Signed-off-by: Zhang Lili <lili.z.zhang@intel.com>
2021-05-18 10:52:48 +08:00