[Bug 131876] [socket] FD leak by receiving SCM_RIGHTS by recvmsg with small control message buffer

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Jul 31 00:48:20 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=131876

--- Comment #6 from commit-hook at freebsd.org ---
A commit references this bug:

Author: markj
Date: Tue Jul 31 00:48:08 UTC 2018
New revision: 336957
URL: https://svnweb.freebsd.org/changeset/base/336957

Log:
  Add a regression test related to PR 131876.

  If an error occurs while copying a SCM_RIGHTS message to userspace,
  we free the mbuf containing externalized rights, leaking them.

  PR:           131876
  MFC after:    1 week
  Sponsored by: The FreeBSD Foundation

Changes:
  head/tests/sys/kern/unix_passfd_test.c

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-net mailing list