From nobody Wed Sep 20 21:48:22 2023 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 4RrXGH3DVCz4vD4X for ; Wed, 20 Sep 2023 21:48:23 +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 4RrXGH1S9lz4Swx for ; Wed, 20 Sep 2023 21:48:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1695246503; a=rsa-sha256; cv=none; b=AnwRCLW/s3yArII0w0uQ+xuge+wy7Dn4yYd614ZGL/iZHghWTL8Kih65o4isZAUeD1GbP0 LcWC7xtnGZ55zZmxWZWCWNfdeSs1HUgOTvSq6KkBps3aWTgh87SeRbk8qlFQlTb6uyKq+m DnpDRYRrbSOJxfZ/ZYRxdR8T0XIrQrzkjMt1z1f3tu0K8WCNXzdjQdsI1g2JbRwyjj1TVI GQJ4p0oVNDlQEwfHYk/Nl4VWM/RzuEk0BerlKR2y0k6EUpaf+Uk3G0pctGCIVE3XSSyyvm 57XE8jIoTf5Fm0/ecDugAsHtfjvcDSqzr3xXRQggOKdqopxgc4kOWHicATt8JQ== 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=1695246503; 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=SJocMi2wLwQaCbDH+5EMHRdfvRJaFStFujhVEAO45x0=; b=uzys3SAmCykjBYNrbs5wj+nOj8FaJW5WoylKS7uE+tOo7j0xFOZKJ9VCivnTF7aykE098y w7BMQZePlMDXG32zgWcqSgOVJ+Zy3T5DXnJc32hOsXrJn8cgRd83q20Wu/zHylZjLqV9dx GJXmPDSV7/xoTfix/HpQCzdRcCqll8fcAD0C6hLJip34/KaC3B1safhOmKPUmGb0DTMsHP jRRzOPda25/7ViBQleytOcbFZGqYwB0DM5UCo5AC+2l3IR9+5Un/zWqP0qgpSQQXIyn4Nl BjQ7OxPQw1crTFslIxLJuCV7ZE1mELdtADv0iK3nJT3/B7lwd5uPWioXQGxfxg== 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 4RrXGH0Xjkz1Brl for ; Wed, 20 Sep 2023 21:48:23 +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 38KLmNrM062856 for ; Wed, 20 Sep 2023 21:48:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 38KLmNBr062855 for doc@FreeBSD.org; Wed, 20 Sep 2023 21:48:23 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 273962] copy_file_range does not work on shared memory objects Date: Wed, 20 Sep 2023 21:48:22 +0000 X-Bugzilla-Reason: 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: 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: 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=3D273962 --- Comment #7 from Rick Macklem --- Now that I have taken a quick look, doing the shared memory fallback will be quite a bit of work, given the range locking stuff. Something like: - Define a new f_op (f_copy_file_range()). - Factor most of the contents of kern_copy_file_range() out into a vn_fileop_copy_file_range(). - Call the new f_op from kern_copy_file_range() - Write a shm_copy_file_range() f_op that is similar to the vnode one, but uses the shmfd stuff for rangelocking and then does the copying (via memcpy() in some sort of loop or maybe uiomove() needs to be used?). - I am not sure what this last step requires. Not that big a deal, but not that easy. --=20 You are receiving this mail because: You are on the CC list for the bug.=