lkml.org 
[lkml]   [2001]   [Jun]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectCRAMFS error "attempt to access beyond end of device"
Date
Hello -

Is there maybe a missing boundary check in cramfs that causes
accesses slightly past (up to 24 or 32K?) the end of a device?
Here's an example of a cramfs image mounted on a loop device
(the same thing happens with other block devices, and when the
kernel itself mounts a partition as cramfs-root.)

attempt to access beyond end of device
07:01: rw=0, want=1156, limit=1152
attempt to access beyond end of device
07:01: rw=0, want=1160, limit=1152
attempt to access beyond end of device
07:01: rw=0, want=1164, limit=1152

The messages appear while running "diff -r" against the original tree.
The diff itself doesn't find any problems with the filesystem.
The size of the cramfs is 1179648 bytes, or exactly 1152 * 1024.
My kernel version is 2.4.5, but this behavior has existed since
the 2.4.0-test kernels.

If anyone has ideas on this, please let me know.

- Sidik
-
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:55    [W:0.826 / U:0.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site