[Bug 232210] sendfile(2) doesn't percolate up issues with copyout(9) related to sbytes
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Oct 12 23:25:35 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=232210
Bug ID: 232210
Summary: sendfile(2) doesn't percolate up issues with
copyout(9) related to sbytes
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: kern
Assignee: bugs at FreeBSD.org
Reporter: yaneurabeya at gmail.com
Created attachment 198079
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=198079&action=edit
Percolate up errors from copyout(9) operation with `sbytes`
While doing some digging around the syscall, I noticed (via code inspection)
that it doesn't percolate issues with copyout back to userspace. This means
that failures to call copyout might result in incorrectly communicated values
for sbytes.
The attached patch percolates up the EFAULT issues from copyout.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list