Re: [PATCH] ocfs2: validate quota file block count in ocfs2_local_read_info()

Dmitry Antipov <[email protected]> Thu, 2 Jul 2026 16:00:30 +0300
Newsgroups dev.linux.lists.ocfs2-devel,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
On 7/1/26 12:08 PM, Joseph Qi wrote:

> This will reject valid on-disk layouts.
> See ol_quota_chunk_block().
> 
> BTW, could we move the geometry bound check into a dedicated info-block
> validator?

Sure. But it seems I have no clue how to detect invalid (extremely
large as in this particular case) values of 'dqi_blocks' anyway.

Dmitry