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

Input/output error on PTRACE_PEEKDATA on recent kernels #393

Open
remram44 opened this issue Aug 28, 2023 · 3 comments
Open

Input/output error on PTRACE_PEEKDATA on recent kernels #393

remram44 opened this issue Aug 28, 2023 · 3 comments
Labels
A-question Attention: There is an open question for which more input is requested C-tracer (C) Component: The C part of the tracer codebase (_pytracer extension) T-bug Type: A fix for unwanted behavior, NOT a new feature or a simple enhancement

Comments

@remram44
Copy link
Member

In some situations, PTRACE_PEEKDATA returns Input/output error (errno=EIO).

This should be investigated and defended against.

@remram44 remram44 added T-bug Type: A fix for unwanted behavior, NOT a new feature or a simple enhancement A-question Attention: There is an open question for which more input is requested C-tracer (C) Component: The C part of the tracer codebase (_pytracer extension) labels Aug 28, 2023
@remram44
Copy link
Member Author

remram44 commented Aug 29, 2023

Found this thread: https://lkml.iu.edu/hypermail/linux/kernel/1712.2/04964.html

Initial testing shows that this is a problem on Linux 6.2.0-26-generic and 5.4.0-110-generic

@remram44
Copy link
Member Author

Might be an issue of missing CAP_SYS_PTRACE in containers, have to re-test.

@remram44
Copy link
Member Author

This doesn't happen if you're root and have CAP_SYS_PTRACE (which is not the default in containers). I see it happening on GitHub Actions, have to investigate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-question Attention: There is an open question for which more input is requested C-tracer (C) Component: The C part of the tracer codebase (_pytracer extension) T-bug Type: A fix for unwanted behavior, NOT a new feature or a simple enhancement
Projects
None yet
Development

No branches or pull requests

1 participant