Page MenuHomeFreeBSD

sendfile: Explicitly ignore errors from copyout()
ClosedPublic

Authored by markj on Dec 20 2023, 1:01 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 9, 2:30 AM
Unknown Object (File)
Sep 20 2025, 8:05 AM
Unknown Object (File)
Sep 8 2025, 6:12 AM
Unknown Object (File)
Sep 4 2025, 5:25 AM
Unknown Object (File)
Aug 30 2025, 11:11 AM
Unknown Object (File)
Aug 19 2025, 12:29 AM
Unknown Object (File)
Aug 18 2025, 1:11 PM
Unknown Object (File)
Aug 13 2025, 4:10 AM
Subscribers

Details

Summary

There is a documented bug in sendfile.2 which notes that sendfile(2)
does not raise an error if it fails to copy out the number of bytes
written. Explicitly ignore the error from copyout() calls in
preparation for annotating copyout() with __result_use_check.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable