Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Nov 2020 09:21:07 +0000
From:      bugzilla-noreply@freebsd.org
To:        net@FreeBSD.org
Subject:   [Bug 250366] [tcp] The ioctl of socket fd should return -1 after listen to avoid misusing.
Message-ID:  <bug-250366-7501-UAtc9ccTgw@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-250366-7501@https.bugs.freebsd.org/bugzilla/>
References:  <bug-250366-7501@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D250366

--- Comment #4 from commit-hook@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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-250366-7501-UAtc9ccTgw>