Summary: | Linuxulator sendfile does not support all file descriptors | ||||||
---|---|---|---|---|---|---|---|
Product: | Base System | Reporter: | James McLaughlin <james> | ||||
Component: | kern | Assignee: | Dmitry Chagin <dchagin> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Some People | CC: | grahamperrin, mjg, nwhitehorn | ||||
Priority: | --- | ||||||
Version: | CURRENT | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
James McLaughlin
2022-03-13 23:17:07 UTC
Patch also viewable as a PR on GitHub: https://github.com/freebsd/freebsd-src/pull/590 I just hit the same issue with the Microchip Libero FPGA software. Will attempt to triage the patch. A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=bb66c59753836cd8abb596fe316dcdb77ea66999 commit bb66c59753836cd8abb596fe316dcdb77ea66999 Author: James McLaughlin <james_mclgh.net> AuthorDate: 2023-08-17 19:57:17 +0000 Commit: Dmitry Chagin <dchagin@FreeBSD.org> CommitDate: 2023-08-17 19:57:17 +0000 linux(4): Add sendfile fallback for non-socket fds Before Linux 2.6.33, out_fd must refer to a socket. Since Linux 2.6.33 it can be any file. The patch was originally provided by James McLaughlin and adapted by me for copy_file_range. PR: 262535 Differential revision: https://reviews.freebsd.org/D34555 MFC after: 1 month sys/compat/linux/linux_socket.c | 209 ++++++++++++++++++++++++++++++++++------ 1 file changed, 177 insertions(+), 32 deletions(-) James, Nathan, are you tried latest main or releng/14.0? Done, 10x |