-
-
Notifications
You must be signed in to change notification settings - Fork 84
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
Unable to Override Symbol pread
or read
in '/lib/x86_64-linux-gnu/libc.so.6' Using Uprobe
#310
Comments
Could you please check if |
I'm not able to reproduce it on my machine..Could please help me create a docker image to reproduce it? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was unable to override symbol
pread
orread
in '/lib/x86_64-linux-gnu/libc.so.6'. It works perfectly fine forwrite
, both using bpf_override_return to override the return value of the client program and replacing the original write syscall by returning non-zero value in bpf program. However, override does not work for eitherpread
orread
.Both related configs were set as
Initially, I thought the problem is related to the global symbols. However, override does not with the weak symbol
pread
either.Part of my BPF program:
Part of my user-space code:
Any help and suggestion is appreciated! Thanks!
The text was updated successfully, but these errors were encountered: