[PATCH v2 0/6] pidfd_getfd: fix decoder
Ákos Uzonyi
uzonyi.akos at gmail.com
Fri May 15 19:18:34 UTC 2020
From: Uzonyi Ákos <uzonyi.akos at gmail.com>
These patches fix pidfd_getfd decoder, which incorrectly assumed its
first argument being a pid, but actually that is a pidfd.
First, some functions are added to util.c, which makes the decoding possible.
Changes in v2:
Check pid validity by ">0" instead of ">=0"
Use different fd number in test
Ákos Uzonyi (6):
pathtrace.c: add getfdpath_pid
util.c: add printfd_pid
Rename print_pid_fd -> printfd_pid_tracee_ns
util.c: add pidfd_get_pid
pidfd_getfd: fix decoder
tests/pidfd_getfd.c: test decoding of targetfd
defs.h | 13 +++++++++++-
kcmp.c | 8 ++++----
pathtrace.c | 15 +++++++++++---
pidfd_getfd.c | 20 ++++++++++++------
tests/pidfd_getfd.c | 20 +++++++++++++-----
util.c | 49 ++++++++++++++++++++++++++-------------------
6 files changed, 85 insertions(+), 40 deletions(-)
--
2.26.2
More information about the Strace-devel
mailing list