commit | 3c2fcfcb6858585e9df6c7832464ab28bfb5bb6b | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Thu Oct 08 18:00:26 2015 -0400 |
committer | Mike Marshall <hubcap@omnibond.com> | Fri Nov 13 11:21:37 2015 -0500 |
tree | 1c35be5e310aab0502a29141ed00315173bf238b | |
parent | a5c126a52269ce304b6da95e980e595668bf467d [diff] |
orangefs: make wait_for_direct_io() take iov_iter incidentally, insane or compromised server returning *more* than requested on read should not oops the kernel - initialize the iov_iter for read according to the iovec we've got. That's why pvfs_bufmap_copy_to_iovec() needed a separate size argument - we shouldn't abuse iov_iter_count(iter) for passing that. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Mike Marshall <hubcap@omnibond.com>