Control-flow integrity in 5.13
Control-flow integrity in 5.13
Posted May 21, 2021 16:38 UTC (Fri) by anton (subscriber, #25547)Parent article: Control-flow integrity in 5.13
Given that all targets of each indirect call are known, instead of a checked use of an indirect jump table, the indirect call could be replaced by a hard-coded binary search among the possible targets, and finally a direct call. The comparisons and conditional branches of this search cost something, but given that a retpoline costs a guaranteed misprediction (~20 cycles), in our Spectre-workaround world the binary search is probably cheaper in many cases.
