tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Proposal: validate FFS root inode during the mount.



On Wed, Nov 20, 2019 at 10:11:14AM -0500, Mouse wrote:
> > During the fuzzing of FFS filesystem, we had a couple of issues
> > caused by corrupted inode fields.  [...]
> 
> > To make sure that corrupted mount won't cause harm to the user, I
> > want to add function to validate root inode on mount step (after
> > superblock validation)
> 
> Don't you have more or less the same issue with every other non-free
> inode in the filesystem?  The only thing I can see that's special about
> the root inode in this regard is that it is the only inode that is used
> immediately upon mount.

I think the point is, when the root inode is corrupted, you can't unmount
then filesystem.

-- 
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index