[lvc-project] [PATCH] ocfs2: add inline inode consistency check to ocfs2_validate_inode_block()

Dmitry Antipov dmantipov at yandex.ru
Fri Oct 24 08:06:39 MSK 2025


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.

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