RE: [PATCH v4] hfs: Validate CNIDs in hfs_read_inode

From: Viacheslav Dubeyko

Date: Fri Mar 13 2026 - 14:41:12 EST


On Fri, 2026-03-13 at 20:03 +0900, Tetsuo Handa wrote:
> On 2026/03/13 8:13, Viacheslav Dubeyko wrote:
> > > And even after both changes are applied, my patch still makes sense
> > > because mount() operation still succeeds for cnid >= 16. :-)
> >
> > I don't follow how it could happen. Please, take a look here [1]:
>
> Do you remember that you said
>
> "Why do not localize the all checks in hfs_read_inode()?"
>

If we still have not correct implementation of hfs_read_inode() flow, then we
can make it right. The patch is under review yet and it can be changed.

Thanks,
Slava.