This is an archive of the discontinued LLVM Phabricator instance.

[scudo] Change configuration for Trusty, use mmap()
ClosedPublic

Authored by ahomescu on Jun 1 2023, 9:41 PM.

Details

Summary

Trusty runs in memory constrained environments, with many apps
having only one page (4KB) of heap memory available. However, we
still want to mmap() multiples of PAGE_SIZE at a time.

Additionally, switch Scudo from using sbrk() to mmap().

Diff Detail

Event Timeline

ahomescu created this revision.Jun 1 2023, 9:41 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 1 2023, 9:41 PM
ahomescu updated this revision to Diff 528031.Jun 2 2023, 4:12 PM

Rebased on top of D150481

Removed some outdated comments.

ahomescu published this revision for review.Jun 2 2023, 4:13 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 2 2023, 4:13 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
ahomescu updated this revision to Diff 528032.Jun 2 2023, 4:15 PM

Deleted another obsolete comment

cferris accepted this revision.Jun 2 2023, 4:21 PM

LGTM assuming the build checks pass.

This revision is now accepted and ready to land.Jun 2 2023, 4:21 PM

No commit access to llvm-project, could someone else merge it?

This revision was automatically updated to reflect the committed changes.