DynamoRIO / DynamoRIO/dynamorio

Undo pre-syscall actions in case of failure

Open
#5,221 4 comments 0 reactions 0 assignees View on GitHub
OpSys-All
Dominant language
C
Stars
3.2k
Forks
629
Avg merge
2d 15h
Merged PRs (30d)
31

Description

For some syscalls DR does complex pre-syscall handling (like clone, clone3,...) in `core/unix/os.c`. If these syscalls fail, we should ensure that we undo pre-syscall stuff if needed.

For clone3, we handle the case where we know it will return `ENOSYS` by detecting whether the system supports clone3 or not during init time, and skipping the pre-syscall stuff if we see a clone3 later. This issue is to track handling of other error scenarios and other such syscalls.

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.