From nobody Sat Feb 10 08:54:29 2024 X-Original-To: bugs@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 4TX4KK4PHvz59Gyp 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 4TX4KK1Wpzz4VMN 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=rvtgd08dc17BcBJD8xsnAJuZeyH3E0eLPkAVcXYpzTL0zDEK2O3RmFUXJHNPsoLFpzZWRj Kh4gXdPZ7wnVH+LrQvNEgMz0nRE0sOUP+gAbMP05Iz7tBDEOv7C6RTcqrmQScJUOjZvnOg 8R403fHTKDiw16CNdMzqmR5jLPoewt/Ad9y0LPJp8Hy8NdF9xXe0a/80t+JESrrgPV0qhc Mupq5jToL2mjvHUIWrSRovcFs4ASDnD5JMAKVmBvvH9ORA24+ANoltAWRSTkLhXLIXRTpB jmRzIrh/Shtt0YYU5Bkr1+7UWFnJTZIuVka6lBlVSutQgOW/CKm6UhvEMeo+jg== 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=Izh3tU/qh1/8BpGgKWMGjatNy6Dv6xG7fTGeqdWWMEA=; b=vHcdXRCv0at4zbKb42vEHNiLyB4HB0B5X0Lg5gPWHolv4TclFXkRJ1oTybZfORIZMM15pl leLbHDBI08PJMSMZySkfcRb/7Jc7aGM6cWV6AvVR9XqHeQInnaQ97JH1SIRrPoFVPFvxmA CbPreo/x4sCKf/Ag8SLpVPP4QJxcJOoKu2S3sNs8YHcO45iBjXBAnmIyWKYXeRgAT+eU+H ahUBPMVjIhHPiiSwfNJcNCCz3hfhUnHZGbfljRveYmLvwBBnvzzXh9HKMvEJm31DjvJ4Bm ZS80iTyfg9IrSAQXscXOQWoXW9fChcoao7MTIDayWxXaowcSh+8qQDjTYvjwKA== 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 4TX4KK0Tkmz196f for ; Sat, 10 Feb 2024 08:54:29 +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 41A8sTU9011458 for ; Sat, 10 Feb 2024 08:54:29 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 41A8sTKh011456 for bugs@FreeBSD.org; Sat, 10 Feb 2024 08:54:29 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: bugs@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: AssignedTo 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: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@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 the assignee for the bug.=