This is an archive of the discontinued LLVM Phabricator instance.

[Scudo] ensurePageMapAllocated addressing TODO
Needs ReviewPublic

Authored by devnexen on Jun 28 2023, 2:21 PM.

Details

Reviewers
Chia-hungDuan
Summary
  • reporting issue if PageMap is not allocated

Diff Detail

Event Timeline

devnexen created this revision.Jun 28 2023, 2:21 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 28 2023, 2:21 PM
Herald added subscribers: yaneury, Enna1. · View Herald Transcript
devnexen requested review of this revision.Jun 28 2023, 2:21 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 28 2023, 2:21 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript

We don't want to abort the process here, it's a soft failure. In addition, when page map allocation fails, it sometimes indicates an OOM on pages, i.e., we may not be able to allocate a single page for ScopedErrorReport. Even though it has local storage, but that means we may crash in the middle of reporting.

The ideal way of doing this is having a reserved space and do it there. This also includes some refactors in the ScopedString/Vector, .etc.