Page MenuHomePhabricator

Always print DSO map on Fuchsia libFuzzer launch
ClosedPublic

Authored by aarongreen on Aug 14 2019, 10:49 AM.

Details

Summary

Fuchsia doesn't have /proc/id/maps, so it relies on the kernel logging system to provide the DSO map to be able to symbolize in the context of ASLR. The DSO map is logged automatically on Fuchsia when encountering a crash or writing to the sanitizer log for the first time in a process. There are several cases where libFuzzer doesn't encounter a crash, e.g. on timeouts, OOMs, and when configured to print new PCs as they become covered, to name a few. Therefore, this change always writes to the sanitizer log on startup to ensure the DSO map is available in the log.

Diff Detail

Repository
rL LLVM

Event Timeline

aarongreen created this revision.Aug 14 2019, 10:49 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptAug 14 2019, 10:49 AM
Herald added subscribers: llvm-commits, Restricted Project. · View Herald Transcript
This revision is now accepted and ready to land.Aug 14 2019, 8:46 PM
This revision was automatically updated to reflect the committed changes.