Re: [PATCH v3] hfs: Validate CNIDs in hfs_read_inode

From: Tetsuo Handa

Date: Tue Mar 10 2026 - 06:44:30 EST


On 2026/03/10 9:08, George Anthony Vernon wrote:
> - Remove Tetsuo's additional superblock check from patch series

Why do we want to make mount() succeed for CNIDs other than HFS_ROOT_CNID ?

0 => EINVAL
HFS_EXT_CNID => ENOTDIR
HFS_CAT_CNID => ENOTDIR
All others => succeed

Fuzzing against unreadable root directory is not useful.