Re: [PATCH] ext2/ext3/ext4: Add block bitmap validation

2007-08-03 Thread Kalpak Shah
On Fri, 2007-08-03 at 12:40 +0530, Aneesh Kumar K.V wrote: > desc = ext2_get_group_desc (sb, block_group, NULL); > if (!desc) > - goto error_out; > - bh = sb_bread(sb, le32_to_cpu(desc->bg_block_bitmap)); > + return NULL; > + bitmap_blk = le32_to_cpu(desc

[PATCH] ext2/ext3/ext4: Add block bitmap validation

2007-08-03 Thread Aneesh Kumar K.V
When a new block bitmap is read from disk in read_block_bitmap() there are a few bits that should ALWAYS be set. In particular, the blocks given by ext4_blk_bitmap, ext4_inode_bitmap and ext4_inode_table. Validate the block bitmap against these blocks. Signed-off-by: Aneesh Kumar K.V <[EMAIL PROTE

[PATCH] ext2/ext3/ext4: Add block bitmap validation

2007-07-09 Thread Aneesh Kumar K.V
When a new block bitmap is read from disk in read_block_bitmap() there are a few bits that should ALWAYS be set. In particular, the blocks given by ext4_blk_bitmap, ext4_inode_bitmap and ext4_inode_table. Validate the block bitmap against these blocks. Signed-off-by: Aneesh Kumar K.V <[EMAIL PROTE

Re: [PATCH] ext2/ext3/ext4: Add block bitmap validation

2007-07-09 Thread Andreas Dilger
On Jul 09, 2007 23:54 +0530, Aneesh Kumar K.V wrote: > When a new block bitmap is read from disk in read_block_bitmap() > there are a few bits that should ALWAYS be set. In particular, the > blocks given by ext4_blk_bitmap, ext4_inode_bitmap and ext4_inode_table. > Validate the block bitmap agains

[PATCH] ext2/ext3/ext4: Add block bitmap validation

2007-07-09 Thread Aneesh Kumar K.V
When a new block bitmap is read from disk in read_block_bitmap() there are a few bits that should ALWAYS be set. In particular, the blocks given by ext4_blk_bitmap, ext4_inode_bitmap and ext4_inode_table. Validate the block bitmap against these blocks. Signed-off-by: Aneesh Kumar K.V <[EMAIL PROTE