This is an archive of the discontinued LLVM Phabricator instance.

[scudo] Skip releaseToOSMaybe if there's no byte in freelist
ClosedPublic

Authored by Chia-hungDuan on May 9 2023, 8:11 PM.

Details

Summary

In primary32, the unused region will have max/min region index with 0
value and it's an invalid index. Skip releaseToOSMaybe in both primary32
and primary64 even it's M_PURGE_ALL.

Diff Detail

Event Timeline

Chia-hungDuan created this revision.May 9 2023, 8:11 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 9 2023, 8:11 PM
Herald added subscribers: yaneury, Enna1. · View Herald Transcript
Chia-hungDuan requested review of this revision.May 9 2023, 8:11 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 9 2023, 8:11 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
cferris accepted this revision.May 10 2023, 1:03 PM

LGTM

This revision is now accepted and ready to land.May 10 2023, 1:03 PM