[Bug 250366] [tcp] The ioctl of socket fd should return -1 after listen to avoid misusing.
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Nov 30 09:21:13 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=250366
--- Comment #4 from commit-hook at FreeBSD.org ---
A commit references this bug:
Author: tuexen
Date: Mon Nov 30 09:21:02 UTC 2020
New revision: 368179
URL: https://svnweb.freebsd.org/changeset/base/368179
Log:
MFC r367464:
The ioctl() calls using FIONREAD, FIONWRITE, FIONSPACE, and SIOCATMARK
access the socket send or receive buffer. This is not possible for
listening sockets since r319722.
Because send()/recv() calls fail on listening sockets, fail also ioctl()
indicating EINVAL.
PR: 250366
Reported by: Yong-Hao Zou
Reviewed by: glebius, rscheff
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D26897
Changes:
_U stable/12/
stable/12/sys/kern/sys_socket.c
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the freebsd-net
mailing list