From nobody Thu Jan 11 01:15:27 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 4T9RYW22Pwz56gMN for ; Thu, 11 Jan 2024 01:15:27 +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 4T9RYV6NGxz4QkQ for ; Thu, 11 Jan 2024 01:15:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704935726; 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=1c6kwGtADZzmwliw9kfvx9Am51e4p70RMzZy8uVLV8A=; b=plaEK9FvKUkzacqhz5kDshCXtfwualNlPZL7Ejid8REaiz4P6a4vZzZhXnf2aYf/c6RpE6 dQ/p0Efxg5dubR1y/AdrLZHfh3HzweGD8FgqadMu10DC+K1C8nIEZYwhgR5Sfx6adegWYC aSFZkPCgeYUrZAf+/oyhNwadBG6HQOYNh4tyOjF3AIJiqOZHUF6/PjwkSzSiEWW76h9ldb RslcJK630v5B0CQKhVzKYFr1UWT6uo0I+c58AiIl9evJRl0bYQnFL6UK0Z63aPKd5cFOVk mt3Q2b67deedDAd9PQUPrdIQsWHez6TNpjFq0ZYGzXYlOO1sZv4R64oB/vlRKA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704935726; a=rsa-sha256; cv=none; b=Dmz7dzi4hBXfDJ37ZMfo52NX+czjmOEnnsYJWRAUptcrE6eV84mSOC95GGvFKHB2LlisaW ppTC0X7J5mKtdjGusioM+O+xbp45tJ0oV8qI2Hwq9UDBJ1B9r9XoBd/xGdsXutaCawM/hI b1fERAmb9/2UpAW4wagfXYSNCH8ebGZFv5pwRF8snv8EM+ck1WHCGqB9Wige5w8fUSgtiA CWwf5p2/E9W2vswM8o50B5c/IeeiztnVwkxZWIYQmTZ/5UfNvqmpZky/N6pJPb6LVH12B7 xIsM4XYhHW/QNRMwqKgT0gaFfrORETACsQNU+jlTpvbn/uTJ6TD86YZggRAcjg== 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 4T9RYV5R9vzygq for ; Thu, 11 Jan 2024 01:15:26 +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 40B1FQSA057994 for ; Thu, 11 Jan 2024 01:15:26 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 40B1FQMH057993 for bugs@FreeBSD.org; Thu, 11 Jan 2024 01:15:26 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: bugs@FreeBSD.org Subject: [Bug 273962] copy_file_range does not work on shared memory objects Date: Thu, 11 Jan 2024 01:15:27 +0000 X-Bugzilla-Reason: AssignedTo 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: needs-patch X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@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: 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=3D273962 --- Comment #14 from commit-hook@FreeBSD.org --- A commit in branch stable/14 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D5c4da68ad785e955976e7b73c281213ab= b85c23a commit 5c4da68ad785e955976e7b73c281213abb85c23a Author: Rick Macklem AuthorDate: 2023-12-29 22:59:00 +0000 Commit: Rick Macklem CommitDate: 2024-01-11 01:13:23 +0000 copy_file_range.2: Clarify that only regular files work PR#273962 reported that copy_file_range(2) did not work on shared memory objects and returned EINVAL. Although the reporter felt this was incorrect, it is what the Linux copy_file_range(2) syscall does. Since there was no collective agreement that the FreeBSD semantics should be changed to no longer be Linux compatible, copy_file_range(2) still works on regular files only. This man page update clarifies that. If, someday, copy_file_range(2) is changed to support non-regular files, then the man page will need to be updated to reflect that. PR: 273962 (cherry picked from commit 84b4342c0d7ac8a3187309a978d41e6765154cc1) lib/libc/sys/copy_file_range.2 | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=