[Bug 273962] copy_file_range does not work on shared memory objects

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 20 Sep 2023 11:01:22 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273962

            Bug ID: 273962
           Summary: copy_file_range does not work on shared memory objects
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: theraven@FreeBSD.org

Using copy_file_range to copy files from anonymous shared memory objects
returns EINVAL.  This is not one of the reasons for failure documented in the
man page.  Ideally there should be a fallback path that works for any kind of
file descriptor, but if the system call works for a limited subset of file
descriptor types then the ones for which it does work should be documented in
the manual.

-- 
You are receiving this mail because:
You are the assignee for the bug.