]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fuse: fix the ->direct_IO() treatment of iov_iter
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 17 Sep 2020 21:26:56 +0000 (17:26 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 7 Oct 2020 06:02:48 +0000 (08:02 +0200)
commit74e81de01e496ce07d7819cc80aeed50c35e9fbe
tree0195468fbf4446fe3cae0caca285d838601bd868
parent72adaf9348028a18ee9f775233465de9c937a96e
fuse: fix the ->direct_IO() treatment of iov_iter

[ Upstream commit 933a3752babcf6513117d5773d2b70782d6ad149 ]

the callers rely upon having any iov_iter_truncate() done inside
->direct_IO() countered by iov_iter_reexpand().

Reported-by: Qian Cai <cai@redhat.com>
Tested-by: Qian Cai <cai@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/fuse/file.c