Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 07 Nov 2020 21:17:52 +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-TlKRvt7kHs@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 #3 from commit-hook@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

--=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-TlKRvt7kHs>