]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
bio_copy_user_iov(): don't ignore ->iov_offset
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 24 Sep 2017 14:21:15 +0000 (10:21 -0400)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 19 Oct 2017 14:49:41 +0000 (09:49 -0500)
commitcc5d9c0046cc5e2a28d173938e094e3cfa876e6f
treee1dd5ab900d012fda3091105bc11d65f54d3b51a
parentd6faaefb85b3d90fbac1b61598cb111bae702bb7
bio_copy_user_iov(): don't ignore ->iov_offset

BugLink: http://bugs.launchpad.net/bugs/1724669
commit 1cfd0ddd82232804e03f3023f6a58b50dfef0574 upstream.

Since "block: support large requests in blk_rq_map_user_iov" we
started to call it with partially drained iter; that works fine
on the write side, but reads create a copy of iter for completion
time.  And that needs to take the possibility of ->iov_iter != 0
into account...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
block/bio.c