Closed Bug 1747178 Opened 2 years ago Closed 2 years ago

Add/move some locking in audio code

Categories

(Core :: Audio/Video, defect, P3)

defect

Tracking

()

RESOLVED FIXED
100 Branch
Tracking Status
firefox-esr91 --- wontfix
firefox98 --- wontfix
firefox99 --- wontfix
firefox100 --- fixed

People

(Reporter: jesup, Assigned: jesup)

References

(Blocks 1 open bug)

Details

(Keywords: csectype-race, sec-moderate, Whiteboard: [post-critsmash-triage][adv-main100+r])

Attachments

(1 file, 2 obsolete files)

There are some issues with the locking in AudioStream.h and AudioSink.cpp. In a few cases locking is missing, and in some others the locking is done in the wrong place/too late/not covering some items that should be locked, from what clang thread-safety static analysis tells me. (See blocked bug)

GUARDED_BY/etc annotations used to find these will land later, with support for thread-safety.

Assignee: nobody → rjesup
Status: NEW → ASSIGNED

The severity field is not set for this bug.
:jimm, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(jmathies)
Severity: -- → S4
Flags: needinfo?(jmathies)
Priority: -- → P3

This makes it clear that it's safe to access it from any thread.

Depends on D137182

Comment on attachment 9261107 [details]
Bug 1747178 - Make AudioStream::mOutChannel const. r?alwu

Revision D137183 was moved to bug 1752345. Setting attachment 9261107 [details] to obsolete.

Attachment #9261107 - Attachment is obsolete: true
Attachment #9256480 - Attachment description: Bug 1747178: dom/media Audio cleanup r=padenot → Bug 1747178: dom/media Audio thread-safety cleanup r=padenot
Group: media-core-security → core-security-release
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 100 Branch
Flags: qe-verify-
Whiteboard: [post-critsmash-triage]
Whiteboard: [post-critsmash-triage] → [post-critsmash-triage][adv-main100+r]
Attachment #9257510 - Attachment is obsolete: true
Group: core-security-release
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: