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)
Sep 25 2024, 7:27 AM
Unknown Object (File)
Sep 25 2024, 6:27 AM
Unknown Object (File)
Sep 18 2024, 11:41 AM
Unknown Object (File)
Sep 18 2024, 7:16 AM
Unknown Object (File)
Sep 18 2024, 2:15 AM
Unknown Object (File)
Sep 17 2024, 3:20 AM
Unknown Object (File)
Sep 5 2024, 2:34 AM
Unknown Object (File)
Aug 31 2024, 12:41 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