zfs/module/zcommon
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
..
Makefile.in OpenZFS 7431 - ZFS Channel Programs 2018-02-08 15:28:18 -08:00
zfeature_common.c Fix typos in module/ 2020-01-22 13:48:59 -08:00
zfs_comutil.c Fix pool creation with feature@allocation_classes disabled 2020-01-22 13:49:02 -08:00
zfs_deleg.c Update build system and packaging 2018-05-29 16:00:33 -07:00
zfs_fletcher.c Linux 5.0 compat: SIMD compatibility 2020-01-22 13:49:01 -08:00
zfs_fletcher_aarch64_neon.c Linux 5.0 compat: SIMD compatibility 2020-01-22 13:49:01 -08:00
zfs_fletcher_avx512.c Linux 5.0 compat: SIMD compatibility 2020-01-22 13:49:01 -08:00
zfs_fletcher_intel.c Linux 5.0 compat: SIMD compatibility 2020-01-22 13:49:01 -08:00
zfs_fletcher_sse.c Linux 5.0 compat: SIMD compatibility 2020-01-22 13:49:01 -08:00
zfs_fletcher_superscalar.c Update build system and packaging 2018-05-29 16:00:33 -07:00
zfs_fletcher_superscalar4.c Update build system and packaging 2018-05-29 16:00:33 -07:00
zfs_namecheck.c Fix typos in module/ 2020-01-22 13:48:59 -08:00
zfs_prop.c Increase allowed 'special_small_blocks' maximum value 2020-01-22 13:49:05 -08:00
zfs_uio.c Bugfix/fix uio partial copies 2020-05-12 10:53:32 -07:00
zpool_prop.c Fix typos in module/ 2020-01-22 13:48:59 -08:00
zprop_common.c Fix 'zpool list -v' alignment 2018-12-04 10:17:54 -08:00