Skip to content

Add support for Indirect Branch Tracking (IBT) #199

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 16, 2022

Conversation

PeterYang12
Copy link
Contributor

Indirect Branch Tracking(IBT) is part of Intel's Control-Flow
Enforcement Technology(CET). IBT is hardware based, forward edge
Control-Flow-Integrity mechanism where any indirect CALL/JMP must
target an ENDBR instruction or suffer #CP.

This commit inserts endbr64 instruction in assembly to support IBT.

Signed-off-by: PeterYang12 [email protected]
Signed-off-by: Chen, Hu [email protected]

@olk
Copy link
Member

olk commented May 13, 2022

causes compilation error:

make_x86_64_sysv_elf_gas.S:76: Error: no such instruction: `endbr64'

the architecture needs to be tested if endbr64 is supported

Indirect Branch Tracking(IBT) is part of Intel's Control-Flow
Enforcement Technology(CET). IBT is hardware based, forward edge
Control-Flow-Integrity mechanism where any indirect CALL/JMP must
target an ENDBR instruction or suffer #CP.

This commit inserts endbr64 instruction in assembly to support IBT.
@PeterYang12
Copy link
Contributor Author

PeterYang12 commented May 16, 2022

causes compilation error:

make_x86_64_sysv_elf_gas.S:76: Error: no such instruction: `endbr64'

the architecture needs to be tested if endbr64 is supported

The compilation error has been fixed.

@olk olk merged commit b6ff3fd into boostorg:develop May 16, 2022
@olk
Copy link
Member

olk commented May 16, 2022

ty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants