News for hackers. Stuff that matters.
Re:OpenBSD: Mandatory enforcement of indirect branch targets by haberman on Friday July 14, 2023 @09:25AM (#36723675)
Interesting. I was able to get Clang to generate this using `-fcf-protection=branch`: https://godbolt.org/z/rooP8vPsM

It looks like endbr64 is a 4-byte instruction. That could be a significant code size overhead for jump tables with lots of targets: https://godbolt.org/z/xTPToaddh

Re:OpenBSD: Mandatory enforcement of indirect branch targets by notaplumber1 on Friday July 14, 2023 @11:02AM (#36724982)
OpenBSD disables jump tables in Clang on amd64 due to IBT, some architectures also had jump tables disabled as part of the switch to --execute-only ("xonly") binaries by default, e.g: powerpc64/sparc64/hppa.

https://marc.info/?l=openbsd-cvs&m=168254711511764&w=2

E.g: https://marc.info/?l=openbsd-cvs&m=167337396024167&w=2

Re:OpenBSD: Mandatory enforcement of indirect branch targets by saagarjha on Friday July 14, 2023 @07:18PM (#36731247)
Any idea what the performance impact is?