Skip to content

Commit 1bcdf2e

Browse files
committed
Linux 2.1.1 Open Source Gold Release
Signed-off-by: Andy Zhao <[email protected]>
1 parent 3ccaec3 commit 1bcdf2e

File tree

21 files changed

+102
-21
lines changed

21 files changed

+102
-21
lines changed

SampleCode/SampleEnclave/Enclave/Edger8rSyntax/Pointers.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ size_t ecall_pointer_user_check(void *val, size_t sz)
6969
if (sgx_is_outside_enclave(val, sz) != 1)
7070
abort();
7171

72+
/*fence after sgx_is_outside_enclave check*/
73+
__builtin_ia32_lfence();
74+
7275
char tmp[100] = {0};
7376
size_t len = sz>100?100:sz;
7477

common/inc/internal/se_version.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@
2828
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2929
*
3030
*/
31-
#define STRFILEVER "2.1.42002"
32-
#define COPYRIGHT "Copyright (C) 2017 Intel Corporation"
31+
#define STRFILEVER "2.1.101.42529"
32+
#define COPYRIGHT "Copyright (C) 2018 Intel Corporation"
3333

download_prebuilt.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,3 @@ if [ $? -ne 0 ]; then
6666
fi
6767

6868
pushd $out_dir;tar -xf $optlib_name;tar -xf $ae_file_name;rm -f $optlib_name;rm -f $ae_file_name;popd
69-
0 Bytes
Binary file not shown.

psw/ae/pce/config.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<ProvisionKey>1</ProvisionKey>
44
<LaunchKey>0</LaunchKey>
55
<ProdID>0x1</ProdID>
6-
<ISVSVN>4</ISVSVN>
6+
<ISVSVN>5</ISVSVN>
77
<TCSNum>1</TCSNum>
88
<TCSMinPool>0</TCSMinPool>
99
<TCSPolicy>1</TCSPolicy>

psw/ae/pse/pse_op/config.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<ProvisionKey>0</ProvisionKey>
44
<LaunchKey>0</LaunchKey>
55
<ProdID>0x2</ProdID>
6-
<ISVSVN>4</ISVSVN>
6+
<ISVSVN>6</ISVSVN>
77
<TCSNum>1</TCSNum>
88
<TCSMinPool>0</TCSMinPool>
99
<TCSPolicy>1</TCSPolicy>

psw/ae/pse/pse_pr/config.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<ProvisionKey>0</ProvisionKey>
44
<LaunchKey>0</LaunchKey>
55
<ProdID>0x2</ProdID>
6-
<ISVSVN>4</ISVSVN>
6+
<ISVSVN>6</ISVSVN>
77
<TCSNum>1</TCSNum>
88
<TCSMinPool>0</TCSMinPool>
99
<TCSPolicy>1</TCSPolicy>

psw/ae/pve/config.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<ProvisionKey>1</ProvisionKey>
44
<LaunchKey>0</LaunchKey>
55
<ProdID>0x1</ProdID>
6-
<ISVSVN>5</ISVSVN>
6+
<ISVSVN>6</ISVSVN>
77
<TCSNum>1</TCSNum>
88
<TCSMinPool>0</TCSMinPool>
99
<TCSPolicy>1</TCSPolicy>

psw/ae/pve/provision_enclave.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,12 @@ uint32_t proc_prov_msg2_data_wrapper(
137137
goto ret_point;
138138
}
139139

140+
//
141+
// for user_check SigRL input
142+
// based on sigrl_size input parameter
143+
//
144+
__builtin_ia32_lfence();
145+
140146
if((sigrl==NULL&&sigrl_size!=0)||
141147
(sigrl!=NULL&&sigrl_size==0)){
142148
status = PVEC_PARAMETER_ERROR;

psw/ae/pve/provision_msg2.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,13 @@ pve_status_t proc_prov_msg2_data(const proc_prov_msg2_blob_input_t *msg2_blob_in
243243
if(NULL!=emp_sigrl){
244244
//process sigrl_header for hash value generation (used by ECDSA signature)
245245
ret = prov_msg2_proc_sigrl_header( emp_sigrl, sigrl_size, &msg3_parm);
246+
247+
//
248+
// for user_check SigRL input
249+
// based on n2 field in SigRL
250+
//
251+
__builtin_ia32_lfence();
252+
246253
if( PVEC_SUCCESS!=ret )
247254
goto ret_point;
248255
}

0 commit comments

Comments
 (0)