Re: [PATCH v2] exfat: zero the reserved fields of file and stream extension dentries

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

 



2024년 4월 25일 (목) 오후 3:23, Sungjong Seo <sj1557.seo@xxxxxxxxxxx>님이 작성:
>
> > From exFAT specification, the reserved fields should initialize
> > to zero and should not use for any purpose.
> >
> > If create a new dentry set in the UNUSED dentries, all fields
> > had been zeroed when allocating cluster to parent directory.
> >
> > But if create a new dentry set in the DELETED dentries, the
> > reserved fields in file and stream extension dentries may be
> > non-zero. Because only the valid bit of the type field of the
> > dentry is cleared in exfat_remove_entries(), if the type of
> > dentry is different from the original(For example, a dentry that
> > was originally a file name dentry, then set to deleted dentry,
> > and then set as a file dentry), the reserved fields is non-zero.
> >
> > So this commit initializes the dentry to 0 before createing file
> > dentry and stream extension dentry.
> >
> > Signed-off-by: Yuezhang Mo <Yuezhang.Mo@xxxxxxxx>
> > Reviewed-by: Andy Wu <Andy.Wu@xxxxxxxx>
> > Reviewed-by: Aoyama Wataru <wataru.aoyama@xxxxxxxx>
>
> Looks good. Thanks for your patch.
> Reviewed-by: Sungjong Seo <sj1557.seo@xxxxxxxxxxx>
Applied it to #dev.
Thanks!





[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