]> granicus.if.org Git - strace/commit
powerpc: fix syscall tampering when PTRACE_GET_SYSCALL_INFO is in use
authorDmitry V. Levin <ldv@altlinux.org>
Thu, 4 Jul 2019 18:25:49 +0000 (18:25 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 4 Jul 2019 18:25:49 +0000 (18:25 +0000)
commitdbaff1e3cf82776f08099c6572dc2d79f82e87f0
tree1fe1868644bea13d616e02506a4d2d3dcf533818
parent4b31fbff61591a82b755837788c3ac7b4b4c5b41
powerpc: fix syscall tampering when PTRACE_GET_SYSCALL_INFO is in use

When PTRACE_GET_SYSCALL_INFO is in use, CCR is not loaded, so it has
to be loaded explicitly before tampering.

* linux/powerpc/set_error.c (arch_set_error, arch_set_success):
Explicitly load CCR before changing it when PTRACE_GET_SYSCALL_INFO
is in use.
* NEWS: Mention this fix.
NEWS
linux/powerpc/set_error.c