Fabio Scaccabarozzi c9e3efdb3a
Bugfix/fix uio partial copies
In zfs_write(), the loop continues to the next iteration without
accounting for partial copies occurring in uiomove_iov when 
copy_from_user/__copy_from_user_inatomic return a non-zero status.
This results in "zfs: accessing past end of object..." in the 
kernel log, and the write failing.

Account for partial copies and update uio struct before returning
EFAULT, leave a comment explaining the reason why this is done.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: ilbsmart <wgqimut@gmail.com>
Signed-off-by: Fabio Scaccabarozzi <fsvm88@gmail.com>
Closes #8673 
Closes #10148
2020-04-01 09:48:54 -07:00
..
2020-03-27 09:11:22 -07:00
2020-03-27 09:11:22 -07:00
2019-06-24 16:44:01 -07:00
2020-02-11 13:19:12 -08:00
2020-03-06 09:28:19 -08:00
2020-04-01 09:48:54 -07:00
2019-08-30 14:32:18 -07:00
2020-01-31 08:55:51 -08:00