Re: [PATCH v2 4/5] selftests/sgx: Include the dynamic heap size to the ELRANGE calculation

From: Reinette Chatre
Date: Thu Sep 08 2022 - 18:44:13 EST


Hi Jarkko,

On 9/4/2022 7:04 PM, Jarkko Sakkinen wrote:
> When calculating ELRANGE, i.e. the address range defined for an enclave,
> and represented by encl->encl_size, also dynamic memory should be taken
> into account. Implement setup_test_encl_dynamic() with dynamic_size
> parameter for the dynamic heap size, and use it in 'augment_via_eaccept'
> and 'augment' tests.
>
> Signed-off-by: Jarkko Sakkinen <jarkko@xxxxxxxxxx>

This is a constructive addition, thank you very much.

Reviewed-by: Reinette Chatre <reinette.chatre@xxxxxxxxx>

Reinette