From nobody Sat Feb 10 08:54:29 2024 X-Original-To: doc@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 4TX4KK1w8tz59H1t for ; Sat, 10 Feb 2024 08:54:29 +0000 (UTC) (envelope-from bugzilla-noreply@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 4TX4KK0k3Vz4VPV for ; Sat, 10 Feb 2024 08:54:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707555269; a=rsa-sha256; cv=none; b=MOUiuTdG2EIpawuZ8vQDGySiiExqiII54sPjBJ7zVFne0GxCO8s2w0X6VsIH9JSezWmJPh RXwXNLy3yY5Y/O+klvOnf5U+oe7WUEev/n0GdHVuT90yqGciT4cwvsHmd2ZHKlFoUhJFsT dQaGMr0zJ9ZluThyPgwrg5LKbG+hIWeq8mDrxI3hpfVu4bAhzA6MiIhgAsTeXGi7GG1bQ5 QSe3SGoBWcn2iMP83AkjIveumXabj9UQzHtC4kbfb5t5bjbCxWD9Qh+JkvtP3YqbWKUz9E +DQbBgnu8dTiIB4l9EV3UZ84HxW10z1NInT/G0xn0GfFMYK5oPtWw3QoAw08nQ== 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=1707555269; 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=YQQbyqKLnAahByNFRJAcrjoUBVpxkfV+XqF/SHdn2i0=; b=Oh2t5On9/sFAg2StexcXBuWYBP8HUuX+ZCNAtiJqm96SD5TeT98NWqxmCtBhG7u+s/1Gi6 MYdhftBBAb8un5AnjmnjKTd0Lt626C5+uXd/cs7JmIrrzvwb0KuDycnxRJUqAtXE8bnjYF biKuNwdvoeEQxufzPmtC+RZ0qzZw1qfYKzLIUE1For+ob3/QsxFTvdetcIReEnsxdS+Kb4 lZ/cHdLcEkJNWESVwN3JpYBzjpkUKuzQI+EyWcpMkWJm5uItPuuOk5WUHH61gPsBENrMD/ kvhC8N0bqYI0rhWgfkLR3oj8JMOXDjPFMzOQ6lpyxMT8+PaYwgz7PCea8pApuA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 4TX4KJ6tqyz18Wn for ; Sat, 10 Feb 2024 08:54:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 41A8sSTo011452 for ; Sat, 10 Feb 2024 08:54:28 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 41A8sSG2011451 for doc@FreeBSD.org; Sat, 10 Feb 2024 08:54:28 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: doc@FreeBSD.org Subject: [Bug 276937] read(2) is documented as returning EINVAL on reads above INT_MAX Date: Sat, 10 Feb 2024 08:54:29 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Documentation X-Bugzilla-Component: Manual Pages X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: bugs.freebsd.org@masklinn.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Documentation project List-Archive: https://lists.freebsd.org/archives/freebsd-doc List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-doc@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276937 Bug ID: 276937 Summary: read(2) is documented as returning EINVAL on reads above INT_MAX Product: Documentation Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Manual Pages Assignee: bugs@FreeBSD.org Reporter: bugs.freebsd.org@masklinn.net CC: doc@FreeBSD.org The man page for read(2) says: > [EINVAL] The value nbytes is greater than INT_MAX. the man page for write(2) says: > [EINVAL] The value nbytes is greater than SSIZE_MAX (or greater than INT_= MAX, if the sysctl debug.iosize_max_clamp is non-zero). Experimentally, it looks like the behaviour of read(2) is identical to that= of write(2) (though I have not cared to try setting the sysctl). I assume when IO limitations were relaxed and the sysctl was added, man rea= d(2) was missed and never updated. --=20 You are receiving this mail because: You are on the CC list for the bug.=