[lvc-project] [PATCH] ocfs2: add inline inode consistency check to ocfs2_validate_inode_block()
    Joseph Qi 
    joseph.qi at linux.alibaba.com
       
    Fri Oct 24 12:10:32 MSK 2025
    
    
  
On 2025/10/24 13:06, Dmitry Antipov wrote:
> On 10/24/25 4:09 AM, Joseph Qi wrote:
> 
>> s/has no clusters/has clusters?
> 
> Hm. Reading the comment at the beginning of ocfs2_truncate_for_delete(),
> I assume that a dinode with inline data should have i_clusters set to 0.
> 
Yes, if dinode with flag OCFS2_INLINE_DATA_FL set and also has clusters,
something goes wrong, right?
Thanks,
Joseph
> This crash was triggered by using crafted filesystem image containing
> dinode with inline data but non-zero number of clusters, see
> https://syzkaller.appspot.com/x/log.txt?x=11960258580000. In particular,
> dinode with inline data should never be passed to ocfs2_commit_truncate().
> 
> Dmitry
    
    
More information about the lvc-project
mailing list