Don't feed anything but regular iovec's to blk_rq_map_user_iov
authorLinus Torvalds <torvalds@linux-foundation.org>
Wed, 7 Dec 2016 00:18:14 +0000 (16:18 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 10 Dec 2016 18:07:26 +0000 (19:07 +0100)
commitd41fb2fbb28d3a1085960edada6c046becd1fafd
treeda8364a6cc8f924a8edcd34605c209d2e5a7bd74
parentfd1aa12c63400ca7d5b6d189ae98570f47735180
Don't feed anything but regular iovec's to blk_rq_map_user_iov

commit a0ac402cfcdc904f9772e1762b3fda112dcc56a0 upstream.

In theory we could map other things, but there's a reason that function
is called "user_iov".  Using anything else (like splice can do) just
confuses it.

Reported-and-tested-by: Johannes Thumshirn <jthumshirn@suse.de>
Cc: Al Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
block/blk-map.c