[PATCH 0/2] Use __scm_install_fd() more widely

From: Kees Cook
Date: Wed Jun 10 2020 - 00:52:51 EST


Hi,

This extends the recent work hch did for scm_detach_fds(), and updates
the compat path as well, fixing bugs in the process. Additionally,
an effectively incomplete and open-coded __scm_install_fd() is fixed
in pidfd_getfd().

Thanks!

-Kees

Kees Cook (2):
net/scm: Regularize compat handling of scm_detach_fds()
pidfd: Replace open-coded partial __scm_install_fd()

include/net/scm.h | 1 +
kernel/pid.c | 12 ++---------
net/compat.c | 55 +++++++++++++++++++++--------------------------
net/core/scm.c | 43 +++++++++++++++++++++++-------------
4 files changed, 56 insertions(+), 55 deletions(-)

--
2.25.1