This is an archive of the discontinued LLVM Phabricator instance.

[asan][fuchsia] Implement PlatformUnpoisonStacks
ClosedPublic

Authored by charco on Jul 26 2021, 4:07 PM.

Details

Summary

This CL modifies the PlatformUnpoisonStacks so that fuchsia can
implement its own logic for unpoisoning the stacks.

For the general case, the behavior is the same as with regular asan: it
will unpoison everything from the current stack pointer until the base
of the stack (stack top).

In some situations, the current stack might not be the same as the
default stack. In those cases, the code will now unpoison the entire
default stack, and will also unpoison the current page of the stack.

Diff Detail

Event Timeline

charco requested review of this revision.Jul 26 2021, 4:07 PM
charco created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptJul 26 2021, 4:07 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
This revision is now accepted and ready to land.Jul 27 2021, 4:34 PM
This revision was automatically updated to reflect the committed changes.