Closed
Bug 1621051
Opened 4 years ago
Closed 4 years ago
Make nsIOService::AllowPort thread-safe
Categories
(Core :: Networking, task, P1)
Core
Networking
Tracking
()
RESOLVED
FIXED
mozilla76
People
(Reporter: kershaw, Assigned: kershaw)
Details
(Whiteboard: [necko-triaged])
Attachments
(1 file)
47 bytes,
text/x-phabricator-request
|
jcristau
:
approval-mozilla-beta+
|
Details | Review |
nsIOService::AllowPort
is called from TRRServiceChannel::AsyncOpen
, so we have to make it thread-safe.
Assignee | ||
Updated•4 years ago
|
Priority: -- → P1
Whiteboard: [necko-triaged]
Assignee | ||
Comment 1•4 years ago
|
||
Updated•4 years ago
|
Assignee: nobody → kershaw
Status: NEW → ASSIGNED
Pushed by kjang@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2be4c9a3f053 Add a mutext to protect mRestrictedPortList,r=valentin
Comment 3•4 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
status-firefox76:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla76
Assignee | ||
Comment 4•4 years ago
|
||
Comment on attachment 9132023 [details]
Bug 1621051 - Add a mutext to protect mRestrictedPortList,r?valentin
Beta/Release Uplift Approval Request
- User impact if declined: There could be a race when checking if a port is allowed to connect.
- Is this code covered by automated tests?: Yes
- Has the fix been verified in Nightly?: Yes
- Needs manual test from QE?: No
- If yes, steps to reproduce:
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): The patch is quite simple and straightforward, so the risk is low.
- String changes made/needed: N/A
Attachment #9132023 -
Flags: approval-mozilla-beta?
Comment 5•4 years ago
|
||
Comment on attachment 9132023 [details]
Bug 1621051 - Add a mutext to protect mRestrictedPortList,r?valentin
approved for 75.0b2
Attachment #9132023 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment 6•4 years ago
|
||
bugherder uplift |
status-firefox75:
--- → fixed
Comment 7•3 years ago
|
||
What happens if nsIOService::AllowPort
is called between restrictedPortList.Assign(mRestrictedPortList);
and mRestrictedPortList.Assign(std::move(restrictedPortList));
?
You need to log in
before you can comment on or make changes to this bug.
Description
•