Closed Bug 1866606 Opened 1 year ago Closed 1 year ago

TaggedAnonymousMemory can support all Linux

Categories

(Core :: MFBT, enhancement)

Unspecified
Linux
enhancement

Tracking

()

RESOLVED FIXED
123 Branch
Tracking Status
firefox123 --- fixed

People

(Reporter: Benjamin, Assigned: Benjamin)

References

Details

Attachments

(2 files)

prctl's PR_SET_VMA_ANON was originally an Android patch, but it's been supported by the upstream Linux kernel since 5.17. TaggedAnonymousMemory therefore has unnecessarily restrictive ANDROID ifdefs.

Change ANDROID ifdefs to linux and allow PR_SET_VMA in the sandbox.

Assignee: nobody → benjamin
Status: NEW → ASSIGNED

MozTaggedMemoryIsSupported doesn't work under ASAN because it tries to prctl the
nullptr page. It should be harmless to simply call prctl and ignore the error.

Depends on D195064

Pushed by benjamin@python.org: https://hg.mozilla.org/integration/autoland/rev/6d4ddbd7c228 Support TaggedAnonymousMemory on all Linux r=jld https://hg.mozilla.org/integration/autoland/rev/be94de3bcd0f Remove MozTaggedMemoryIsSupported. r=jld
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 123 Branch
Regressions: 1872320
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: