lkml.org 
[lkml]   [2001]   [Jul]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: vfat: attempt to access beyond end of device
From
Date
Hi,

Alexander Griesser <tuxx@aon.at> writes:

> When I try to write new files on it, I get:
> kernel: attempt to access beyond end of device
> kernel: 16:01: rw=0, want=2081231810, limit=80035798
>
> According to his Problewm:
> Shouldn't an "int" be enough?
>
> 2^31 = 2147483648
> And he "wants": 2081231810
>
> Should do, or did I miss something?

kernel: attempt to access beyond end of device
kernel: 16:01: rw=0, want=2081231810, limit=80035798
kernel: dev = 16:01, ino = -2120058812
^^^^^^^^^^^^
kernel: Filesystem panic (dev 16:01).

i_pos is -2120058812.

fat_write_inode()
i_pos = -2120058812; /* -2120058812 */
fat_bread(sb, i_pos >> 4); /* -132503676 */
...
getblk()
blocknr = block; /* 4162463620 */
...
submit_bh()
bh->b_rsector = bh->b_blocknr * count;
generic_make_request()
unsigned long sector = bh->b_rsector;

printk(KERN_INFO "%s: rw=%d, want=%ld, limit=%d\n",
kdevname(bh->b_rdev), rw,
(sector + count)>>1, minorsize); /* 2081231810 */

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/

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