News for hackers. Stuff that matters.
Re:OpenBSD: Mandatory enforcement of indirect branch targets by dzaima on Friday July 14, 2023 @05:39PM (#36730288)
Doesn't seem like it'd be that difficult to make the change the other direction, i.e. keep endbr64 as-is as the default case, but if there's a direct jump/call to anywhere that starts with endbr64, offset the immediate by 4 bytes; could be done in any single stage of toolchain that has that info with no extra help. But yeah, quite low impact, might not even affect decode throughput & cache usage for at least one of the direct or indirect cases.
Re:OpenBSD: Mandatory enforcement of indirect branch targets by me-vs-cat on Friday July 14, 2023 @07:08PM (#36731159)
> Doesn't seem like it'd be that difficult

Show me the code -- better yet, submit it to the relevant projects! :)