[DragonFlyBSD - Bug #2136] socketpair() doesn't free file descriptors on copyout failure

sigttou bugtracker-admin at leaf.dragonflybsd.org
Fri Oct 2 21:09:36 PDT 2026


Issue #2136 has been updated by sigttou.

Description updated

Native fix landed in `8b8ad33640`. The remaining Linux-emulation implementation was subsequently removed. -> close(?)

----------------------------------------
Bug #2136: socketpair() doesn't free file descriptors on copyout failure
http://bugs.dragonflybsd.org/issues/2136#change-14745

* Author: vsrinivas
* Status: New
* Priority: Normal
* Target version: 6.4
----------------------------------------
Hi,

sys_socketpair() has a copyout() to copy two file descriptors back to userspace;
if this copyout fails, the socketpair file descriptors are not freed.

-- vs

---Files--------------------------------
0001-linux_socketpair-Free-socketpair-file-descriptors-if.patch (936 Bytes)


-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account


More information about the Bugs mailing list