From owner-svn-src-head@freebsd.org Mon Oct 26 00:37:32 2020 Return-Path: Delivered-To: svn-src-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 424AE45D03A; Mon, 26 Oct 2020 00:37:32 +0000 (UTC) (envelope-from jmg@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CKGBh0jrKz4kPK; Mon, 26 Oct 2020 00:37:32 +0000 (UTC) (envelope-from jmg@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id F0E7A12447; Mon, 26 Oct 2020 00:37:31 +0000 (UTC) (envelope-from jmg@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 09Q0bVDC090954; Mon, 26 Oct 2020 00:37:31 GMT (envelope-from jmg@FreeBSD.org) Received: (from jmg@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 09Q0bVpN090953; Mon, 26 Oct 2020 00:37:31 GMT (envelope-from jmg@FreeBSD.org) Message-Id: <202010260037.09Q0bVpN090953@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jmg set sender to jmg@FreeBSD.org using -f From: John-Mark Gurney Date: Mon, 26 Oct 2020 00:37:31 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r367048 - head/lib/libc/sys X-SVN-Group: head X-SVN-Commit-Author: jmg X-SVN-Commit-Paths: head/lib/libc/sys X-SVN-Commit-Revision: 367048 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Oct 2020 00:37:32 -0000 Author: jmg Date: Mon Oct 26 00:37:31 2020 New Revision: 367048 URL: https://svnweb.freebsd.org/changeset/base/367048 Log: update write(2)'s iovec limit w/ info about the iosize_max_clamp sysctl... Modified: head/lib/libc/sys/write.2 Modified: head/lib/libc/sys/write.2 ============================================================================== --- head/lib/libc/sys/write.2 Sun Oct 25 23:26:07 2020 (r367047) +++ head/lib/libc/sys/write.2 Mon Oct 26 00:37:31 2020 (r367048) @@ -28,7 +28,7 @@ .\" @(#)write.2 8.5 (Berkeley) 4/2/94 .\" $FreeBSD$ .\" -.Dd March 30, 2020 +.Dd October 25, 2020 .Dt WRITE 2 .Os .Sh NAME @@ -240,9 +240,13 @@ array was negative. .It Bq Er EINVAL The sum of the .Fa iov_len -values in the -.Fa iov -array overflowed a 32-bit integer. +values is greater than +.Dv SSIZE_MAX +(or greater than +.Dv INT_MAX , +if the sysctl +.Va debug.iosize_max_clamp +is non-zero). .It Bq Er ENOBUFS The mbuf pool has been completely exhausted when writing to a socket. .El