HomePhabricator

[HWASan] Port HWASan to Linux x86-64 (LLVM)

Description

[HWASan] Port HWASan to Linux x86-64 (LLVM)

Summary:
Porting HWASan to Linux x86-64, first of the three patches, LLVM part.

The approach is similar to ARM case, trap signal is used to communicate
memory tag check failure. int3 instruction is used to generate a signal,
access parameters are stored in nop [eax + offset] instruction immediately
following the int3 one.

One notable difference is that x86-64 has to untag the pointer before use
due to the lack of feature comparable to ARM's TBI (Top Byte Ignore).

Reviewers: eugenis

Subscribers: kristof.beyls, llvm-commits

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

Details

Committed
alekseyshlMar 23 2018, 10:57 AM
Differential Revision
D44699: [HWASan] Port HWASan to Linux x86-64 (LLVM)
Parents
rL328341: [ARM] Fix "Constant pool entry out of range!" in Thumb1 mode
Branches
Unknown
Tags
Unknown