Launching multiple background task instances simultaneously causes races in temp profile cleanup
Categories
(Toolkit :: Application Update, defect, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr91 | --- | unaffected |
| firefox99 | --- | unaffected |
| firefox100 | --- | disabled |
| firefox101 | --- | disabled |
| firefox102 | --- | fixed |
People
(Reporter: nalexander, Assigned: nalexander)
References
(Regression)
Details
(Keywords: regression, Whiteboard: [fidedi-ope])
Attachments
(3 files)
While investigating test failures re-enabling pingsender2, I discovered that launching many background task instances simultaneously causes races with the profile selection and the temp profile cleanup code.
I propose to salt the temporary profile directories with a pseudorandom value, so that it's very unlikely that two background task invocations will race to re-use the same temporary profile directory.
Salting in this manner will also make it a little harder to guess exactly where the temporary profile directory will be created, which is not crucial but may have some benefit as a defense-in-depth.
Updated•4 years ago
|
Updated•4 years ago
|
Comment 1•4 years ago
|
||
Set release status flags based on info from the regressing bug 1722777
Updated•4 years ago
|
| Assignee | ||
Comment 2•4 years ago
|
||
This verifies that stale temporary profile purging does not interfere
with concurrent temporary profile creation and locking.
Updated•4 years ago
|
| Assignee | ||
Updated•4 years ago
|
Comment 3•4 years ago
|
||
Comment 4•4 years ago
|
||
Updated•4 years ago
|
Comment 6•4 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/1002fb6d619e
https://hg.mozilla.org/mozilla-central/rev/555b163d97e3
Updated•4 years ago
|
Description
•