Date: Fri, 12 Oct 2018 21:18:54 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 232207] sendfile(2) missing some documented ERRORS Message-ID: <bug-232207-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D232207 Bug ID: 232207 Summary: sendfile(2) missing some documented ERRORS Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: yaneurabeya@gmail.com - Depending on file capabilities or socket capabilities and whether or not = the kernel was compiled with capabilities, sendfile can return ENOTCAPABLE:=20 - `sys_sendfile` uses copyinuio in `sendfile(..)` under the covers when rea= ding in the hdtr structure. copyinuio can fail with EINVAL for the reasons noted= in writev(2): [EINVAL] The iovcnt argument was less than or equal to 0, or greater than IOV_MAX. [EINVAL] One of the iov_len values in the iov array was negative. [EINVAL] The sum of the iov_len values in the iov array overflowed a 32-bit integer. Furthermore, it uses `kern_writev(..)` when sending the trailers at the end= of the operation, which means it's conditionally subject to the same errors as writev(2). --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-232207-227>