* Re: BUG in 2.4.25-rc1: attempt to access beyond end of device, alsoIbm Serveraid
[not found] <Pine.LNX.4.44.0403011935270.9653-100000@lnx.bridge.intra>
@ 2004-03-09 16:46 ` Peter S. Mazinger
2004-03-18 16:16 ` BUG in 2.4.25-rc1: attempt to access beyond end of device Peter S. Mazinger
1 sibling, 0 replies; 4+ messages in thread
From: Peter S. Mazinger @ 2004-03-09 16:46 UTC (permalink / raw)
To: Marcelo Tosatti; +Cc: linux-kernel
On Mon, 1 Mar 2004, Peter S. Mazinger wrote:
> On Fri, 27 Feb 2004, Marcelo Tosatti wrote:
>
> >
> > Peter,
> >
> > Can you try to revert (apply with -R) and see if it happens again, please?
>
> Yes, it happens again (the problem appeared at 2.4.25-pre4 time, but that
> patch is to huge for me to find the problematic part)
I have tried both patches proposed by Chuck Lever
--- mm/filemap.c.mps Tue Mar 9 16:53:01 2004
+++ mm/filemap.c Tue Mar 9 16:55:07 2004
@@ -1348,7 +1348,7 @@
while (ahead < max_ahead) {
unsigned long ra_index = raend + ahead + 1;
- if (ra_index > end_index)
+ if (ra_index >= end_index)
break;
if (page_cache_read(filp, ra_index) < 0)
break;
this one corrects the error
--- mm/filemap.c.mps Tue Mar 9 14:33:17 2004
+++ mm/filemap.c Tue Mar 9 14:35:01 2004
@@ -1286,6 +1286,8 @@
int max_readahead = get_max_readahead(inode);
end_index = inode->i_size >> PAGE_CACHE_SHIFT;
+ end_index = ((inode->i_size + ~PAGE_CACHE_MASK) >>
+ PAGE_CACHE_SHIFT) - 1;
raend = filp->f_raend;
max_ahead = 0;
this one does not correct the error
my ATA controller is ICH5 (built into the kernel), so add it too to the
list of problematic drivers.
Peter
>
> >
> >
> > On Fri, 6 Feb 2004, Peter S. Mazinger wrote:
> >
> > > Hello!
> > >
> > > my hardware:
> > > x86
> > > ide controller (builtin driver)
> > > ext3 partitions (as modules loaded from initrd)
> > >
> > > if I shutdown -h now the computer, I get as last messages:
> > > attempt to access beyond end of device
> > > 03:03 rw=0, want=1044228, limit=1044225
> > > (3 times, 03:03/want/limit with other numbers), for all mounted
> > > (remounted ro) partitions
> > >
> > > distro: RedHat 7.3 (with all updates up to december)
> > > kernel is pristine: only 2.4.25-rc1 applied (EXPERIMENTAL code disabled)
> > > util-linux: 2.11n-12.7.3 (used umount, if it matters)
> > >
> > > Peter
> > >
> > > --
> > > Peter S. Mazinger <ps dot m at gmx dot net> ID: 0xA5F059F2
> > > Key fingerprint = 92A4 31E1 56BC 3D5A 2D08 BB6E C389 975E A5F0 59F2
> > >
> > >
> > > ____________________________________________________________________
> > > Miert fizetsz az internetert? Korlatlan, ingyenes internet hozzaferes a FreeStarttol.
> > > Probald ki most! http://www.freestart.hu
> > > -
> > > 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/
> > >
>
>
--
Peter S. Mazinger <ps dot m at gmx dot net> ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08 BB6E C389 975E A5F0 59F2
____________________________________________________________________
Miert fizetsz az internetert? Korlatlan, ingyenes internet hozzaferes a FreeStarttol.
Probald ki most! http://www.freestart.hu
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: BUG in 2.4.25-rc1: attempt to access beyond end of device
[not found] <Pine.LNX.4.44.0403011935270.9653-100000@lnx.bridge.intra>
2004-03-09 16:46 ` BUG in 2.4.25-rc1: attempt to access beyond end of device, alsoIbm Serveraid Peter S. Mazinger
@ 2004-03-18 16:16 ` Peter S. Mazinger
2004-03-18 21:03 ` Bert Kammerer
1 sibling, 1 reply; 4+ messages in thread
From: Peter S. Mazinger @ 2004-03-18 16:16 UTC (permalink / raw)
To: Marcelo Tosatti; +Cc: linux-kernel
On Mon, 1 Mar 2004, Peter S. Mazinger wrote:
I have seen 2 LKML messages related to it (IBM Serveraid and RedHat 7.3
related)
Well I have RedHat 7.3, and when I saw the second message I have updated
mount from 2.11n (it's the official/updated RedHat 7.3 version) to 2.12.
The "error" messages are gone. but I do not really know if the error is
gone.
Peter
> On Fri, 27 Feb 2004, Marcelo Tosatti wrote:
>
> >
> > Peter,
> >
> > Can you try to revert (apply with -R) and see if it happens again, please?
>
> Yes, it happens again (the problem appeared at 2.4.25-pre4 time, but that
> patch is to huge for me to find the problematic part)
>
> Peter
>
> >
> >
> > On Fri, 6 Feb 2004, Peter S. Mazinger wrote:
> >
> > > Hello!
> > >
> > > my hardware:
> > > x86
> > > ide controller (builtin driver)
> > > ext3 partitions (as modules loaded from initrd)
> > >
> > > if I shutdown -h now the computer, I get as last messages:
> > > attempt to access beyond end of device
> > > 03:03 rw=0, want=1044228, limit=1044225
> > > (3 times, 03:03/want/limit with other numbers), for all mounted
> > > (remounted ro) partitions
> > >
> > > distro: RedHat 7.3 (with all updates up to december)
> > > kernel is pristine: only 2.4.25-rc1 applied (EXPERIMENTAL code disabled)
> > > util-linux: 2.11n-12.7.3 (used umount, if it matters)
> > >
> > > Peter
> > >
> > > --
> > > Peter S. Mazinger <ps dot m at gmx dot net> ID: 0xA5F059F2
> > > Key fingerprint = 92A4 31E1 56BC 3D5A 2D08 BB6E C389 975E A5F0 59F2
> > >
> > >
> > > ____________________________________________________________________
> > > Miert fizetsz az internetert? Korlatlan, ingyenes internet hozzaferes a FreeStarttol.
> > > Probald ki most! http://www.freestart.hu
> > > -
> > > 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/
> > >
>
>
--
Peter S. Mazinger <ps dot m at gmx dot net> ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08 BB6E C389 975E A5F0 59F2
____________________________________________________________________
Miert fizetsz az internetert? Korlatlan, ingyenes internet hozzaferes a FreeStarttol.
Probald ki most! http://www.freestart.hu
^ permalink raw reply [flat|nested] 4+ messages in thread