Intel® Software Guard Extensions (Intel® SGX)
Discussion board focused on hardware-based isolation and memory encryption to provide extended code protection in solutions.

Aborted (core dumped) when exceeds enclave max heap size

lim__wen_sheng
Beginner
587 Views

Hello, 
I am running easy random access benchmarking in intel SGX, I am interested in the performance when the data passed into enclave is exceed enclave size. But I always meet Aborted (core dumped) when the input size exceeds enclave size, is there any configuration or parameter to avoid this issue?

Here is my benchmark code:

// Enclave/test/test.cpp
void ecall_ret_memory_access_2(int *arr, size_t sz)
{
    uint32_t val;
    for(int i = 0; i < (int)sz; i++){
        arr = arr + sgx_read_rand((unsigned char *) &val, 4);
    }
}


// Enclave/test/test.edl
enclave {
    trusted {
        public void ecall_ret_memory_access_2([in, out,count=sz] int *arr, size_t sz);
    };
};

 

0 Kudos
1 Reply
ChampionNan
Beginner
362 Views

Seems that you add value to the address rather than its value directly? 

 

0 Kudos
Reply