Commit Graph

29 Commits

Author SHA1 Message Date
Yu Yuan
30b4f9ea09 Merge branch 'sean-jc-build_sections_cleanup' 2016-10-24 15:46:16 +08:00
Yu Yuan
d1353eeebe fixed conflict 2016-10-24 15:45:22 +08:00
Andy Zhao
4ed901beda Merge pull request #33 from yuyuany/driver_api_change
update enclave_creator to align with driver API change
2016-10-24 12:50:42 +08:00
Andy Zhao
36f04404be Merge pull request #32 from ZongminGu/debugger-fix
Update gdb_sgx_plugin.py to support Python 3.x
2016-10-24 12:37:30 +08:00
Yu Yuan
5cd3c5a7bf update enclave_creator to align with driver API change 2016-10-24 12:27:44 +08:00
ZongminGu
9700628686 Update gdb_sgx_plugin.py
fix the simulation mode support issue
2016-10-24 11:53:26 +08:00
yuyuany
57cb162f12 Merge pull request #9 from wh0/64bit
Large enclave support
2016-10-20 09:19:16 +08:00
yuyuany
f4005be591 Merge pull request #15 from sean-jc/misc_attr
Set misc_attr for failing _create_enclave flows
It should be a bug for sgx_create_enclave API. The patch is tested and accepted.
2016-10-10 16:00:03 +08:00
Sean Christopherson
14c19edaaf Clean up build_sections and build_mem_region code
Modify build_mem_region to support an unaligned starting address.  This
makes it symmetrical with regard to starting and ending partial pages;
previously, build_mem_region only support partial pages at the end of a
section (caller was responsible for handling the first page).  Remove
the edge case handling of the first page from build_sections now that
build_mem_region does not have alignment restrictions.

Change the section_info_t parameter in build_mem_region to be a const
reference to eliminate any need to check for a null pointer.

Make the raw_data pointer in section_info_t const, as the source file's
data should never be modified.  This is currently cast away via GET_PTR
in build_pages when calling into add_enclave_page; the add_enclave_page
flow can be modified by a future commit to retain the const modifier.

Add two utilities, is_relocation_page and build_partial_page, to reduce
copy-paste code.

Add PAGE_OFFSET macro to calculate the offset within a page.

Assert on address/size alignment in build_pages and build_context to
document expected alignment and catch any related code bugs.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
2016-09-26 13:46:38 -07:00
Sean Christopherson
ed437b5ea1 Set misc_attr for failing _create_enclave flows
Set misc_attr in the top level sgx_create_enclave if _create_enclave
fails.  This provides the user with the platform's capabilities when
sgx_create_enclave fails for any reason other than a parameter error.

Previously the misc_attr was only set upon failure if build_image
failed, which was not helpful when sgx_create_enclave failed due to
an attribute error, e.g. misc_select, as the flow aborted before it
reached build_image.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
2016-09-20 10:45:59 -07:00
zhaohuidu
85947caa12 Upgrade to Linux 1.6 gold release
switch code to linux 1.6 opensource gold release
2016-09-19 14:55:22 +08:00
Warren He
b57e8d0469 Widen XML parameters to 64 bits
The signing tool parses values in the enclave configuration as 32-bit
integers. This patch changes it to parse them as 64-bit integers, so
that it can process larger enclaves. This only affects properties such
as MaxStackSize and MaxHeapSize, while subsequent 32-bit bookkeeping,
such as TCSPolicy, MiscSelect, and MiscMask are unchanged.

Signed-off-by: Warren He <-w@berkeley.edu>
2016-08-01 08:39:17 -07:00
Warren He
8bde48e653 Avoid overflow when shifting
The urts library and the signing tool often shift page counts as
32-bit integers, then passes the result as a 64-bit value. This patch
casts page counts into 64-bit integers first, so that large page
counts don't overflow.

Signed-off-by: Warren He <-w@berkeley.edu>
2016-08-01 08:39:04 -07:00
Andy Zhao
d686fb0543 Merge pull request #8 from 01org/andyzyb-README
Update README.md to specify OS to Ubuntu desktop
2016-07-29 21:21:16 +08:00
Andy Zhao
2a0c21a62d Update README.md 2016-07-29 21:19:35 +08:00
Andy Zhao
3dc8793ead Merge pull request #6 from andyzyb/README-patch
Update README.md to include "Contributing" section
2016-07-28 11:24:10 +08:00
Andy Zhao
c3627be69e Merge pull request #7 from 01org/README-Ubuntu-Desktop
Update README.md to specify Ubuntu desktop version
2016-07-28 11:15:59 +08:00
Andy Zhao
24c366ccf6 Update README.md to specify Ubuntu desktop version
Signed-off-by: Andy Zhao <yebin.andy.zhao@intel.com>
2016-07-28 11:14:04 +08:00
Andy Zhao
56bd012feb Update README.md
Update README.md to include "Contributing" section.

Signed-off-by: Andy Zhao <yebin.andy.zhao@intel.com>
2016-07-27 11:32:55 +08:00
haitaohuang
c8d0211816 Merge pull request #5 from haitaohuang/master
Create CONTRIBUTING.md
2016-07-26 10:55:50 -05:00
haitaohuang
3cd172adaa Create CONTRIBUTING.md
Signed-off-by: Haitao Huang <haitao.huang@intel.com>
2016-07-26 10:00:28 -05:00
zhaohuidu
96d81d9abc Merge pull request #2 from llly/patch-1
Update .gitignore
2016-07-22 08:21:13 +08:00
llly
cc08bf96f8 Update .gitignore
ignore generated proxy
2016-07-21 19:36:32 +08:00
Andy Zhao
50a296217c Remove redundant characters 2016-06-24 16:45:39 +08:00
Andy Zhao
07f546948c Beautify README format 2016-06-24 16:30:00 +08:00
Angie Chinchilla
9441de4c38 Initial release of Intel SGX for Linux.
This release is used in conjunction with the linux-sgx-driver Intial release:
https://github.com/01org/linux-sgx-driver
commit-id: 0e865ce5e6b297a787bcdc12d98bada8174be6d7

Intel-id: 33399

Signed-off-by: Angie Chinchilla <angie.v.chinchilla@intel.com>
2016-06-23 18:51:53 -04:00
Angie Chinchilla
ba82cfcbb0 Add License file to project. 2016-06-23 17:35:04 -04:00
Angie Chinchilla
532875d019 Initial README.md for project 2016-06-23 17:24:11 -04:00
zhaohuidu
d3b80b9c39 Update .gitignore 2016-05-26 11:05:27 +08:00