From nobody Sat Feb 10 09:43:35 2024 X-Original-To: dev-commits-src-all@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 4TX5Q01VSjz59LsW; Sat, 10 Feb 2024 09:43:36 +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 4TX5Q010g8z4cqC; Sat, 10 Feb 2024 09:43:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707558216; 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=BH2D7rWDBkpca7GTZLzTIIuoiKkTB/JOchn5cbjtxss=; b=G54moy4kVu1qp0dS2BXMs+uEf6RFIGHDJLXwxtqgjTQw7cxqTwrKDrVHfo/Fmx1PCxiwk3 Qkil/hVn9H5fWtZdW5wAt0r7YxS6wvzIwr1uRQ2TGKvr7jUrfnNketysZGrVHPATHWUBIX E4fh1Cmc10OPeWVXNyYJHIsHK7qcCDg0VE8b1uSTjICAUiIGeIP7gQmGdCKdzCn/IhEuaf WESHR1Z2n4iOptrNLt8n3cwMEifvKlmIPgiElzCnQeM+p9iCSIczJVR2/WHuOCnTpkT67l 4PZyS/fJSsrPlFmDZZo0q3IJ3u9zyT7MtiRPaKRmWUMCDiGMxb2J8mWExytA4w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707558216; a=rsa-sha256; cv=none; b=J2X9xexdUDVC5DtgRmBwDqBOO6ySY4MvyUpa58V+wPsgSY5R5OcvqGkXuGCuKAPgGhyPoU p2W7p2TtlaTg16B5dB5kX8QonC3fbOTLYbAkSB49cDghoj5R37U88HgJNZ6+jaiLSXuA3j W1aKEHdr3GDyWDRJmBE8/zaCNF9dZ47Mr09MNUI10IP0HZ3Y38gnvFf9VB7NzlYX3U/Bgx g+Hi3RV197O4l+7STxrK4t6V2Vh2SJSbEbwdQ7KQmaOGYZkqxqOkBZkni2rzmwZh9b8xz9 vRAYWgefvI7p9t9HKMIK2id+YMqjqDVs7iFUE80PJVtGElrlmAhgs37i/4B2Wg== 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=1707558216; 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=BH2D7rWDBkpca7GTZLzTIIuoiKkTB/JOchn5cbjtxss=; b=Uri3P7zDJk415COnG1dEs/L7G5e4p5DC+i5Ghqovv6p1KGEfXWUpIJZVXxY0uy7qIoUQPK klWLZwtjKcvqcdyThSLoQpWZIYT9LRultr3HOJltjo+ZWc0gkDxflznqBtcW+jxhIiZQj/ bu7MrhL+6CXxCjfx/T8Pwl4FZ7IMvLDwtZkmvtdpdiaPizoLoCXK3i4rDHEjXZsNJzI1WT 7NJoG89rWUjpZSGIlOa+aiaP0zdAU/KBOag/cVSX4wTIWJ6wl8uZmdCjCb9nqPmzExP0LM HxDvuBRlo5hOL5xULBJ7BW43325CAH8lTCzOu86W29XMEKq09Yf6/KAZoHSRQw== 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 4TX5Q006bNz1BMQ; Sat, 10 Feb 2024 09:43:36 +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 41A9hZHG061122; Sat, 10 Feb 2024 09:43:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41A9hZln061119; Sat, 10 Feb 2024 09:43:35 GMT (envelope-from git) Date: Sat, 10 Feb 2024 09:43:35 GMT Message-Id: <202402100943.41A9hZln061119@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 3e9515846f8c - main - read.2: Describe debug.iosize_max_clamp List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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/main X-Git-Reftype: branch X-Git-Commit: 3e9515846f8cbff0ecccaab65d9f70890d04429e Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=3e9515846f8cbff0ecccaab65d9f70890d04429e commit 3e9515846f8cbff0ecccaab65d9f70890d04429e Author: Konstantin Belousov AuthorDate: 2024-02-10 09:40:07 +0000 Commit: Konstantin Belousov CommitDate: 2024-02-10 09:43:29 +0000 read.2: Describe debug.iosize_max_clamp same as it is done for write.2. PR: 276937 Reported by: bugs.freebsd.org@masklinn.net Sponsored by: The FreeBSD Foundation MFC after: 1 week --- lib/libsys/read.2 | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/lib/libsys/read.2 b/lib/libsys/read.2 index d18584a4fa55..94644045afc1 100644 --- a/lib/libsys/read.2 +++ b/lib/libsys/read.2 @@ -25,7 +25,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd June 4, 2020 +.Dd February 10, 2024 .Dt READ 2 .Os .Sh NAME @@ -220,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, @@ -246,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