]> git.ipfire.org Git - thirdparty/pdns.git/commit
Add endbr64 instructions in the right spots for OpenBSD/amd64 13430/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 30 Oct 2023 09:37:10 +0000 (10:37 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 30 Oct 2023 09:41:03 +0000 (10:41 +0100)
commit69aed0d58a2266d82fe3eba414fcf67e4e5f5fa6
treef4b37dc718b72246fd193fa010852908cfdd6bed
parent4e41c4285241d8aab88cb1ba167f535d5c042c32
Add endbr64 instructions in the right spots for OpenBSD/amd64

OpenBSD has IBT (aka control flow enforcement) on amd64, for processor
models that support it. But it turns out that the existing endbr64
instructions in the boost assembly for context switching are not
enough: there needs to be endbr64 instructions right after the
jump_fcontext() call, as indirect branches end up there.
pdns/recursordist/mtasker_fcontext.cc