DynamoRIO / DynamoRIO/dynamorio
In linux, the DR API dependencies on SYS_write are not threadsafe
Open
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
Assessment
This issue has not been assessed yet.