This is an archive of the discontinued LLVM Phabricator instance.

scudo: Allow TBI to be disabled on Linux with a macro.
ClosedPublic

Authored by pcc on Mar 16 2021, 12:04 PM.

Details

Summary

Android's native bridge (i.e. AArch64 emulator) doesn't support TBI so
we need a way to disable TBI on Linux when targeting the native bridge.

This can also be used to test the no-TBI code path on Linux (currently
only used on Fuchsia), or make Scudo compatible with very old
(pre-commit d50240a5f6ceaf690a77b0fccb17be51cfa151c2 from June 2013)
Linux kernels that do not enable TBI.

Diff Detail

Event Timeline

pcc created this revision.Mar 16 2021, 12:04 PM
pcc requested review of this revision.Mar 16 2021, 12:04 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 16 2021, 12:04 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
hctim accepted this revision.Mar 16 2021, 12:49 PM
This revision is now accepted and ready to land.Mar 16 2021, 12:49 PM
This revision was landed with ongoing or failed builds.Mar 16 2021, 12:56 PM
This revision was automatically updated to reflect the committed changes.