Interesting that BSD [1] and Linux [2] have different patches. AFAICT Linux uses the speculation barrier and BSD has data+instruction barriers instead.<p>If you're returning from an exception handler, I'm guessing you don't care how hard you flush the pipeline? Is one of these more optimal / more safe or are they mostly equivalent?<p>[1] <a href="https://ftp.openbsd.org/pub/OpenBSD/patches/6.6/common/014_eret.patch.sig" rel="nofollow">https://ftp.openbsd.org/pub/OpenBSD/patches/6.6/common/014_e...</a><p>[2] <a href="https://patchwork.kernel.org/patch/10700361/" rel="nofollow">https://patchwork.kernel.org/patch/10700361/</a>