[strace/strace] Add 64-bit LoongArch support (PR #205)
Dmitry V. Levin
notifications at github.com
Sun Jan 23 13:29:28 UTC 2022
On Sun, Jan 23, 2022 at 05:02:02AM -0800, Huacai Chen wrote:
> > On Sun, Jan 23, 2022 at 02:49:27AM -0800, Huacai Chen wrote: I'm sorry that we still have to export orig_a0, because the current solution cannot let ptrace to modify arg0 and return value at the same time.
> > What ptracers usually do is tampering with the syscall number and/or its arguments on entering syscall and tampering with the return value on exiting syscall. Tampering with the return value on entering syscall is not reliable as it is not supported by all linux architectures. That is, I don't see why the change is necessary.
>
> Could you please see tools/testing/selftests/seccomp/seccomp_bpf.c in kernel?
> TRACE_syscall.ptrace.syscall_errno and TRACE_syscall.ptrace.syscall_faked fails with the current solution.
I see, the fix for ptrace caused a regression in seccomp.
--
Reply to this email directly or view it on GitHub:
https://github.com/strace/strace/pull/205#issuecomment-1019485923
You are receiving this because you are subscribed to this thread.
Message ID: <strace/strace/pull/205/c1019485923 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20220123/9b6644b4/attachment.htm>
More information about the Strace-devel
mailing list