From nobody Thu Sep 21 01:08:33 2023 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 4RrcjF75Cqz4vQry for ; Thu, 21 Sep 2023 01:08:33 +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 4RrcjF5yFtz4p1q for ; Thu, 21 Sep 2023 01:08:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1695258513; a=rsa-sha256; cv=none; b=aIxW1ANqoxwE/lglzqw6L0duoRl2IT26tm7268Cpc/TA6LbfYg4ZvZH52A9S9qs8/32JeN aF+OGfKl+AyWOxnA7GYRkp56VoCX78zVETDc3VjAcVgEz9EM6tWlMCFzLFpHyDgF23vz2W f/z+tkT4ilRTCgwtTHQhfrv1v1jzgdwPAsxNByLnGFlP7T20HJkHINpIE1thg8JC/w45/i sNJHRtL79LZP/n2VBGBovxsjd/z5achyNF5ak1P6gWRxt6xkz78b6oJ0JJLXbhh0jFqOEU 3fEJMf2BTVmmn1x4kV7/0E7ZyQGdS1rugtmY0rh71iH333ywbeRRACmLlC2N0w== 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=1695258513; 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=91wb/eIOgs/S7rvBrquVyr7Wplz+f21AH5K7+3YLYR4=; b=VwexFEpwRBUuNpQrTK/TU2rXmuRN5AAq6a7KE0xwrEH2pwRZzq7vogVSeeQFwtQ+gDqpw5 YgX/mXRyVTFjtEU9dSaEL2cYne02J0I5Kajpsk8cKUkv1A8osV30whI/O+SZaInjkIb401 TTiNHy0+QPhLJAL+93rPUjuEibgOPCktUCDIPWP7lHaTxQRwM886RXz2jFjIY4QO8YYHtP u4kC8gwhUgbli7qwkekZsHY0ZiTk4hMY8xwVbM1PSAegrC+kwQfNHVOeGBfQqNGj5HAXlq XvFgeKPojU57CO9sqJLUDhGFF4iy90FqYNmZGisKpXwwzOIYg/ULttpwn5GWwA== 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 4RrcjF539Hz2wL for ; Thu, 21 Sep 2023 01:08:33 +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 38L18X95062063 for ; Thu, 21 Sep 2023 01:08:33 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 38L18XU7062062 for bugs@FreeBSD.org; Thu, 21 Sep 2023 01:08:33 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 273962] copy_file_range does not work on shared memory objects Date: Thu, 21 Sep 2023 01:08:33 +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: rmacklem@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 #8 from Rick Macklem --- The most recent Linux man page for copy_file_range(2) appears to be here: https://man7.org/linux/man-pages/man2/copy_file_range.2.html In it: EINVAL The flags argument is not 0. EINVAL fd_in and fd_out refer to the same file and the source and target ranges overlap. EINVAL Either fd_in or fd_out is not a regular file. So, the current implementation appears to be Linux compatible. (The FreeBSD man page does need to be fixed for the case of EINVAL being returned for either fd not referring to regular files.) I have posted to freebsd-fs@ and we'll see whether most others think that the FreeBSD syscall should remain Linux compatible. (Which is what is noted at the end of the FreeBSD man page.) --=20 You are receiving this mail because: You are the assignee for the bug.=