From nobody Fri Oct 07 11:39:39 2022 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 4MkRDX04wpz4V8Cj for ; Fri, 7 Oct 2022 11:39:40 +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 4MkRDW46Sdz3fqY for ; Fri, 7 Oct 2022 11:39:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 4MkRDW34TyzZs6 for ; Fri, 7 Oct 2022 11:39:39 +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 297BddC8032834 for ; Fri, 7 Oct 2022 11:39:39 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 297BddWc032833 for doc@FreeBSD.org; Fri, 7 Oct 2022 11:39:39 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: doc@FreeBSD.org Subject: [Bug 91149] fix man page: read(2) and write(2) can return EINVAL for unaligned access to block devices Date: Fri, 07 Oct 2022 11:39:39 +0000 X-Bugzilla-Reason: AssignedTo CC X-Bugzilla-Type: changed 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: commit-hook@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: doc@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1665142779; 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: in-reply-to:in-reply-to:references:references; bh=aX+JaUr9z/vMnQWbIOJGfEAT7kefQQNRDYix3odC64M=; b=W6fs58+0JK3qEaXQ9GIb9ClW+64jNWX/rUIOe4gPSA5taCi9JATzx0H+dTgHAF0JeTy/eu dYDCavUuzrKBrd23PaLa9cnnXSk6yH4IxYrVn2bKucnlRihxolyNUTJ7YOE+3toBqfqOe+ esn+hfnui91Av1HqkXAIqEpDPIabKc9H5yEV94QBmaMYMoTcOQBuUneJo8S5gjCdo/vDhJ vj2TjjiTIITegd1EFI/dP5pBgqxnZezpQrzWD7QkgSA/ycpfVaHJNkc+1DJQIrSIPosiJD nHAUQevIwaodxiIWULdGjJYwJxJjqaGqIZepMzKC6+WSrmWMPoWL+yxBnzH/tA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1665142779; a=rsa-sha256; cv=none; b=LuP9VkgIV56zOsbSkwRLQFVIuQ1ovC4XAkkCnz/m7mJutP7NRTrgeg716HpZXvpQIPEiD1 7xdjtS1EtHs0BSMv4OqEfCT4mMlTrUlNLBi+ZlIOtBdHGzpk59AV9BVsl+VbZmXHsD5vU8 DtZXdk65KNA3kxnuXbQtTBl7P9R8ZWu7X/wMEafTzMMr7NHl8Uf6tb8F8jpEbHheTAg/9E la7qBHuLO7CHuwMqogJuU78Ko0ss9m2Qa6fKGopIm2wjOvCf/ZxbH8JYbo3mC+mJnoOfww pNFORMq68byh5Mb5Hws6Dxs4POp5AXWhNq8PPCmMtTaFDoDQZs8l2HZ0tYLiMQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D91149 --- Comment #4 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D1c2be25f6080ee63baeae55e45761e131= 0d1b756 commit 1c2be25f6080ee63baeae55e45761e1310d1b756 Author: Benedict Reuschling AuthorDate: 2022-10-07 11:32:37 +0000 Commit: Benedict Reuschling CommitDate: 2022-10-07 11:32:37 +0000 Add extra EINVAL information about wrong block size to read(2)/write(2) The read system call will return EINVAL if the current file offset is not a multiple of the block size. This also applies to write(2). Add an entry for EINVAL about this error to both man pages. PR: 91149 Event: Aberdeen Hackathon 2022 Differential Revision: https://reviews.freebsd.org/D24617 lib/libc/sys/read.2 | 4 +++- lib/libc/sys/write.2 | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.=