This is an archive of the discontinued LLVM Phabricator instance.

[asan] Enable asan for aarch64
ClosedPublic

Authored by zatrazz on Aug 5 2015, 6:12 AM.

Details

Summary

This patch enables asan for aarch64/linux. It marks it as 'unstable-release',
since some tests are failing due either kernel missing support of non-executable
pages in mmap or environment instability (infinite loop in juno reference
boards):

It sets decorate_proc_maps test to require stable-release, since the test expects
the shadow memory to not be executable and the support for aarch64 is only
added recently by Linux (da141706aea52c1a9 - 4.0). It also XFAIL static_tls test
for aarch64 linker may omit the __tls_get_addr call as a TLS optimization.

Diff Detail

Event Timeline

zatrazz updated this revision to Diff 31345.Aug 5 2015, 6:12 AM
zatrazz retitled this revision from to [asan] Enable asan for aarch64.
zatrazz updated this object.
zatrazz added reviewers: rengolin, kcc, eugenis, dvyukov.
zatrazz added a subscriber: llvm-commits.
rengolin accepted this revision.Aug 5 2015, 6:40 AM
rengolin edited edge metadata.

Hi Adhemerval,

This is in line with Gabor's tests and Christophe's original ASAN patch for AArch64.

Let's get this in for all that is good (and test it while we're at it), and fix the failures next.

LGTM.

Thanks!

This revision is now accepted and ready to land.Aug 5 2015, 6:40 AM
zatrazz closed this revision.Aug 5 2015, 9:08 AM