DynamoRIO / DynamoRIO/dynamorio

In linux, the DR API dependencies on SYS_write are not threadsafe

Open
#1,647 0 comments 0 reactions 1 assignee Claimed by @byron-hawkins View on GitHub
Component-API Component-Docs OpSys-Linux
Dominant language
C
Stars
3.2k
Forks
629
Avg merge
2d 15h
Merged PRs (30d)
31

Description

The Linux kernel implementation of `sys_write()` races on the file position, so when multiple threads concurrently append to the same file handle, one or more of the appends may get dropped. This affects any output stream, including `stdout` and `stderr`. We should probably update the DR docs for the affected API functions to indicate that concurrent usage requires the user to lock.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.