lkml.org 
[lkml]   [1998]   [Mar]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: fat32 possible oops when fs is corrupted
Alexander V. Lukyanov writes:
> It is the following code in fs/fat/inode.c:
>
> MSDOS_SB(sb)->fsinfo_offset =
> CF_LE_W(b->info_sector) * logical_sector_size + 0x1e0;
> fsinfo = (struct fat_boot_fsinfo *)
> &bh->b_data[MSDOS_SB(sb)->fsinfo_offset];
>
> When fs is corrupted, fsinfo_offset can be too large and lead to
> reference to invalid memory.

I've got this fixed in my tree, but I haven't sent a patch to Linus yet.

- Gordon

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:41    [W:0.051 / U:0.240 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site