Open shirinebadi opened 1 month ago
It looks like you probably ran out of stack, which begins at 0x40000000 and ends at 0x3ffe0000 by default. Try bumping EYRIE_USER_STACK_SIZE.
I tried #define EYRIE_USER_STACK_SIZE 0x80000, and the problem still exists. Should I clean the make directory for runtime and try again? or any other thoughts?
Yep, you'll need to clean both the runtime and examples subdirectories: BUILDROOT_TARGET="keystone-runtime-dirclean keystone-examples-dirclean" make
I cleaned both directories and raised stack size up to 16, but the problem still exists.
I also tried initializing rx and tx using malloc unsigned char *rx = malloc(crypto_kx_SESSIONKEYBYTES); unsigned char *tx = malloc(crypto_kx_SESSIONKEYBYTES);
, but the errors is not gone. Do you have any thoughts on this?
I'm trying to generate the session key inside enclave. Following is the code.
However, the function
crypto_kx_server_session_keys
raises [runtime] page fault at 0x1650 on 0x3ffdfff0 (scause: 0xf)`. Any thoughts what might cause this?