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

Details

Provenance
kibAuthored on Sep 15 2021, 1:24 PM
Reviewer
jhb
Differential Revision
D31968: Remove PT_GET_SC_ARGS_ALL
Parents
rG181bfb42fd01: vm_phys: do not ignore phys_avail[] segments that do not fit completely into…
Branches
Unknown
Tags
Unknown