]> granicus.if.org Git - strace/commit
upoke: workaround crippled x32
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 5 Dec 2018 18:37:34 +0000 (18:37 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 5 Dec 2018 18:37:34 +0000 (18:37 +0000)
commit5be511bf862faca836862d0f06c0bcb4f3f41f27
tree397ad64219fabd615efe0518b8d8b7cf4d7eb2ab
parent1f84eefc409291354d0dc7db0866eaf27967da42
upoke: workaround crippled x32

As PTRACE_POKEUSER is crippled on x32 by design from the very first
linux kernel commit v3.4-rc1~33^2~2 when it was introduced,
workaround this by using the raw x86_64 syscall instead.

* linux/ptrace_pokeuser.c: New file.
* linux/x32/ptrace_pokeuser.c: Likewise.
* Makefile.am (EXTRA_DIST): Add them.
* upoke.c: Include "ptrace_pokeuser.c".
(upoke): Use ptrace_pokeuser instead of ptrace.
Makefile.am
linux/ptrace_pokeuser.c [new file with mode: 0644]
linux/x32/ptrace_pokeuser.c [new file with mode: 0644]
upoke.c