This is an archive of the discontinued LLVM Phabricator instance.

Enable bunch of sanitizers on NetBSD/X86 and X86_64
ClosedPublic

Authored by krytarowski on Aug 8 2017, 12:39 PM.

Details

Summary

Enable more sanitizers:

  • i386 and amd64:
  • SanitizerKind::Vptr;
  • SanitizerKind::Leak;
  • SanitizerKind::SafeStack;
  • SanitizerKind::Function;
  • amd64 only:
  • SanitizerKind::Thread;

These sanitizers are in the process of upstreaming to LLVM projects.

Sponsored by <The NetBSD Foundation>

Diff Detail

Repository
rL LLVM

Event Timeline

krytarowski created this revision.Aug 8 2017, 12:39 PM
fjricci edited edge metadata.Aug 8 2017, 1:28 PM

Please add a test for this.

check-ubsan

-- Testing: 172 tests, 8 threads --
Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
Testing Time: 20.19s
  Expected Passes    : 156
  Unsupported Tests  : 16

I will enable more options and extend this commit.

krytarowski edited the summary of this revision. (Show Details)

Enable more sanitizers.

check-safestack

-- Testing: 8 tests, 8 threads --
Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
Testing Time: 0.56s
  Expected Passes    : 7
  Unsupported Tests  : 1

I will research how to add the requested tests.

krytarowski retitled this revision from Enable SanitizerKind::Vptr on NetBSD/X86 and X86_64 to Enable bunch of sanitizers on NetBSD/X86 and X86_64.Aug 9 2017, 10:24 AM
krytarowski edited the summary of this revision. (Show Details)

Fix lsan entry.
Add tests.

vitalybuka accepted this revision.Aug 10 2017, 11:45 AM
This revision is now accepted and ready to land.Aug 10 2017, 11:45 AM
krytarowski closed this revision.Aug 10 2017, 11:54 AM