Re: [PATCH v1] exfat: fix zero the unwritten part for dio read

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2024-01-18 18:43 GMT+09:00, Yuezhang.Mo@xxxxxxxx <Yuezhang.Mo@xxxxxxxx>:
> 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@xxxxxxxxxxxxxxxxxxxxxxxxx
> 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@xxxxxxxx>
Applied, Thanks for your patch!




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux