Open DavidBuchanan314 opened 4 years ago
The suggested way to drop vdso in the linked gist doesn't work for me. What does work for me is using dlopen to open novdso.so with the flags RTLD_NOW
and RTLD_DEEPBIND
. This is just a workaround that allows the same LD_PRELOAD "trick" to work at the library (rather than user) level.
@maxbla I have a fix to this I will post later today inspired by the gist, so there is no need for novdso.so anymore. The reason it probably didn't work for you is because you've modified vsdo of the tracer, not the tracee, so I fixed it with some ptrace
magic.
As described here: https://news.ycombinator.com/item?id=14200889