freebsd-nq/module/zcommon
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
..
cityhash.c Compile cityhash code into libzfs 2020-03-27 09:11:22 -07:00
Makefile.in Compile cityhash code into libzfs 2020-03-27 09:11:22 -07:00
zfeature_common.c Prefer org.openzfs for features and properties 2020-02-18 09:36:50 -08:00
zfs_comutil.c Fix "zpool add -n" for dedup, special and log devices 2020-01-06 15:40:06 -08:00
zfs_deleg.c Remove code for zfs remap 2019-06-24 16:44:01 -07:00
zfs_fletcher_aarch64_neon.c OpenZFS restructuring - move platform specific headers 2019-09-05 09:34:54 -07:00
zfs_fletcher_avx512.c Add AVX512BW variant of fletcher 2019-10-30 12:26:14 -07:00
zfs_fletcher_intel.c OpenZFS restructuring - move platform specific headers 2019-09-05 09:34:54 -07:00
zfs_fletcher_sse.c OpenZFS restructuring - move platform specific headers 2019-09-05 09:34:54 -07:00
zfs_fletcher_superscalar4.c Update build system and packaging 2018-05-29 16:00:33 -07:00
zfs_fletcher_superscalar.c Update build system and packaging 2018-05-29 16:00:33 -07:00
zfs_fletcher.c Wrap module_param_call() routines under __linux__ 2019-12-03 09:56:15 -08:00
zfs_namecheck.c Implement bookmark copying 2020-02-11 13:19:12 -08:00
zfs_prop.c Change default to overlay=on 2020-03-06 09:28:19 -08:00
zfs_uio.c Bugfix/fix uio partial copies 2020-04-01 09:48:54 -07:00
zpool_prop.c Fix typos in module/ 2019-08-30 14:32:18 -07:00
zprop_common.c Left-align index props 2020-01-31 08:55:51 -08:00