diff options
author | Fabio Scaccabarozzi <[email protected]> | 2020-04-01 18:48:54 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2020-04-01 09:48:54 -0700 |
commit | c9e3efdb3a6111b9795becc6594b3c52ba004522 (patch) | |
tree | 2f30f12152f56253f8299d911eab3d7536cd2038 /man/man8/zfs-wait.8 | |
parent | 0929c4de398606f8305057ca540cf577e6771c30 (diff) |
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 <[email protected]>
Reviewed-by: ilbsmart <[email protected]>
Signed-off-by: Fabio Scaccabarozzi <[email protected]>
Closes #8673
Closes #10148
Diffstat (limited to 'man/man8/zfs-wait.8')
0 files changed, 0 insertions, 0 deletions