Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try to locate syscall instruction in vdso mapping where possible #143

Open
bjorn3 opened this issue May 31, 2022 · 0 comments
Open

Try to locate syscall instruction in vdso mapping where possible #143

bjorn3 opened this issue May 31, 2022 · 0 comments
Labels
enhancement New feature or request linux

Comments

@bjorn3
Copy link
Contributor

bjorn3 commented May 31, 2022

This is faster than overwriting a piece of executable memory with a syscall instruction while preserving the original value, diverting execution to it, running the syscall, restoring all registers and then writing the original code back. Instead it is possible to search for a syscall instruction in the vdso mapping once and then every time a syscall needs to be made to divert execution to this instruction, running the syscall and then restoring all registers as it saves 3 ptrace syscalls.

@bjorn3 bjorn3 added enhancement New feature or request linux labels May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request linux
Projects
None yet
Development

No branches or pull requests

1 participant