Re: vfat: attempt to access beyond end of device

From: OGAWA Hirofumi (hirofumi@mail.parknet.co.jp)
Date: Thu Jul 12 2001 - 14:29:02 EST


Hi,

This bug will be fixed by the following change.

diff -urN linux-2.4.7-pre6.orig/fs/fat/inode.c linux-2.4.7-pre6/fs/fat/inode.c
--- linux-2.4.7-pre6.orig/fs/fat/inode.c Tue Jun 12 11:15:27 2001
+++ linux-2.4.7-pre6/fs/fat/inode.c Fri Jul 13 04:20:04 2001
@@ -842,7 +842,7 @@
         struct super_block *sb = inode->i_sb;
         struct buffer_head *bh;
         struct msdos_dir_entry *raw_entry;
- int i_pos;
+ unsigned int i_pos;
 
 retry:
         i_pos = MSDOS_I(inode)->i_location;

But, should change ino/i_location/i_pos to unsigned long in
fat/vfat/msdos/umsdos, IMHO.

Thanks.

-- 
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>

- 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/



This archive was generated by hypermail 2b29 : Sun Jul 15 2001 - 21:00:17 EST