On Sun, 21 Feb 2016 11:49:55 +0100, Martin Natano wrote: > The diff below addresses the issues you mentioned. It converts > mnt_maxsymlinklen to unsigned and adds a check to ffs_validate() that > makes sure, that fs_maxsymlinklen is >= 0. That function is called > during mount and on fsck. This should make sure we won't get a bogus > fs_maxsymlinklen from the superblock.
I think it is better to just set fsp->fs_maxsymlinklen to 0 if it is negative in the superblock. We shouldn't fail to mount the filesystem in this case. - todd