I've been reading about Meltdown and Spectre today, and I'm wondering if they impact Intel SGX enclaves.
Now, my understanding of Meltdown is somewhat hazy, but AFAICT it does not impact secure enclaves, because it relies on the kernel being mapped into the same address space as processes, right? And it seems like Spectre only works to dump memory in the same process, which would mean that SGX enclaves won't leak memory in this case unless they were already compromised.
Is this correct?