Commit 0bcb2463 authored by dongliang.cui's avatar dongliang.cui Committed by Treehugger Robot
Browse files

UPSTREAM: exfat: fix zero the unwritten part for dio read



For dio read, bio will be leave in flight when a successful partial
aio read have been setup, blockdev_direct_IO() will return
-EIOCBQUEUED. In the case, iter->iov_offset will be not advanced,
the oops reported by syzbot will occur if revert iter->iov_offset
with iov_iter_revert(). The unwritten part had been zeroed by aio
read, so there is no need to zero it in dio read.

Reported-by: default avatar <syzbot+fd404f6b03a58e8bc403@syzkaller.appspotmail.com>
Closes: https://syzkaller.appspot.com/bug?extid=fd404f6b03a58e8bc403


Fixes: 11a347fb ("exfat: change to get file size from DataLength")
Signed-off-by: default avatarYuezhang Mo <Yuezhang.Mo@sony.com>
Signed-off-by: default avatarNamjae Jeon <linkinjeon@kernel.org>
(cherry picked from commit 0991abed)

Bug: 362138008

Change-Id: I18b2db841118f9b060cbbdd64a7ce3246669c0dc
Signed-off-by: default avatardongliang.cui <dongliang.cui@unisoc.com>
parent 26c23077
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment