Messages in this thread Patch in this message | | | Date | Sat, 2 Jan 1999 16:39:22 +0100 (MET) | From | (Guest section DW) | Subject | Re: [patch] Re: 2.2.0-pre2 fat_read_super: Bad fsinfo_offset |
| |
From: alan@lxorguk.ukuu.org.uk (Alan Cox)
So a 'correct' fix badly needs finding. But yes the current fix isnt
Alan
Hmm. Maybe it is in your mailbox already. Try
--- ../../../../linux-2.2.0pre3/linux/fs/fat/inode.c Sat Jan 2 12:25:36 1999 +++ inode.c Sat Jan 2 15:55:40 1999 @@ -364,7 +364,7 @@ MSDOS_SB(sb)->root_cluster = CF_LE_L(b->root_cluster); MSDOS_SB(sb)->fsinfo_offset = CF_LE_W(b->info_sector) * logical_sector_size + 0x1e0; - if (MSDOS_SB(sb)->fsinfo_offset + sizeof(MSDOS_SB(sb)->fsinfo_offset) >= sizeof(struct fat_boot_sector)) { + if (MSDOS_SB(sb)->fsinfo_offset + sizeof(struct fat_boot_fsinfo) > sb->s_blocksize) { printk("fat_read_super: Bad fsinfo_offset\n"); fat_brelse(sb, bh); goto out_invalid;
(pasted from another window - tabs will have become spaces)
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |