diff options
author | Yuezhang Mo <Yuezhang.Mo@sony.com> | 2024-01-18 09:52:52 +0800 |
---|---|---|
committer | Namjae Jeon <linkinjeon@kernel.org> | 2024-01-18 23:01:51 +0900 |
commit | 0991abeddefa118479b0af32c28bcd662dec1561 (patch) | |
tree | 8d54847449bdf26b93a72ee20a8e976b618b3fe8 /arch/x86 | |
parent | 296455ade1fdcf5f8f8c033201633b60946c589a (diff) | |
download | linux-stable-0991abeddefa118479b0af32c28bcd662dec1561.tar.gz linux-stable-0991abeddefa118479b0af32c28bcd662dec1561.tar.bz2 linux-stable-0991abeddefa118479b0af32c28bcd662dec1561.zip |
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: syzbot+fd404f6b03a58e8bc403@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=fd404f6b03a58e8bc403
Fixes: 11a347fb6cef ("exfat: change to get file size from DataLength")
Signed-off-by: Yuezhang Mo <Yuezhang.Mo@sony.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'arch/x86')
0 files changed, 0 insertions, 0 deletions