News for hackers. Stuff that matters.
Re:Intel SA-00145: Lazy FP State Restore by caf on Wednesday June 13, 2018 @08:44PM (#17308331)
Can't you executive the trapping access in a not-taken speculatively-executed branch à la Meltdown?
Re:Intel SA-00145: Lazy FP State Restore by cperciva on Wednesday June 13, 2018 @09:04PM (#17308425)
Sure, but that gives you an even shorter window because the pipeline flushes as soon as the CPU realizes that it mis-speculated.
Re:Intel SA-00145: Lazy FP State Restore by caf on Thursday June 14, 2018 @01:15AM (#17309476)
It is my understanding that you can make that window very long by having the mis-speculated branch depend on a value that has to be loaded from main memory.
Re:Intel SA-00145: Lazy FP State Restore by cperciva on Thursday June 14, 2018 @02:00AM (#17309633)
Hmm, good point. Yes, that would probably make this much easier to exploit.

Unless the CPU does a partial pipeline flush upon realizing that there would be a trap. I don't know -- do Intel CPUs check for exceptions in order?

Re:Intel SA-00145: Lazy FP State Restore by caf on Thursday June 14, 2018 @02:10AM (#17309676)
Well, they don't for #PF at least, because that's how Meltdown works - I'm not sure if it works differently for #NM though.