[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
Sat Nov 7 21:17:53 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=250366
--- Comment #3 from commit-hook at FreeBSD.org ---
A commit references this bug:
Author: tuexen
Date: Sat Nov 7 21:17:49 UTC 2020
New revision: 367464
URL: https://svnweb.freebsd.org/changeset/base/367464
Log:
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
MFC after: 1 week
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D26897
Changes:
head/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