Re: [PATCH 4/4] xfs: validate block count for XFS_IOC_SET_RESBLKS

Christoph Hellwig
2024-04-03T04:43:03Z

On Wed, Apr 03, 2024 at 08:38:19AM +1100, Dave Chinner wrote:
> Stop the fuzzers ifrom being able to do this by validating that the

s/ifrom/from/

> + if (fsop.resblks >= mp->m_sb.sb_dblocks)

Even all of dblocks seems too much. A quarter of all blocks still feels
very generous.