Re: "attempt to access beyond end of device" on DVD

From: Bruno PrÃmont
Date: Tue Dec 11 2012 - 19:41:21 EST


Hello,

On Mon, 10 December 2012 Jacek Poplawski <jacekpoplawski@xxxxxxxxx> wrote:
> few years ago I noticed annoying bug on Linux, when I was copying
> photos from old DVDs I realized that not all files were copied
> correctly, there were errors on last files on DVD, you could say "well
> that happens, DVD are faulty", but that's not the real issue
>
> when the problem appears it happens on each DVD I am trying to copy,
> last files on each disk have errors....
>
> ...until I reboot Linux, then there are no errors at all and full DVD
> is copied correctly.
>
> Now I needed some files from DVDs and I realized the problem still
> exists. After at least three years. I verified that reboot helps and I
> also noticed the problem doesn't exist on Windows 7.
>
> And looks like I wasn't only one who found this:
>
> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/404472
>
> Problem was reported in 2009 on 2.6.28 and closed in 2012. But I
> noticed it in last days.
>
> my system is:
>
> Linux version 3.6.8-1-ARCH (tobias@T-POWA-LX) (gcc version 4.7.2 (GCC)
> ) #1 SMP PREEMPT Mon Nov 26 22:10:40 CET 2012
>
> dmesg:
>
> [ 4017.384169] attempt to access beyond end of device
> [ 4017.384171] sr0: rw=0, want=8511124, limit=8433216
> [ 4017.384174] attempt to access beyond end of device
> [ 4017.384175] sr0: rw=0, want=8510876, limit=8433216
>
> I suspect that people just stopped using CDs and DVDs and that's why
> nobody was looking on this problem, or maybe the first though was
> always "that DVD is broken, trash it".
>
> Is there more information I could give you about this issue? Or could
> you point me to any ways I could debug it? It's fully reproducible on
> my system.

Hm, could it be related to some kind of read-ahead? I vaguely remember
seeing mails about read-ahead and/or end-of-device. Could this be somehow
related?

See:
- https://lkml.org/lkml/2012/12/3/497
- https://lkml.org/lkml/2012/12/3/510

This applies to 3.7-rc but according to the thread it might still
have some interesting things that could be related to what you are seeing.

When it happens, does ejecting and re-inserting the CDs/DVDs also fix the
problem or is a full reboot mandatory?

Bruno
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/