Stuffing the return stack buffer
Stuffing the return stack buffer
Posted Jul 24, 2022 17:12 UTC (Sun) by izbyshev (subscriber, #107996)In reply to: Stuffing the return stack buffer by mss
Parent article: Stuffing the return stack buffer
But it's directly followed by ret on the fallthrough path. If the speculation window could be arbitrarily large, I don't see what would prevent CPU from simply bypassing the RSB stuffing code by taking the fallthrough path N times where N is the size of the RSB, and then still using the attacker-controlled indirect branch predictor. So it seems that this mitigation relies on a certain upper bound on the size of the speculation window.
