HomePhabricator

hwasan: Untag global variable addresses in tests.

Authored by pcc on Aug 5 2019, 2:46 PM.

Description

hwasan: Untag global variable addresses in tests.

Once we start instrumenting globals, all addresses including those of string literals
that we pass to the operating system will start being tagged. Since we can't rely
on the operating system to be able to cope with these addresses, we need to untag
them before passing them to the operating system. This change introduces a macro
that does so and uses it everywhere it is needed.

Differential Revision: https://reviews.llvm.org/D65768

llvm-svn: 367938

Details

Committed
pccAug 5 2019, 2:46 PM
Differential Revision
D65768: hwasan: Untag global variable addresses in tests.
Parents
rG38f985eb1cb3: Add "REQUIRES: x86-registered-target" to test.
Branches
Unknown
Tags
Unknown