ext2 readdir/lookup/check_page behavior

2006-11-14 Thread Eric Sandeen
the fsfuzzer has been keeping me busy lately ;-) http://kernelfun.blogspot.com/2006/11/mokb-09-11-2006-linux-26x-ext2checkpage.html has an image with a corrupt directory inode - despite having only 4 blocks, it has an extremely large i_size. readdir lookup seem to behave differently when

Re: ext2 readdir/lookup/check_page behavior

2006-11-14 Thread Andreas Dilger
On Nov 14, 2006 13:38 -0600, Eric Sandeen wrote: Andreas Dilger wrote: It would make sense to fix ext2 in the same way. I'd suggest bailing out early == min(i_size blocksize, i_blocks). The i_blocks count is an upper limit, because it includes the overhead of indirect blocks.