From owner-svn-src-all@freebsd.org Mon Oct 26 00:59:42 2020 Return-Path: Delivered-To: svn-src-all@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 C6B0B45D70A; Mon, 26 Oct 2020 00:59:42 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from smtp-out-no.shaw.ca (smtp-out-no.shaw.ca [64.59.134.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CKGhG1LY5z4lX5; Mon, 26 Oct 2020 00:59:41 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from spqr.komquats.com ([70.67.229.168]) by shaw.ca with ESMTPA id WqrKk8B0b34axWqrLkaDb9; Sun, 25 Oct 2020 18:59:39 -0600 X-Authority-Analysis: v=2.4 cv=LvQsdlRc c=1 sm=1 tr=0 ts=5f961f7b a=7AlCcx2GqMg+lh9P3BclKA==:117 a=7AlCcx2GqMg+lh9P3BclKA==:17 a=xqWC_Br6kY4A:10 a=kj9zAlcOel0A:10 a=afefHYAZSVUA:10 a=6I5d2MoRAAAA:8 a=YxBL1-UpAAAA:8 a=EkcXrb_YAAAA:8 a=JqgKnPb5T1sKmVHZoRgA:9 a=CjuIK1q_8ugA:10 a=IjZwj45LgO3ly-622nXo:22 a=Ia-lj3WSrqcvXOmTRaiG:22 a=LK5xJRSDVpKd5WXXoEvA:22 Received: from slippy.cwsent.com (slippy [IPv6:fc00:1:1:1::5b]) by spqr.komquats.com (Postfix) with ESMTPS id 7A79E294; Sun, 25 Oct 2020 17:59:37 -0700 (PDT) Received: from slippy (localhost [127.0.0.1]) by slippy.cwsent.com (8.16.1/8.16.1) with ESMTP id 09Q0xbxt003944; Sun, 25 Oct 2020 17:59:37 -0700 (PDT) (envelope-from Cy.Schubert@cschubert.com) Message-Id: <202010260059.09Q0xbxt003944@slippy.cwsent.com> X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7.1 Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: John-Mark Gurney cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r367048 - head/lib/libc/sys In-reply-to: <202010260037.09Q0bVpN090953@repo.freebsd.org> References: <202010260037.09Q0bVpN090953@repo.freebsd.org> Comments: In-reply-to John-Mark Gurney message dated "Mon, 26 Oct 2020 00:37:31 -0000." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 25 Oct 2020 17:59:37 -0700 X-CMAE-Envelope: MS4xfAAKDz6ljAmeNOTYR4UXPN2Vt2+aAweSUarDJiCAx60wWBYx1Rh7ruRASBGNiJHfe04eo+7yuoibKoBujYOyzr88GlU3giHrgFdAdSva00i/k1R1Tppd MEfVpuF2rQIxT6QGRqIxriT14tXkFKr9tD4oIGLUj2Yf+sU/LPjQjLP6VR7pY/XtN3CW7cDlj+cd0OxhrXeKiaBbMl60dfM3YlGKcYuQbr/A37qxkdn1IsHL CjuxFg0rJgunIxH98JyQLnBz13SdpymzHqDl+nlS+qdZlSH7YZSGWzj79AzSBaelDyQdFG+IoTODklcGhhvfVw== X-Rspamd-Queue-Id: 4CKGhG1LY5z4lX5 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:6327, ipnet:64.59.128.0/20, country:CA] X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Oct 2020 00:59:42 -0000 In message <202010260037.09Q0bVpN090953@repo.freebsd.org>, John-Mark Gurney wri tes: > 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 Should we also include SEE ALSO reference to sysctl(8) or sysctl(3)? Personally I think a reference to sysctl(8) would be more apropos. > +is non-zero). > .It Bq Er ENOBUFS > The mbuf pool has been completely exhausted when writing to a socket. > .El > -- Cheers, Cy Schubert FreeBSD UNIX: Web: https://FreeBSD.org NTP: Web: https://nwtime.org The need of the many outweighs the greed of the few.