It seems to me that this patch will find only those infinite loops where
the last link of the chain points to itself. But there could be loops
where the last link points to the middle of the chain.
Additional check on the number of followed links could be useful there.
No chain should be longer than the number of clusters on the fs.
Although on large FAT32 filesystems the number of clusters can be high,
a very long loop is still better than an infinite one. (In cases where
we know the file size, this limit can be reduced to
file_size/cluster_size + 1 links).
Marius Gedminas
-- This company has performed an illegal operation and will be shut down. If the problem persists, contact your vendor or appeal to a higher court. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/