-
Notifications
You must be signed in to change notification settings - Fork 40
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
Some bugs when using apps/basic hook #12
Comments
Thank you for your report. NO.1Regarding NO.1, I think this behavior is fine; essentially, the system call numbers are printed only after the hook function implemented in To see this, when I run the program with
I have the following output.
Up to the line printing I think this is the reason why the hook function only prints system call numbers 5, 1, and 231 for the hello world program. NO.2I also have an error when I run gcc. Currently, I do not have an idea why this happens, so, please give me time to look into more details. NO.3Regarding NO.3, I could not have reproduced this yet; for further investigation, could you provide the following information?
The following questions are optional; if it is not too much trouble, I would appreciate it if you try (any of) them.
Thank you very much for reporting the issues. |
Thank you for your reply. NO.1It's my fault. I thought that two NO.3After using
|
Thank you very much for spending your time to have the information that I have requested.
According to these, I guess that the reason for the issue of NO.3 is the red zone ( #9 ), and a temporary workaround added in 4c9362d seemed to work this time. Regarding NO.2, I have not figured out the root cause of it yet; please give me a bit more time. Thank you very much for trying the implementation and reporting the issues. |
Environment
KERNEL: 5.4.0-148-generic (Ubuntu 20.04)
CPU: Intel(R) Xeon(R) CPU E7- 4807 @ 1.87GHz
LIBC: glibc 2.31
CC: gcc 9.4.0
LIBOPCODES: libopcodes 2.34
NO.1
Outputs of the hook does not match that of strace.
Here,
a.out
is a simple "hello, world" program:NO.2
Core dumped when running gcc.
Here,
hello.c
is the same "hello, world" program:NO.3
I compiled
a.out
(the same as above),libzphook_basic.so
andlibzpoline.so
in the above envirionment (with glibc 2.38, however).Then I made a try on another environment using QEMU:
KERNEL: Linux 6.6.4
GLIBC: glibc 2.38
LIBOPCODES: libopcodes 2.34
A segment fault occurs and the syscall numbers are wrong:
The text was updated successfully, but these errors were encountered: