Re:Why Raspberry Pi Isn't Vulnerable to Spectre or Meltdown
by DannyBee on Saturday January 06, 2018 @01:37PM
(#16086727)
Yeah, i don't disagree at all.
Something like this what i meant by "cooperation" (lfence or equivalent for code that can't be isolated but must be protected) + "weird abstractions" (IE back to segmented land we go)
I think realistically the only safe and not completely performance crippling workaround will be, at the very least, to run any untrusted code under a separate address space (assuming that the cpu is immune from meltdown). That doesn't necessarily require a full blown separate process, but something like memory protection keys might work.
The alternative is full static analysis and source level annotations, which realistically is only going to be done for very few programs and will still be error prone.