keystone-enclave / riscv-pk

Security monitor for Keystone Enclave (mirror of riscv-pk). Will be deprecated when openSBI port is ready
Other
36 stars 14 forks source link

Crash on trying to start an enclave with invalid args #33

Open dkohlbre opened 5 years ago

dkohlbre commented 5 years ago

Topic is a guess. When trying to create an enclave with a too large untrusted region, then bad things happen.

[Keystone SDK] src/keystone.cpp:275 : failed to init untrusted memory - ioctl() failed: -1 /home/dkohlbre/keystone/keystone/riscv-pk/machine/mtrap.c:22: machine mode: unhandlable trap 5 @ 0x00000000800076b6