From nobody Wed Feb 14 04:05:32 2024 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TZPk43Fbrz59rK9; Wed, 14 Feb 2024 04:05:32 +0000 (UTC) (envelope-from git@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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZPk41sbxz49sw; Wed, 14 Feb 2024 04:05:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707883532; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=u4jZEJXeyV/6uzJvxtEl6Y+ViQ1bbYSPRFpKrJo9G0E=; b=KvMUpPDhFnTyYN3+1AZmwMB9YqjbO1xgo/UHL978BWVJxUZHxoktzPKzGJ/6TBDNW+WK/i R3yW0pJoV9paBmDy4F2klRFFIZPkplXPXzgcXUs0M8KttqJ1tjjtu46p0jrtT5TAjFLc8g PbOMgCspbUa4ZULuEoV+FBZAEmEVtD8L5i2zhZ4nS/lurJGax4Bmpi8x/iLekJvAWBToHe ZK6b58UpcsEZweGowXWwMiHMeW84rrNGMUcz14MdexlZHjhkTsecOpDu+Lm5oOhEWSnbxQ 8KDOinXI1d7k9lNuD/0HZf3OpuSL4mBx6hltU/yIIc+9NP9XMEPze48Qp6xxOg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707883532; a=rsa-sha256; cv=none; b=GUIQu/J684aT957eGfblKEPiM/Q8hpWfoql1ip19BZstSeXL+X+5Ig482VPQRpIs7C+VmT W9ycxnEcthaUjSpQodL/5QosO9Is0y01qlj3FDbSJbdAHg6ay8NHb3vFx5nsuvIyhLZmRp pXY9REU0RQGidxkaQ30AsjeTEJvbJsOfczN8RbG07uKN82LhvelIMSqbGzSuq1Lyq9CA8Y G6Bqfy3UPRgZHoi7BCIJOGp3Nze75qaNq0NFNmjhKomNWWSrGSB4c2Umww7Q/JV4Tqn5q8 k+tmFVZCN1cfqcy/7B8xW2JdLTOyoVv5NpXFr/8C7u8za4SJ7Kuo+7aGNa7E/Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707883532; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=u4jZEJXeyV/6uzJvxtEl6Y+ViQ1bbYSPRFpKrJo9G0E=; b=eWMHICs+OqU9kZcgFGgTZdMwfJ++5nKwRpvAkQLyJ/yQd0JSGr1DrrafOr9z7P05sP8aex 0MdCkd3gNQRu0wNJgQqUnwrayJMxiqVFXU2NsVTO+qd1PhAELVaj1fgObec+Jk33hyPfYB RthAULrSoAKdZB2+4oMQeSYKt7X7Ix39qcI2zn5HUe7kDYvNFGaa+bqyv+jx254V9M23TF k1IZkZ8q5oxBEuV3feqdgd/+VVeGn+Cyb2eF40Cqp4Q6L92mrSN3HfYZ9A5PGudhrl0oxn wi5y2nam0cUmlKpTX6ppCbglqgh2MJT5UcPuFd9KalL8Ydq9GRyeJtucoq9SoA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TZPk40wxWzkBB; Wed, 14 Feb 2024 04:05:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41E45W0K082264; Wed, 14 Feb 2024 04:05:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41E45Wmk082262; Wed, 14 Feb 2024 04:05:32 GMT (envelope-from git) Date: Wed, 14 Feb 2024 04:05:32 GMT Message-Id: <202402140405.41E45Wmk082262@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: 42667ceb9d00 - stable/13 - read.2: Describe debug.iosize_max_clamp List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 42667ceb9d0026f7d1e5f95297b942af576cd929 Auto-Submitted: auto-generated The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=42667ceb9d0026f7d1e5f95297b942af576cd929 commit 42667ceb9d0026f7d1e5f95297b942af576cd929 Author: Konstantin Belousov AuthorDate: 2024-02-10 09:40:07 +0000 Commit: Konstantin Belousov CommitDate: 2024-02-14 03:54:00 +0000 read.2: Describe debug.iosize_max_clamp PR: 276937 (cherry picked from commit 3e9515846f8cbff0ecccaab65d9f70890d04429e) --- lib/libc/sys/read.2 | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/lib/libc/sys/read.2 b/lib/libc/sys/read.2 index e3b5b21d1c31..94644045afc1 100644 --- a/lib/libc/sys/read.2 +++ b/lib/libc/sys/read.2 @@ -25,9 +25,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" @(#)read.2 8.4 (Berkeley) 2/26/94 -.\" -.Dd June 4, 2020 +.Dd February 10, 2024 .Dt READ 2 .Os .Sh NAME @@ -222,7 +220,12 @@ for this file system. The value .Fa nbytes is greater than -.Dv INT_MAX . +.Dv SSIZE_MAX +(or greater than +.Dv INT_MAX , +if the sysctl +.Va debug.iosize_max_clamp +is non-zero). .El .Pp In addition, @@ -248,7 +251,13 @@ The sum of the .Fa iov_len values in the .Fa iov -array overflowed a 32-bit integer. +array 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 EFAULT Part of the .Fa iov