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

Support for PTRACE_GET_SYSCALL_INFO #1755

Open
ItsShadowCone opened this issue Jun 30, 2022 · 3 comments
Open

Support for PTRACE_GET_SYSCALL_INFO #1755

ItsShadowCone opened this issue Jun 30, 2022 · 3 comments

Comments

@ItsShadowCone
Copy link

Linux >= 5.3 supports ptrace(PTRACE_GET_SYSCALL_INFO, pid, sizeof(struct ptrace_syscall_info), &info) to obtain more information about a syscall stop. Do note that it apparently only works, if PTRACE_O_TRACESYSGOOD is set beforehand.

Happy to contribute too.

FreeBSD seems to support this too, but I don't have a system to test that on.

@asomers
Copy link
Member

asomers commented Jul 10, 2022

Go ahead and submit a PR. CI will check it for FreeBSD, or I can.

@emilengler
Copy link

emilengler commented Mar 27, 2023

Any updates on this? I could spend some hours (at least for the Linux support) on this, as we need a CPU portable way to achieve syscall interception.

@emilengler
Copy link

See #2006

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants