Messages in this thread | | | Date | Mon, 14 May 2018 23:59:32 -0700 | Subject | Re: [PATCH] x86: pad assembly functions with INT3 | From | hpa@zytor ... |
| |
On May 14, 2018 11:54:05 PM PDT, Ingo Molnar <mingo@kernel.org> wrote: > >* hpa@zytor.com <hpa@zytor.com> wrote: > >> > I guess it won't try to speculatively execute the 'pad' >instructions - but you >> > can never really tell! >> > >> > David >> >> The CPU doesn't speculate down past an unconditional control >transfer. Doing so >> would be idiotic. > >I think, when it comes to speculative execution, our general >expectation that CPUs >don't do idiotic things got somewhat weakened in the past year or so >... > >Thanks, > > Ingo
Sort-of-kind-of... the things that have cropped up were reasonable consequences of designing under a set of assumptions which turned out to be incorrect. Speculating through an unconditional control transfer did not make sense under those assumptions either. -- Sent from my Android device with K-9 Mail. Please excuse my brevity.
| |