All of lore.kernel.org
 help / color / mirror / Atom feed
* XFS: attempt to access beyond end of device
@ 2011-12-20 13:48 Amit Sahrawat
  2011-12-20 22:04 ` Dave Chinner
  0 siblings, 1 reply; 3+ messages in thread
From: Amit Sahrawat @ 2011-12-20 13:48 UTC (permalink / raw)
  To: xfs, Christoph Hellwig, Dave Chinner

Hi,

While trying to open a file with a large number of extents in append
mode – it resulted in the below error logs continually.
I was trying to open the file in append mode, but it showed error, so
I checked for the extents – it has around 2238 extents. Although, it
is not repetitive, when I try on next mount and write – it is working
fine at times.
Also, the system does not seem to be corrupted. Since, running
xfs_repair after umount does not show any errors.
I am getting this on highly fragmented files.

xfs_bmap
/mnt/test_file:
        0: [0..591]: 2429232..2429823
        1: [592..1615]: 2427776..2428799
        2: [1616..2639]: 2426752..2427775
        3: [2640..3663]: 2425728..2426751
        4: [3664..4687]: 2424704..2425727
        5: [4688..5711]: 2423680..2424703
        6: [5712..6735]: 2422656..2423679…
…
…
        2364: [2420304..2421327]: 7016..8039
        2365: [2421328..2422351]: 5992..7015
        2366: [2422352..2423375]: 4968..5991
        2367: [2423376..2424399]: 3944..4967
        2368: [2424400..2425423]: 2920..3943
        2369: [2425424..2426447]: 1896..2919
        2370: [2426448..2863695]: 3249048..3686295
        2371: [2863696..3553871]: 3686312..4376487
[  723.020000] attempt to access beyond end of device
[  723.020000] sda1: rw=0, want=1075794104417808, limit=19551042
[  723.028000] I/O error in filesystem ("sda1") meta-data dev sda1
block 0x3d26dd571fe08       ("xfs_trans_read_buf") error 5 buf count
4096
[  723.040000] xfs_force_shutdown(sda1,0x1) called from line 417 of
file fs/xfs/xfs_trans_buf.c.  Return address = 0xc022a810
[  723.052000] Filesystem "sda1": I/O Error Detected.  Shutting down
filesystem: sda1
[  723.060000] Please umount the filesystem, and rectify the problem(s)
[  723.064000] attempt to access beyond end of device
[  723.068000] sda1: rw=0, want=1075794104417808, limit=19551042
[  723.076000] I/O error in filesystem ("sda1") meta-data dev sda1
block 0x3d26dd571fe08       ("xfs_trans_read_buf") error 5 buf count
4096
[  723.088000] xfs_force_shutdown(sda1,0x1) called from line 417 of
file fs/xfs/xfs_trans_buf.c.  Return address = 0xc022a810
[  723.100000] attempt to access beyond end of device
[  723.104000] sda1: rw=0, want=1075794104417808, limit=19551042
[  723.108000] I/O error in filesystem ("sda1") meta-data dev sda1
block 0x3d26dd571fe08       ("xfs_trans_read_buf") error 5 buf count
4096

[  723.120000] xfs_force_shutdown(sda1,0x1) called from line 417 of
file fs/xfs/xfs_trans_buf.c.  Return address = 0xc022a810
[  723.132000] attempt to access beyond end of device
[  723.136000] sda1: rw=0, want=1075794104417808, limit=19551042
[  723.144000] I/O error in filesystem ("sda1") meta-data dev sda1
block 0x3d26dd571fe08       ("xfs_trans_read_buf") error 5 buf count
4096
[  723.156000] xfs_force_shutdown(sda1,0x1) called from line 417 of
file fs/xfs/xfs_trans_buf.c.  Return address = 0xc022a810
[  723.168000] attempt to access beyond end of device
[  723.172000] sda1: rw=0, want=1075794104417808, limit=19551042
[  723.176000] I/O error in filesystem ("sda1") meta-data dev sda1
block 0x3d26dd571fe08       ("xfs_trans_read_buf") error 5 buf count
4096
[  723.188000] xfs_force_shutdown(sda1,0x1) called from line 417 of
file fs/xfs/xfs_trans_buf.c.  Return address = 0xc022a810
[  723.200000] attempt to access beyond end of device
[  723.204000] sda1: rw=0, want=1075794104417808, limit=19551042
[  723.212000] I/O error in filesystem ("sda1") meta-data dev sda1
block 0x3d26dd571fe08       ("xfs_trans_read_buf") error 5 buf count
4096
[  723.224000] xfs_force_shutdown(sda1,0x1) called from line 417 of
file fs/xfs/xfs_trans_buf.c.  Return address = 0xc022a810
[  723.236000] attempt to access beyond end of device
[  723.240000] sda1: rw=0, want=1075794104417808, limit=19551042
[  723.244000] I/O error in filesystem ("sda1") meta-data dev sda1
block 0x3d26dd571fe08       ("xfs_trans_read_buf") error 5 buf count
4096
[  723.256000] xfs_force_shutdown(sda1,0x1) called from line 417 of
file fs/xfs/xfs_trans_buf.c.  Return address = 0xc022a810
[  723.268000] attempt to access beyond end of device
[  723.272000] sda1: rw=0, want=1075794104417808, limit=19551042
[  723.280000] I/O error in filesystem ("sda1") meta-data dev sda1
block 0x3d26dd571fe08       ("xfs_trans_read_buf") error 5 buf count
4096
[  723.292000] xfs_force_shutdown(sda1,0x1) called from line 417 of
file fs/xfs/xfs_trans_buf.c.  Return address = 0xc022a810
[  723.300000] attempt to access beyond end of device
[  723.308000] sda1: rw=0, want=1075794104417808, limit=19551042
[  723.312000] I/O error in filesystem ("sda1") meta-data dev sda1
block 0x3d26dd571fe08       ("xfs_trans_read_buf") error 5 buf count
4096
[  723.324000] xfs_force_shutdown(sda1,0x1) called from line 417 of
file fs/xfs/xfs_trans_buf.c.  Return address = 0xc022a810
[  723.336000] attempt to access beyond end of device
[  723.340000] sda1: rw=0, want=1075794104417808, limit=19551042
[  723.348000] I/O error in filesystem ("sda1") meta-data dev sda1
block 0x3d26dd571fe08       ("xfs_trans_read_buf") error 5 buf count
4096
[  723.360000] xfs_force_shutdown(sda1,0x1) called from line 417 of
file fs/xfs/xfs_trans_buf.c.  Return address = 0xc022a810
…
…
Continues
Filesystem "sda1": xfs_log_force: error 5 returned.
Filesystem "sda1": xfs_log_force: error 5 returned.


Kernel version: 2.6.35.14(long term stable kernel)
Architecture: ARM
Test Case: I am looking for a regular pattern for this; I will share
as soon as I get more information in this.

Please provide any help to this.

Thanks & Regards,
Amit Sahrawat

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: XFS: attempt to access beyond end of device
  2011-12-20 13:48 XFS: attempt to access beyond end of device Amit Sahrawat
@ 2011-12-20 22:04 ` Dave Chinner
  2011-12-21  3:40   ` Amit Sahrawat
  0 siblings, 1 reply; 3+ messages in thread
From: Dave Chinner @ 2011-12-20 22:04 UTC (permalink / raw)
  To: Amit Sahrawat; +Cc: Christoph Hellwig, xfs

On Tue, Dec 20, 2011 at 07:18:15PM +0530, Amit Sahrawat wrote:
> Hi,
> 
> While trying to open a file with a large number of extents in append
> mode – it resulted in the below error logs continually.
> I was trying to open the file in append mode, but it showed error, so
> I checked for the extents – it has around 2238 extents. Although, it

The first question you have to get to the bottom of is if there are
only 2238 extents in the file, why is the xfs_bmap output showing
more than that?

> is not repetitive, when I try on next mount and write – it is working
> fine at times.
> Also, the system does not seem to be corrupted. Since, running
> xfs_repair after umount does not show any errors.

Which implies memory corruption. Have you turned on memory poisoning
and the memory leak detection to see if it detects any problems?

What about running with CONFIG_XFS_DEBUG=y? Does that trip any
problems sooner than the corruption is detected?

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: XFS: attempt to access beyond end of device
  2011-12-20 22:04 ` Dave Chinner
@ 2011-12-21  3:40   ` Amit Sahrawat
  0 siblings, 0 replies; 3+ messages in thread
From: Amit Sahrawat @ 2011-12-21  3:40 UTC (permalink / raw)
  To: Dave Chinner; +Cc: Christoph Hellwig, xfs

On Wed, Dec 21, 2011 at 3:34 AM, Dave Chinner <david@fromorbit.com> wrote:
> On Tue, Dec 20, 2011 at 07:18:15PM +0530, Amit Sahrawat wrote:
>> Hi,
>>
>> While trying to open a file with a large number of extents in append
>> mode – it resulted in the below error logs continually.
>> I was trying to open the file in append mode, but it showed error, so
>> I checked for the extents – it has around 2238 extents. Although, it
>
> The first question you have to get to the bottom of is if there are
> only 2238 extents in the file, why is the xfs_bmap output showing
> more than that?
Actually the output got mismatched, 2238 was the number when I checked
the issue, while xfs_bmap results were for the last traces observed.
Sorry for the confusion.
>
>> is not repetitive, when I try on next mount and write – it is working
>> fine at times.
>> Also, the system does not seem to be corrupted. Since, running
>> xfs_repair after umount does not show any errors.
>
> Which implies memory corruption. Have you turned on memory poisoning
> and the memory leak detection to see if it detects any problems?
>
> What about running with CONFIG_XFS_DEBUG=y? Does that trip any
> problems sooner than the corruption is detected?
I will try with CONFIG_XFS_DEBUG.

Thanks & Regards,
Amit Sahrawat
>
> Cheers,
>
> Dave.
> --
> Dave Chinner
> david@fromorbit.com

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-12-21  3:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-20 13:48 XFS: attempt to access beyond end of device Amit Sahrawat
2011-12-20 22:04 ` Dave Chinner
2011-12-21  3:40   ` Amit Sahrawat

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.