New code for SIGILL faults help identify misbranches
Contributed by
Janne Johansson
on 2024-02-22
from the don't pee on the electric fence dept.
If you run recent OpenBSD on certain amd64 or aarch64 platforms, indirect branching to an "unexpected" location will crash your program, in order to prevent ROP attacks and similar ways to have your program execute code where it shouldn't.
The OpenBSD compiler will insert an extra instruction in all the places where a branch is supposed to land, and if it lands anywhere else, a CPU fault is raised and you...
Read more at undeadly.org