[Bug 4035] New: Make copy_range work when /proc fails to detect

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Thu Oct 15 04:33:56 AEDT 2026


https://bugzilla.mindrot.org/show_bug.cgi?id=4035

            Bug ID: 4035
           Summary: Make copy_range work when /proc fails to detect
           Product: Portable OpenSSH
           Version: 10.5p1
          Hardware: ARM64
                OS: Linux
            Status: NEW
          Severity: trivial
          Priority: P5
         Component: Build system
          Assignee: unassigned-bugs at mindrot.org
          Reporter: tristan.ross at determinate.systems

Created attachment 4004
  --> https://bugzilla.mindrot.org/attachment.cgi?id=4004&action=edit
Patch

Discovered a case where the configure.ac doesn't detect `/proc/$$/fd`
in certain cases and causes `closefrom` to use the `closefrom_fallback`
which is not performant. I've made a patch which uses `close_range` in
the last `closefrom`, this restores the performance regression I
noticed.

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


More information about the openssh-bugs mailing list