[meta] Add static thread-safety lock/mutex analysis based on clang GUARDED_BY()
Categories
(Core :: XPCOM, task, P3)
Tracking
()
People
(Reporter: jesup, Assigned: jesup)
References
(Depends on 12 open bugs)
Details
(Keywords: leave-open, meta, sec-audit)
Attachments
(48 files, 89 obsolete files)
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review |
Comment 1•9 years ago
|
||
Assignee | ||
Comment 2•9 years ago
|
||
Comment 3•9 years ago
|
||
Assignee | ||
Comment 4•9 years ago
|
||
Assignee | ||
Comment 5•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Updated•9 years ago
|
Comment 6•9 years ago
|
||
Assignee | ||
Comment 7•9 years ago
|
||
Assignee | ||
Comment 8•9 years ago
|
||
Comment 9•9 years ago
|
||
Comment 10•9 years ago
|
||
Assignee | ||
Comment 11•9 years ago
|
||
Comment 12•9 years ago
|
||
Comment 13•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Assignee | ||
Comment 14•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Assignee | ||
Comment 15•9 years ago
|
||
Assignee | ||
Comment 16•9 years ago
|
||
Assignee | ||
Comment 17•9 years ago
|
||
Assignee | ||
Comment 18•9 years ago
|
||
Assignee | ||
Comment 19•9 years ago
|
||
Assignee | ||
Comment 20•9 years ago
|
||
Assignee | ||
Comment 21•9 years ago
|
||
Assignee | ||
Comment 22•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Comment 23•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Comment 24•9 years ago
|
||
Assignee | ||
Comment 25•9 years ago
|
||
Assignee | ||
Comment 26•9 years ago
|
||
Assignee | ||
Comment 27•9 years ago
|
||
Assignee | ||
Comment 28•9 years ago
|
||
Comment 29•9 years ago
|
||
Comment 30•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Assignee | ||
Comment 31•9 years ago
|
||
Assignee | ||
Comment 32•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Assignee | ||
Comment 33•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Assignee | ||
Comment 34•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Assignee | ||
Comment 35•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Assignee | ||
Comment 36•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Assignee | ||
Comment 37•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Assignee | ||
Comment 38•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Assignee | ||
Comment 39•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Assignee | ||
Comment 40•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Assignee | ||
Comment 41•9 years ago
|
||
Assignee | ||
Comment 42•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Assignee | ||
Updated•9 years ago
|
Assignee | ||
Updated•9 years ago
|
Assignee | ||
Updated•9 years ago
|
Assignee | ||
Comment 43•8 years ago
|
||
Assignee | ||
Updated•8 years ago
|
Assignee | ||
Comment 44•8 years ago
|
||
Assignee | ||
Updated•8 years ago
|
Assignee | ||
Comment 45•8 years ago
|
||
Assignee | ||
Updated•8 years ago
|
Assignee | ||
Comment 46•8 years ago
|
||
Assignee | ||
Updated•8 years ago
|
Assignee | ||
Comment 47•8 years ago
|
||
Assignee | ||
Updated•8 years ago
|
Assignee | ||
Comment 48•8 years ago
|
||
Assignee | ||
Updated•8 years ago
|
Assignee | ||
Comment 49•8 years ago
|
||
Assignee | ||
Updated•8 years ago
|
Assignee | ||
Comment 50•8 years ago
|
||
Assignee | ||
Updated•8 years ago
|
Assignee | ||
Comment 51•8 years ago
|
||
Assignee | ||
Updated•8 years ago
|
Assignee | ||
Comment 52•8 years ago
|
||
Assignee | ||
Updated•8 years ago
|
Assignee | ||
Comment 53•8 years ago
|
||
Assignee | ||
Updated•8 years ago
|
Assignee | ||
Comment 54•8 years ago
|
||
Assignee | ||
Updated•8 years ago
|
Updated•8 years ago
|
Assignee | ||
Comment 55•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 56•6 years ago
|
||
Assignee | ||
Updated•4 years ago
|
Updated•4 years ago
|
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 57•3 years ago
|
||
Assignee | ||
Comment 58•3 years ago
|
||
Depends on D130571
Assignee | ||
Comment 59•3 years ago
|
||
Depends on D130572
Assignee | ||
Comment 60•3 years ago
|
||
Depends on D130573
Assignee | ||
Comment 61•3 years ago
|
||
Depends on D130574
Assignee | ||
Comment 62•3 years ago
|
||
Depends on D130575
Assignee | ||
Comment 63•3 years ago
|
||
Depends on D130576
Assignee | ||
Comment 64•3 years ago
|
||
Depends on D130577
Assignee | ||
Comment 65•3 years ago
|
||
Depends on D130578
Assignee | ||
Comment 66•3 years ago
|
||
Depends on D130579
Assignee | ||
Comment 67•3 years ago
|
||
Depends on D130580
Assignee | ||
Comment 68•3 years ago
|
||
Depends on D130581
Assignee | ||
Comment 69•3 years ago
|
||
Depends on D130582
Assignee | ||
Comment 70•3 years ago
|
||
Depends on D130583
Assignee | ||
Comment 71•3 years ago
|
||
Depends on D130584
Assignee | ||
Comment 72•3 years ago
|
||
Depends on D130585
Assignee | ||
Comment 73•3 years ago
|
||
Depends on D130586
Assignee | ||
Comment 74•3 years ago
|
||
Depends on D130587
Assignee | ||
Comment 75•3 years ago
|
||
Depends on D130588
Assignee | ||
Comment 76•3 years ago
|
||
Depends on D130589
Assignee | ||
Comment 77•3 years ago
|
||
Depends on D130590
Assignee | ||
Comment 78•3 years ago
|
||
Depends on D130591
Assignee | ||
Comment 79•3 years ago
|
||
Depends on D130592
Assignee | ||
Comment 80•3 years ago
|
||
Depends on D130593
Assignee | ||
Comment 81•3 years ago
|
||
Depends on D130594
Assignee | ||
Comment 82•3 years ago
|
||
Depends on D130595
Assignee | ||
Comment 83•3 years ago
|
||
Depends on D130596
Assignee | ||
Comment 84•3 years ago
|
||
Depends on D130597
Assignee | ||
Comment 85•3 years ago
|
||
Depends on D130598
Assignee | ||
Comment 86•3 years ago
|
||
Depends on D130599
Assignee | ||
Comment 87•3 years ago
|
||
Depends on D130600
Assignee | ||
Comment 88•3 years ago
|
||
Depends on D130601
Assignee | ||
Comment 89•3 years ago
|
||
Depends on D130602
Assignee | ||
Comment 90•3 years ago
|
||
Depends on D130603
Assignee | ||
Comment 91•3 years ago
|
||
Depends on D130604
Assignee | ||
Comment 92•3 years ago
|
||
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 93•3 years ago
|
||
One random low-severity issue this code found (there are a lot): bug 1740284. Also bug 1739421
Assignee | ||
Comment 94•3 years ago
|
||
Depends on D130605
Assignee | ||
Comment 95•3 years ago
|
||
Depends on D130946
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 96•3 years ago
|
||
Depends on D130582
Updated•3 years ago
|
Assignee | ||
Comment 97•3 years ago
|
||
Depends on D130600
Assignee | ||
Comment 98•3 years ago
|
||
Depends on D130947
Assignee | ||
Comment 99•3 years ago
|
||
Depends on D131816
Assignee | ||
Comment 100•3 years ago
|
||
Depends on D131817
Assignee | ||
Comment 101•3 years ago
|
||
Depends on D131818
Assignee | ||
Comment 102•3 years ago
|
||
Depends on D131819
Assignee | ||
Comment 103•3 years ago
|
||
Depends on D131820
Assignee | ||
Comment 104•3 years ago
|
||
Depends on D130582
Assignee | ||
Comment 105•3 years ago
|
||
Depends on D130600
Assignee | ||
Comment 106•3 years ago
|
||
Depends on D130947
Assignee | ||
Comment 107•3 years ago
|
||
Depends on D131829
Assignee | ||
Comment 108•3 years ago
|
||
Depends on D131830
Assignee | ||
Comment 109•3 years ago
|
||
Depends on D131831
Assignee | ||
Comment 110•3 years ago
|
||
Depends on D131832
Assignee | ||
Comment 111•3 years ago
|
||
Depends on D130582
Assignee | ||
Comment 112•3 years ago
|
||
Depends on D130600
Assignee | ||
Comment 113•3 years ago
|
||
Depends on D130947
Assignee | ||
Comment 114•3 years ago
|
||
Depends on D131839
Assignee | ||
Comment 115•3 years ago
|
||
Depends on D131840
Assignee | ||
Comment 116•3 years ago
|
||
Depends on D131841
Assignee | ||
Comment 117•3 years ago
|
||
Depends on D131842
Assignee | ||
Comment 118•3 years ago
|
||
Depends on D130582
Assignee | ||
Comment 119•3 years ago
|
||
Depends on D130600
Assignee | ||
Comment 120•3 years ago
|
||
Depends on D130947
Assignee | ||
Comment 121•3 years ago
|
||
Depends on D131846
Assignee | ||
Comment 122•3 years ago
|
||
Depends on D131847
Assignee | ||
Comment 123•3 years ago
|
||
Depends on D131848
Assignee | ||
Comment 124•3 years ago
|
||
Depends on D131849
Assignee | ||
Comment 125•3 years ago
|
||
Depends on D130582
Assignee | ||
Comment 126•3 years ago
|
||
Depends on D130947
Assignee | ||
Comment 127•3 years ago
|
||
Depends on D131875
Assignee | ||
Comment 128•3 years ago
|
||
Depends on D131876
Assignee | ||
Comment 129•3 years ago
|
||
Depends on D131877
Assignee | ||
Comment 130•3 years ago
|
||
Depends on D131878
Assignee | ||
Comment 131•3 years ago
|
||
Sorry for the bug-spam; moz-phab has failed multiple times on me. Finally got a clean, complete upload of the current WIP patches
Assignee | ||
Comment 132•3 years ago
|
||
Depends on D131879
Assignee | ||
Comment 133•3 years ago
|
||
Depends on D132436
Assignee | ||
Comment 134•3 years ago
|
||
Depends on D132641
Comment 135•3 years ago
|
||
Comment on attachment 9253324 [details]
Bug 1207753 - modules/jar thread-safety annotations r=nika
Revision D132642 was moved to bug 1744043. Setting attachment 9253324 [details] to obsolete.
Updated•3 years ago
|
Updated•3 years ago
|
Assignee | ||
Comment 136•3 years ago
|
||
Updated•3 years ago
|
Assignee | ||
Comment 137•3 years ago
|
||
Assignee | ||
Comment 139•3 years ago
|
||
Comment 140•3 years ago
|
||
Comment 141•3 years ago
|
||
Backed out for causing Hazard bustages.
Backout link: https://hg.mozilla.org/integration/autoland/rev/cf0358be9f097701fd02780876723576d5597d89
Failure log: https://treeherder.mozilla.org/logviewer?job_id=371247412&repo=autoland&lineNumber=12073
Comment 142•3 years ago
|
||
Comment 143•3 years ago
|
||
Backed out changeset 12a59e5a50bf (Bug 1207753) for causing build bustage CLOSED TREE
Log: https://treeherder.mozilla.org/logviewer?job_id=371274693&repo=autoland&lineNumber=5661
https://treeherder.mozilla.org/logviewer?job_id=371274698&repo=autoland&lineNumber=2103
Lint failure: https://treeherder.mozilla.org/logviewer?job_id=371274727&repo=autoland&lineNumber=114
Backout: https://hg.mozilla.org/integration/autoland/rev/b8aed504421d5e1fa4b7ace950b7aef73038aad8
Comment 144•3 years ago
|
||
Comment 145•3 years ago
|
||
Comment 146•3 years ago
|
||
Backed out for causing build bustages on Monitor.h
- Backout link
- Push with failures
- Failure Log
- Failure line: /builds/worker/workspace/obj-build/dist/include/mozilla/Monitor.h:280:40: error: 'assert_capability' attribute takes one argument
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 147•3 years ago
|
||
Updated•3 years ago
|
Comment 148•3 years ago
|
||
Updated•3 years ago
|
Comment 149•3 years ago
|
||
bugherder |
Assignee | ||
Comment 150•3 years ago
|
||
Comment 151•3 years ago
|
||
Comment 152•3 years ago
|
||
Comment 153•3 years ago
|
||
bugherder |
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Assignee | ||
Comment 154•3 years ago
|
||
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Comment 155•3 years ago
|
||
Comment 156•3 years ago
|
||
Comment 157•3 years ago
|
||
bugherder |
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Comment 158•3 years ago
|
||
I think it would be better to file new bugs for these various patches you are adding here. The base bug already has an old and complex history, and it'll be difficult to figure out which patches landed in which version, should that be relevant later.
Assignee | ||
Comment 159•3 years ago
|
||
Assignee | ||
Comment 160•3 years ago
|
||
Assignee | ||
Comment 161•3 years ago
|
||
Assignee | ||
Comment 162•3 years ago
|
||
Assignee | ||
Comment 163•3 years ago
|
||
Assignee | ||
Comment 164•3 years ago
|
||
Updated•3 years ago
|
Comment 165•3 years ago
|
||
Comment 166•3 years ago
|
||
Comment on attachment 9249697 [details]
WIP: Bug 1207753 - ipc
Revision D130599 was moved to bug 1760659. Setting attachment 9249697 [details] to obsolete.
Comment 167•3 years ago
|
||
Comment 168•3 years ago
|
||
Comment 169•3 years ago
|
||
Comment 170•3 years ago
|
||
Comment 171•3 years ago
|
||
Comment on attachment 9249703 [details]
WIP: Bug 1207753 - Parser
Revision D130605 was moved to bug 1760661. Setting attachment 9249703 [details] to obsolete.
Comment 172•3 years ago
|
||
Comment 173•3 years ago
|
||
Comment 174•3 years ago
|
||
Comment on attachment 9249692 [details]
WIP: Bug 1207753 - DOM workers
Revision D130594 was moved to bug 1760662. Setting attachment 9249692 [details] to obsolete.
Comment 175•3 years ago
|
||
Comment 176•3 years ago
|
||
Comment 177•3 years ago
|
||
Comment 178•3 years ago
|
||
Backed out 22dd9ee7e4a4b6e007c5245c0ef29d1f516bce25 for causing bustage on ProcessHangMonitor.cpp
- backout: https://hg.mozilla.org/integration/autoland/rev/24bca595e5e6d695959cb07b42b120e4325e3755
- push: https://treeherder.mozilla.org/jobs?repo=autoland&group_state=expanded&revision=22dd9ee7e4a4b6e007c5245c0ef29d1f516bce25
- failure log: https://treeherder.mozilla.org/logviewer?job_id=371820798&repo=autoland&lineNumber=11287
[task 2022-03-21T23:30:28.199Z] 23:30:28 ERROR - /builds/worker/checkouts/gecko/dom/ipc/ProcessHangMonitor.cpp:248:53: error: writing variable 'mProcess' requires holding mutex 'mMonitor' exclusively [-Werror,-Wthread-safety-analysis]
[task 2022-03-21T23:30:28.199Z] 23:30:28 INFO - void SetProcess(HangMonitoredProcess* aProcess) { mProcess = aProcess; }
[task 2022-03-21T23:30:28.200Z] 23:30:28 INFO - ^
[task 2022-03-21T23:30:28.200Z] 23:30:28 ERROR - /builds/worker/checkouts/gecko/dom/ipc/ProcessHangMonitor.cpp:367:38: error: reading variable 'mContext' requires holding mutex 'mMonitor' [-Werror,-Wthread-safety-analysis]
[task 2022-03-21T23:30:28.200Z] 23:30:28 INFO - js::AutoAssertNoContentJS nojs(mContext);
[task 2022-03-21T23:30:28.200Z] 23:30:28 INFO -
Comment 179•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/328857c0299d
https://hg.mozilla.org/mozilla-central/rev/74c9088f7922
https://hg.mozilla.org/mozilla-central/rev/c73e66ec8e14
https://hg.mozilla.org/mozilla-central/rev/37388f5fbd2d
https://hg.mozilla.org/mozilla-central/rev/e36fd04aa847
https://hg.mozilla.org/mozilla-central/rev/e23f071eb6f0
https://hg.mozilla.org/mozilla-central/rev/c0702641e5d3
https://hg.mozilla.org/mozilla-central/rev/74709c76387c
https://hg.mozilla.org/mozilla-central/rev/4a554b37a407
Comment 180•3 years ago
|
||
Comment 181•3 years ago
|
||
Comment 182•3 years ago
|
||
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Comment 183•3 years ago
|
||
bugherder |
Updated•3 years ago
|
Updated•3 years ago
|
Description
•