HomeFreeBSD

Remove PT_GET_SC_ARGS_ALL

Description

Remove PT_GET_SC_ARGS_ALL

Reimplement bdf0f24bb16d556a5b by checking for the caller' ABI in
the implementation of PT_GET_SC_ARGS, and copying out everything if
it is Linuxolator.

Also fix a minor information leak: if PT_GET_SC_ARGS_ALL is done on the
thread reused after other process, it allows to read some number of that
thread last syscall arguments. Clear td_sa.args in thread_alloc().

Reviewed by: jhb
Sponsored by: The FreeBSD Foundation
Differential revision: https://reviews.freebsd.org/D31968

(cherry picked from commit f575573ca57716395ad88b962388a55d755cf6a7)

Details

Provenance
kibAuthored on Sep 15 2021, 1:24 PM
traszCommitted on Feb 21 2022, 1:34 PM
Reviewer
jhb
Differential Revision
D31968: Remove PT_GET_SC_ARGS_ALL
Parents
rG8371bf67d632: linux: implement PTRACE_GET_SYSCALL_INFO
Branches
Unknown
Tags
Unknown