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

Zero freemem/untrusted memory/etc quickly on init #38

Open dkohlbre opened 5 years ago

dkohlbre commented 5 years ago

Currently, we don't zero out the freemem region, and zero untrusted memory before we lock it. All zeroing is a mitigation, and is not a requirement for security properties, but if we are going to do it we need to do it faster than a memset.

DMAing in from a zero device may be the fastest way to do this.