Skip to content

Windows: Wow64ProcessPendingCrossProcessItems can leave mutexes locked forever #5186

@bylaws

Description

@bylaws

I haven't seen this in practice, but if Wow64ProcessPendingCrossProcessItems is called when a pre but not post callback is in the queue the mutex can be locked on one thread, but then unlocked on another if a different thread calls Wow64ProcessPendingCrossProcessItems and processes the post callback.

This will need us to serialize Wow64ProcessPendingCrossProcessItems calls and manage the threadcreationmutex in a different way that's either eagerly locked or lazily locked with polling. this is not ideal.

Wow64ProcessPendingCrossProcessItems also needs to be called before every memory callback (that isnt itself invoked from Wow64ProcessPendingCrossProcessItems) for safety

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions