Commit 4e3d7618 authored by Al Viro's avatar Al Viro Committed by Yang Yingliang
Browse files

fuse: fix the ->direct_IO() treatment of iov_iter



mainline inclusion
from mainline-5.9-rc7
commit 933a3752
category: bugfix
bugzilla: 42553
CVE: NA

-------------------------------------------------

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

Reported-by: default avatarQian Cai <cai@redhat.com>
Tested-by: default avatarQian Cai <cai@redhat.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>

Conflict: fs/fuse/file.c
commit 5da784cc("fuse: add max_pages to init_out") is not
backported, fuse_round_up only accept one paramater.
Signed-off-by: default avatarYu Kuai <yukuai3@huawei.com>
Reviewed-by: default avatarZhang Yi <yi.zhang@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 807fd773
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment