[pcre-dev] [Bug 2509] JIT should emit Control-flow Enforceme…

Pàgina inicial
Delete this message
Autor: admin
Data:  
A: pcre-dev
Assumpte: [pcre-dev] [Bug 2509] JIT should emit Control-flow Enforcement Technology (CET) instructions
https://bugs.exim.org/show_bug.cgi?id=2509

--- Comment #7 from H.J. Lu <hjl.tools@???> ---
I pushed a new patch to

1. Add sljit_emit_ijump_target_start to emit a start instruction at
indirect jump target and call it after sljit_set_put_label(...) in
pcre2_jit_compile to add ENDBR32/ENDBR64 at indirect jump targets.
2. Define ECX_REG to use ECX as scratch register to unwind shadow stack
when returning from JIT.

Tested on i686/x86-64 CET/non-CET Linux machines with

$ CC="gcc -Wl,-z,cet-report=error -fcf-protection -mshstk" ./configure
--enable-jit

--
You are receiving this mail because:
You are on the CC list for the bug.