DNS resolve callback removal outside lock
Categories
(Core :: Networking: DNS, defect, P1)
Tracking
()
People
(Reporter: mayhemer, Assigned: mayhemer)
Details
(Keywords: csectype-race, sec-moderate, Whiteboard: [necko-triaged][adv-main70+][adv-main70+r][adv-esr68.2+][adv-esr68.2+r][post-critsmash-triage])
Attachments
(1 file)
|
47 bytes,
text/x-phabricator-request
|
lizzard
:
approval-mozilla-beta+
RyanVM
:
approval-mozilla-esr68+
|
Details | Review |
[1] should probably be called under the lock. The callback list is normally manipulated only under nsHostResolver::mLock.
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Comment 1•6 years ago
|
||
| Assignee | ||
Comment 2•6 years ago
|
||
Daniel, I found this issue during code inspection related to bug 1513519. Not sure it will help with that bug, but I rather filed it as a sec bug anyway.
I'm not sure about sec rating and if this needs some kind of an approval (probably not?)
Thanks.
Comment 3•6 years ago
|
||
Better to leave the rating blank if you're unsure, or ask in #security. If you put something there it disappears from triage and can get lost.
You don't need sec-approval for the new rating of sec-moderate.
| Assignee | ||
Comment 4•6 years ago
|
||
Thanks. I will land the patch directly.
| Assignee | ||
Comment 5•6 years ago
|
||
Comment on attachment 9099312 [details]
Bug 1586845, r=dragana
ESR Uplift Approval Request
- If this is not a sec:{high,crit} bug, please state case for ESR consideration: This may be related to high-rate sec bug 1513519 affecting fennec, hence it's worth landing this otherwise harmless patch to check if it fixes or progresses that bug.
- User impact if declined: UAFs - this is a race.
- Fix Landed on Version: 71
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): This just locks removal of a smart-ptr from a structure, no foreign code calls made under the lock, hence no chance for new deadlocks.
- String or UUID changes made by this patch:
| Assignee | ||
Comment 6•6 years ago
|
||
Comment on attachment 9099312 [details]
Bug 1586845, r=dragana
Beta/Release Uplift Approval Request
- User impact if declined: Possible race on a refptr.
- Is this code covered by automated tests?: Unknown
- Has the fix been verified in Nightly?: No
- Needs manual test from QE?: No
- If yes, steps to reproduce: There is no STR to trigger the race.
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): see previous comment
- String changes made/needed:
Comment 7•6 years ago
|
||
Comment 8•6 years ago
|
||
Comment on attachment 9099312 [details]
Bug 1586845, r=dragana
Fix for a bug which may affect other security-sensitive issues, OK for uplift for beta 14.
Comment 9•6 years ago
|
||
Is there any verification we can do (for desktop and for fennec) here?
| Assignee | ||
Comment 10•6 years ago
|
||
(In reply to Liz Henry (:lizzard) from comment #9)
Is there any verification we can do (for desktop and for fennec) here?
I'm afraid not :( If we could, bug 1513519 would be fixed or more understood now...
Comment 11•6 years ago
|
||
| uplift | ||
Comment 12•6 years ago
|
||
Updated•6 years ago
|
Comment 13•6 years ago
|
||
Comment on attachment 9099312 [details]
Bug 1586845, r=dragana
Approved for Fennec 68.2b7. Fingers crossed that it helps with the crashes!
Comment 14•6 years ago
|
||
| uplift | ||
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
| Assignee | ||
Comment 15•6 years ago
|
||
Unfortunately but kinda expectedly, didn't help with bug 1513519: https://crash-stats.mozilla.org/report/index/99e1b206-47f4-402f-8168-00e2b0191021 :(
Updated•6 years ago
|
Description
•