[Webkit-unassigned] [Bug 141317] New: MachineThreads should be ref counted

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Feb 5 18:25:30 PST 2015


https://bugs.webkit.org/show_bug.cgi?id=141317

            Bug ID: 141317
           Summary: MachineThreads should be ref counted
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mark.lam at apple.com

The VM's MachineThreads registry object is being referenced from other threads as a raw pointer.  In a scenario where the VM is destructed on the main thread, there is no guarantee that another thread isn't still holding a reference to the registry and will eventually invoke removeThread() on it on thread exit.  Hence, there's a possible use after free scenario here.

The fix is to make MachineThreads ThreadSafeRefCounted, and have all threads that references keep a RefPtr to it to ensure that it stays alive until the very last thread is done with it.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150206/62e89ba7/attachment-0002.html>


More information about the webkit-unassigned mailing list