Files
mirror_zfs/module/zfs
Fabio Scaccabarozzi 590ababea2 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-05-12 10:53:32 -07:00
..
2015-01-16 14:41:26 -08:00
2017-08-14 10:36:48 -07:00
2020-01-22 13:48:59 -08:00
2019-01-17 15:25:00 -08:00
2019-05-07 15:18:44 -07:00
2020-01-22 13:48:59 -08:00
2019-05-07 15:18:44 -07:00
2018-08-15 09:53:44 -07:00
2020-01-22 13:48:59 -08:00
2020-01-22 13:48:59 -08:00
2020-01-22 13:48:59 -08:00
2020-01-22 13:48:59 -08:00
2018-05-29 16:00:33 -07:00
2020-01-22 13:48:59 -08:00
2020-01-22 13:48:59 -08:00
2020-01-22 13:48:59 -08:00
2020-01-22 13:48:59 -08:00
2020-01-22 13:48:59 -08:00
2018-05-29 16:00:33 -07:00
2017-10-11 16:54:48 -04:00
2019-05-02 16:46:04 -07:00
2015-01-16 14:41:26 -08:00
2019-03-29 09:13:20 -07:00
2020-01-22 13:48:59 -08:00
2020-01-22 13:48:59 -08:00
2020-01-22 13:49:07 -08:00
2020-01-22 13:49:07 -08:00
2020-01-22 13:49:07 -08:00
2020-01-22 13:48:59 -08:00
2020-01-22 13:48:59 -08:00
2018-03-15 10:53:58 -07:00
2010-08-31 13:41:58 -07:00
2020-01-22 13:48:59 -08:00
2020-01-22 13:48:59 -08:00
2020-01-22 13:48:59 -08:00
2020-01-22 13:49:07 -08:00
2020-01-22 13:48:59 -08:00
2020-01-22 13:48:59 -08:00
2020-05-12 10:53:32 -07:00
2019-09-25 11:27:48 -07:00
2019-09-25 11:27:48 -07:00
2020-05-12 10:53:32 -07:00
2019-09-25 11:27:48 -07:00
2020-01-22 13:48:59 -08:00
2020-01-22 13:48:59 -08:00
2019-09-25 11:27:48 -07:00
2020-05-12 10:53:32 -07:00
2020-01-22 13:49:07 -08:00
2019-09-25 11:27:47 -07:00
2020-01-22 13:48:59 -08:00
2020-01-22 13:48:59 -08:00
2020-01-22 13:48:59 -08:00
2020-01-22 13:48:59 -08:00
2020-01-22 13:48:59 -08:00
2020-05-12 10:53:32 -07:00
2020-01-22 13:48:59 -08:00
2018-05-29 16:00:33 -07:00
2020-01-22 13:48:59 -08:00
2018-05-29 16:00:33 -07:00
2018-02-13 14:54:54 -08:00
2020-01-22 13:48:59 -08:00
2020-05-12 10:53:32 -07:00
2020-01-22 13:49:04 -08:00
2020-01-22 13:48:59 -08:00
2020-01-22 13:48:59 -08:00
2018-02-09 10:08:05 -08:00
2020-01-22 13:48:59 -08:00
2018-05-29 16:00:33 -07:00