Skip to content

Race condition in uvwasi_fd_close() #88

Closed
@cjihrig

Description

uvwasi_fd_close() locks the fd mutex, closes the file, releases the mutex, then calls uvwasi_fd_table_remove() to free the fd table entry and destroy the entry's mutex.

Another thread could acquire the mutex once it is unlocked, and uvwasi_fd_table_remove() would destroy it.

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