This is an archive of the discontinued LLVM Phabricator instance.

[X86] Add X86SafeStackBoundsChecking pass
Needs ReviewPublic

Authored by mlemay-intel on Feb 7 2017, 8:20 AM.

Details

Reviewers
zvi
eugenis
pcc
Summary

The X86SafeStackBoundsChecking pass identifies stores that are not authorized to
access safe stacks and instruments them with MPX bounds checking instructions to
help prevent stray writes that could corrupt safe stacks.

This pass is enabled with the separate-stack-seg feature on 64-bit targets.