lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ebba6e12af06486cafa5e16a284b7d7e@BJMBX01.spreadtrum.com>
Date: Mon, 16 Jun 2025 09:21:22 +0000
From: 张政旭 (Zhengxu Zhang)
	<Zhengxu.Zhang@...soc.com>
To: "Yuezhang.Mo@...y.com" <Yuezhang.Mo@...y.com>,
        Cixi Geng
	<cixi.geng@...ux.dev>,
        "linkinjeon@...nel.org" <linkinjeon@...nel.org>,
        "sj1557.seo@...sung.com" <sj1557.seo@...sung.com>
CC: "linux-fsdevel@...r.kernel.org" <linux-fsdevel@...r.kernel.org>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        王皓 (Hao_hao Wang) <Hao_hao.Wang@...soc.com>,
        张政旭 (Zhengxu Zhang) <Zhengxu.Zhang@...soc.com>
Subject: 答复: [PATCH] exfat: fdatasync flag should be same like generic_write_sync()



> -----邮件原件-----
> 发件人: Yuezhang.Mo@...y.com <Yuezhang.Mo@...y.com>
> 发送时间: 2025年6月13日 18:14
> 收件人: Cixi Geng <cixi.geng@...ux.dev>; linkinjeon@...nel.org;
> sj1557.seo@...sung.com
> 抄送: linux-fsdevel@...r.kernel.org; linux-kernel@...r.kernel.org; 张政旭
> (Zhengxu Zhang) <Zhengxu.Zhang@...soc.com>
> 主题: Re: [PATCH] exfat: fdatasync flag should be same like generic_write_sync()
> 
> 
> 
> > generic_file_write_iter(), when calling generic_rite_sync() and
> 
> s/_rite/_write
>
I will fix this by next patch.
> > --- a/fs/exfat/file.c
> > +++ b/fs/exfat/file.c
> > @@ -625,7 +625,7 @@ static ssize_t exfat_file_write_iter(struct kiocb *iocb,
> struct iov_iter *iter)
> >
> >        if (iocb_is_dsync(iocb) && iocb->ki_pos > pos) {
> >                 ssize_t err = vfs_fsync_range(file, pos, iocb->ki_pos - 1,
> > -                               iocb->ki_flags & IOCB_SYNC);
> > +                               (iocb->ki_flags & IOCB_SYNC) ? 0 : 1);
> 
> How about calling generic_write_sync() instead of vfs_fsync_range(), like in
> generic_file_write_iter()?
The second arg of vfs_fsync_range "pos" maybe changed by valid_size (if pos > valid_size). 
It can not replace by iocb->ki_pos - ret (ret by __generic_file_write_iter).
So current way maybe better.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ