-
Notifications
You must be signed in to change notification settings - Fork 50
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
aarch64: userspace fails to parse vdso through auxv #1324
Comments
Note: regarding vdso symbols see |
Interesting, I will give it a look later. |
I can repro similar issue happened in x86. |
On Tue Jul 9, 2024 at 5:01 PM CEST, QuarkSoft wrote:
I can repro similar issue happened in x86.
For x86, are you using arch specify vdso symbol names? i.e. instead of
…__kernel_rt_sigreturn
__kernel_gettimeofday
__kernel_clock_gettime
__kernel_clock_getres
use
__vdso_clock_gettime
__vdso_getcpu
__vdso_gettimeofday
__vdso_time
|
Looks like our vdso binary build has issue. I tried to use https://github.com/enarx/vdso to parse our vdso.so and get wrong result. |
for x86, we need to change the test code vdso_sym("LINUX_2.6", "__vdso_clock_gettime")) instead of vdso_sym("LINUX_2.6.39", "__vdso_clock_gettime")) Then it will work. So it is false alarm for x86. |
test code (note: should be GPL but I forgot where the code was from).
https://paste.sr.ht/blob/2bd3b5a16686b99fe4790d298d90d6a38c90f3a8
on native aarch64 (kernel 5.15)
with Quark:
(note: I didn't include @chl337 's vdso patch as it has nothing to do with userspace and auxv)
The text was updated successfully, but these errors were encountered: