Closed
Bug 101005
Opened 25 years ago
Closed 2 years ago
[meta] Review *all* PSM code for threadsafety issues
Categories
(Core :: Security: PSM, defect, P3)
Tracking
()
RESOLVED
INACTIVE
Future
People
(Reporter: inactive-mailbox, Unassigned)
References
Details
(Keywords: meta, Whiteboard: [kerh-cuz][psm-logic][psm-tracking])
PSM uses the NS_IMPL_THREADSAFE_ISUPPORTS... marcos.
I believe, using these macros says: "it is safe to call any methods from any
thread". (No debug output / warning messages will be shown if this happens, as
it is considered safe.)
I learned in chats, that these macros might have been used to make the
assertions go away, but the code itself might have not been fully checked for
multithread safety. Currently, PSM doesn't use mutexes / locks.
We should review all PSM code to make sure we are not introducing problems that
lead to memory corruption etc, or are the cause for bugs we see but can't explain.
It might be helpful to replace the NS_IMPL_THREADSAFE macros with the
non-threadsafe versions, and look at the assertions that are shown (I made a
small test doing so several days ago and saw a bunch of assertions).
Once we know how much protection is needed, we can decide whether we prefer
locks or adding thread proxies to code that calls PSM from different threads.
Comment 2•25 years ago
|
||
Currently, nsNSSComponent is used by both the ui thread and the socket transport
thread, as I understand it.
Updated•25 years ago
|
Target Milestone: --- → Future
Comment 4•22 years ago
|
||
The CRL update code appears to have thread safety issues--see bug 200119.
Updated•21 years ago
|
Whiteboard: [kerh-cuz]
Updated•19 years ago
|
QA Contact: junruh → ui
Updated•16 years ago
|
Assignee: kaie → nobody
Whiteboard: [kerh-cuz] → [kerh-cuz][psm-logic]
Comment 5•10 years ago
|
||
This should be more of a meta-bug that tracks smaller, more achievable sub-tasks that will eventually get us to a more consistent state with respect to thread safety in PSM.
Component: Security: UI → Security: PSM
Priority: P1 → P3
Whiteboard: [kerh-cuz][psm-logic] → [kerh-cuz][psm-logic][psm-tracking]
Comment 6•8 years ago
|
||
The meta keyword is there, the bug doesn't depend on other bugs and there is no activity for 12 months.
:keeler, maybe it's time to close this bug?
Flags: needinfo?(dkeeler)
Updated•8 years ago
|
Summary: Review *all* PSM code for threadsafety issues → [meta] Review *all* PSM code for threadsafety issues
Comment 7•8 years ago
|
||
blocks -> depends on
Updated•4 years ago
|
Severity: normal → S3
Comment 8•2 years ago
|
||
closing as we haven't been using it for a while
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INACTIVE
You need to log in
before you can comment on or make changes to this bug.
Description
•