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: NQian Cai <cai@redhat.com> Tested-by: NQian Cai <cai@redhat.com> Signed-off-by: NAl 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: NYu Kuai <yukuai3@huawei.com> Reviewed-by: NZhang Yi <yi.zhang@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录