mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 19:19:32 +03:00
c9e3efdb3a
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 |
||
---|---|---|
.. | ||
cityhash.c | ||
Makefile.in | ||
zfeature_common.c | ||
zfs_comutil.c | ||
zfs_deleg.c | ||
zfs_fletcher_aarch64_neon.c | ||
zfs_fletcher_avx512.c | ||
zfs_fletcher_intel.c | ||
zfs_fletcher_sse.c | ||
zfs_fletcher_superscalar4.c | ||
zfs_fletcher_superscalar.c | ||
zfs_fletcher.c | ||
zfs_namecheck.c | ||
zfs_prop.c | ||
zfs_uio.c | ||
zpool_prop.c | ||
zprop_common.c |