x86_init_func_common: Add ENDBR at function entry

Graphics / Mesa 3D Graphics Library / Mesa - H.J. Lu [gmail.com] - 26 March 2020 18:36 EDT

Intel Control-flow Enforcement Technology (CET):

https://software.intel.com/en-us/articles/intel-sdm

when IBT is enabled, all indirect branch targets must start with ENDBR instruction which is a NOP on non-CET processors.

Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2575

007e623025b x86_init_func_common: Add ENDBR at function entry
src/gallium/auxiliary/rtasm/rtasm_x86sse.c | 5 +++++
1 file changed, 5 insertions(+)

Upstream: cgit.freedesktop.org


  • Share