mbox series

[v1,net-next,0/2] af_unix: Followup fixes for SO_PASSPIDFD.

Message ID 20230627174314.67688-1-kuniyu@amazon.com
Headers show
Series af_unix: Followup fixes for SO_PASSPIDFD. | expand

Message

Kuniyuki Iwashima June 27, 2023, 5:43 p.m. UTC
This series fixes 2 issues introduced by commit 5e2ff6704a27 ("scm: add
SO_PASSPIDFD and SCM_PIDFD").

The 1st patch fixes a warning in scm_pidfd_recv() reported by syzkaller.
The 2nd patch fixes a regression that bluetooth can't be built as module.


Alexander Mikhalitsyn (1):
  net: scm: introduce and use scm_recv_unix helper

Kuniyuki Iwashima (1):
  af_unix: Skip SCM_PIDFD if scm->pid is NULL.

 include/net/scm.h  | 39 ++++++++++++++++++++++++++++-----------
 net/unix/af_unix.c |  4 ++--
 2 files changed, 30 insertions(+), 13 deletions(-)