This is an archive of the discontinued LLVM Phabricator instance.

Revert "Revert "[scudo] Only prepare PageMap entry for partial region""
ClosedPublic

Authored by Chia-hungDuan on Feb 27 2023, 2:42 PM.

Details

Summary

Fixed the bug in merging BatchGroups back to the FreeList. Added DCHECKs
to ensure the order of BatchGroups

This reverts commit 387452ec591c81def6d8869b23c2ab2f1c56f999.

Diff Detail

Event Timeline

Chia-hungDuan created this revision.Feb 27 2023, 2:42 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 27 2023, 2:42 PM
Chia-hungDuan requested review of this revision.Feb 27 2023, 2:42 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 27 2023, 2:42 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript

The original revert

The applied fix

Chia-hungDuan added inline comments.Feb 27 2023, 2:52 PM
compiler-rt/lib/scudo/standalone/primary64.h
1044–1050

This was removed by accident and which was supposed to catch the bug earlier. With this back, we could see the failure in the test

Two very small comment nits.

compiler-rt/lib/scudo/standalone/primary64.h
1027

inserts

1030

been checked

Chia-hungDuan marked 2 inline comments as done.

Address review comments

cferris accepted this revision.Feb 27 2023, 3:47 PM

LGTM

This revision is now accepted and ready to land.Feb 27 2023, 3:47 PM
MaskRay added a subscriber: MaskRay.Mar 2 2023, 1:28 PM

We don't upload a new patch for a reland. You can click "Add Action" -> "Reopen Revision" and reuse the original differential. This helps discussions in a centralized place.

We don't upload a new patch for a reland. You can click "Add Action" -> "Reopen Revision" and reuse the original differential. This helps discussions in a centralized place.

I see. Thanks for the instruction!

Chia-hungDuan reopened this revision.Mar 2 2023, 5:48 PM
This revision is now accepted and ready to land.Mar 2 2023, 5:48 PM

Fix a bug on Fuchsia, ReleaseRecorder should record the offset instead of adding the offset to the base directly.

cferris accepted this revision.Mar 2 2023, 6:47 PM

LGTM.

This revision was landed with ongoing or failed builds.Mar 6 2023, 8:39 AM
This revision was automatically updated to reflect the committed changes.