-
Notifications
You must be signed in to change notification settings - Fork 137
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
Failed to run lkl hijack on android 10 #533
Comments
Is there any updates now? The problem still presists. |
IIUC, zpoline is x86-64 specific, so won't work on arm/aarch64 Android. zpoline also relies on modifications to the running binary, which I think Android security policies disallow, as indicated by the W(rite)+E(xecute) error message. https://www.usenix.org/system/files/atc23-yasukata.pdf explains why it's very x86 specific. |
I'm not familiar with this area, and have no local environment to reproduce it. can you do the same thing without errors in non-termux environment ? |
although zpoline is indeed x86 specific, the command @fish4terrisa-MSDSM gave us is using the default hijack library (i.e., LD_PRELOAD w/ symbol replacement of glibc) so, it should be not related to zpoline. |
...
Oops, you're right. zpoline was only used in the second example, the first was just plain hijack.so |
That problem is caused by a limit of bionic linker, which bans the load of .so libraries with W+E load segments , and the hijack library of lkl always have W+E load segments, so it isn't the problem of termux, but android bionic linker. |
I have tried the hijack library on android 10 with termux , and I got this output:
And I have built the libs with linaro-6.3 toolchain, does anyone knows how to fix that?
The text was updated successfully, but these errors were encountered: