This is an archive of the discontinued LLVM Phabricator instance.

[scudo] Additional modifications for Android tests support
ClosedPublic

Authored by cryptoad on Sep 18 2017, 12:19 PM.

Details

Summary

With the recent move of android_commands to sanitizer_common, some things
have to be updated with regard to Scudo on Android.

Notably:

  • config.android is dealt with in the common code
  • config.compile_wrapper can be prepended to allow for the use of the android commands
  • SCUDO_OPTIONS must be passed with the environment when running a test
  • preinit.cpp fails with some API levels, not sure why, I will have to dig into this later.

Note that check-scudo is not enabled yet in the bots. It's all local testing
for now until everything looks good.

Event Timeline

cryptoad created this revision.Sep 18 2017, 12:19 PM
vitalybuka added inline comments.Sep 18 2017, 12:31 PM
test/scudo/preinit.cpp
9

XFAIL means that test is going to fail if it passes
if it's inconsistent it must be UNSUPPORTED

cryptoad updated this revision to Diff 115706.Sep 18 2017, 12:46 PM
cryptoad marked an inline comment as done.

s/XFAIL/UNSUPPORTED for the preinit.cpp test.

cryptoad updated this revision to Diff 115708.Sep 18 2017, 1:21 PM

Updating the description of preinit.cpp.
For some API levels on my emulator, calling mmap from a preinit function
ends up in a NULL dereference in __mmap2.S (without Scudo).

vitalybuka accepted this revision.Sep 18 2017, 1:23 PM
This revision is now accepted and ready to land.Sep 18 2017, 1:23 PM
cryptoad closed this revision.Sep 18 2017, 1:33 PM