Closed Bug 1728934 Opened 3 years ago Closed 3 years ago

Ensure Ogg demux fails gracefully on rlbox sandbox OOM

Categories

(Core :: Security: Process Sandboxing, enhancement, P3)

x86
Unspecified
enhancement

Tracking

()

RESOLVED FIXED
95 Branch
Tracking Status
firefox95 --- fixed

People

(Reporter: shravanrn, Assigned: shravanrn)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 4 obsolete files)

Ogg demuxing sandbox uses a fresh sandbox for each ogg file. This can put a lot of memory pressure on website that have multiple pieces of OGG media. This is even worse on 32-bit platforms. Moving to a single shared ogg sandbox per content process instead should still retain most of the security benefits of compartmentalization.

Summary: Migrate to a single shared OGG rlbox sandbox to support 32-bit platforms → Allow reuse of OGG rlbox sandbox to reduce memory footprint
Attachment #9239317 - Attachment description: Bug 1728934 - Migrate to a single OGG rlbox sandbox to reduce memory r=glandium → Bug 1728934 - Allow reuse of OGG rlbox sandbox to reduce memory footprint r=glandium
Attachment #9239317 - Attachment description: Bug 1728934 - Allow reuse of OGG rlbox sandbox to reduce memory footprint r=glandium → Bug 1728934 Part 2 - Allow reuse of OGG rlbox sandbox to reduce memory footprint r=padenot

Update --- since the ogg sandbox can be used from multiple threads at the same time, note that this change needs to use a mutex to invoke functions in the ogg sandbox.

Attachment #9239317 - Attachment is obsolete: true
Summary: Allow reuse of OGG rlbox sandbox to reduce memory footprint → Ensure Ogg demux fails gracefully on rlbox sandbox OOM and re-enable it on 32-bit platforms
Pushed by mh@glandium.org:
https://hg.mozilla.org/integration/autoland/rev/a932fbd95f01
Part 1 - Update wasm2c to support better use of 32-bit virtual space r=glandium
https://hg.mozilla.org/integration/autoland/rev/a240e5a52df4
Part 2 - Update rlbox,wasm2c plugin for fallible create_sandbox r=glandium
https://hg.mozilla.org/integration/autoland/rev/3538237090bf
Part 3 - Ensure Ogg demux fails gracefully on rlbox sandbox OOM r=glandium,bholley
https://hg.mozilla.org/integration/autoland/rev/5e64ae0a8b00
Part 4 - Re-enable OGG demux rlbox sandbox on 32-bit platforms r=glandium
Attachment #9243374 - Attachment is obsolete: true
Attachment #9243598 - Attachment description: Bug 1728934 Part 2 - Update rlbox,wasm2c plugin for fallible create_sandbox r=glandium → Bug 1728934 Part 1 - Update rlbox,wasm2c plugin for fallible create_sandbox r=glandium
Attachment #9243599 - Attachment description: Bug 1728934 Part 3 - Ensure Ogg demux fails gracefully on rlbox sandbox OOM r=glandium,padenot → Bug 1728934 Part 2 - Ensure Ogg demux fails gracefully on rlbox sandbox OOM r=glandium,padenot
Attachment #9243600 - Attachment description: Bug 1728934 Part 4 - Re-enable OGG demux rlbox sandbox on 32-bit platforms r=glandium → Bug 1728934 Part 3 - Re-enable OGG demux rlbox sandbox on 32-bit platforms r=glandium
Flags: needinfo?(shravanrn)
Attachment #9243598 - Attachment is obsolete: true
Summary: Ensure Ogg demux fails gracefully on rlbox sandbox OOM and re-enable it on 32-bit platforms → Ensure Ogg demux fails gracefully on rlbox sandbox OOM
Blocks: 1737707
Attachment #9243599 - Attachment description: Bug 1728934 Part 2 - Ensure Ogg demux fails gracefully on rlbox sandbox OOM r=glandium,padenot → Bug 1728934 - Ensure Ogg demux fails gracefully on rlbox sandbox OOM r=glandium,padenot

Comment on attachment 9243600 [details]
Bug 1728934 Part 3 - Re-enable OGG demux rlbox sandbox on 32-bit platforms r=glandium

Revision D127024 was moved to bug 1737707. Setting attachment 9243600 [details] to obsolete.

Attachment #9243600 - Attachment is obsolete: true
Pushed by bholley@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/28e7a49220d1
Ensure Ogg demux fails gracefully on rlbox sandbox OOM r=glandium,bholley
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 95 Branch
Blocks: 1758626
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: