]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sendfile: Explicitly ignore errors from copyout()
authorMark Johnston <markj@FreeBSD.org>
Tue, 26 Dec 2023 01:41:32 +0000 (20:41 -0500)
committerMark Johnston <markj@FreeBSD.org>
Tue, 26 Dec 2023 02:04:00 +0000 (21:04 -0500)
commitd0adc2f283ad5db6b568ca533a056c9f635551cd
treec119403a15f7b2da0b3bdb21e856a986e09c16df
parent771501e96ffd7e314c338300a351ad76d28a2f69
sendfile: Explicitly ignore errors from copyout()

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.

Reviewed by: glebius, kib
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D43129
sys/compat/freebsd32/freebsd32_misc.c
sys/kern/kern_sendfile.c