2003-08-12 17:44:55

by Lucas C. Villa Real

[permalink] [raw]
Subject: 2.4.21 + Reiserfs + NFS oops

Hi,

I have been trying to export an reiserfs partition on NFS. I can mount it
remotely and even create files on it, but I always got a kernel oops when
trying to remove any file. I have also tryied to export another partition,
formatted as ext2 (but keeping my root fs as reiserfs), but the problem has
persisted.

The releases I'm using here are ReiserFS-Progs version 3.6.4, Util-Linux
version 2.11z and NFS-Utils version 1.0.1. I have also tryied with different
versions of Util-Linux and NFS-Utils, and have tested with linux-2.4.20, but
NFS kept the same behaviour.
I did a google' around and I saw many similar posts, but couldn't find any
patches. Does anyone have any idea about existing patches to fix that?

Below follow the steps I use to reproduce the bug, and attached goes .config,
dmesg and ksymoops output.

Thanks in advance,
Lucas



$ mount -t nfs localhost:/Depot /Mount/Remote
$ cd /Mount/Remote
$ mount -t nfs
localhost:/Depot on /Mount/Remote type nfs
(rw,v3,rsize=8192,wsize=8192,hard,udp,lock,addr=localhost)

$ touch foo
$ ls
foo

$ rm foo
rm: remove regular empty file `foo'? y
Unable to handle kernel NULL pointer dereference at virtual address 00000032
printing eip:
c014b229
*pde = 00000000
Oops: 0000
CPU: 0
EIP: 0010:[<c014b229>] Not tainted
EFLAGS: 00010246
eax: c5e9bdc0 ebx: 00000000 ecx: c7ec5728 edx: 00000000
esi: c60204fc edi: c6020480 ebp: c5dea000 esp: c5debf6c
ds: 0018 es: 0018 ss: 0018
Process rm (pid: 318, stackpage=c5deb000)
Stack: c6020480 c5e9bdc0 c6d01000 c5e9bdc0 c5debf90 c5e9bdc0 c014b4a9 c6020480
c5e9bdc0 c5f711a0 c1162d60 c6d01000 00000003 0024db2a 00000010 00000000
00000006 c5dea000 bffffa65 0804f650 00000000 c010774f bffffa65 00000000
Call Trace: [<c014b4a9>] [<c010774f>]

Code: 0f b7 42 32 25 00 f0 ff ff 66 3d 00 a0 74 11 8b 4c 24 20 89
zsh: segmentation fault rm -i foo



Attachments:
(No filename) (1.85 kB)
dmesg (6.86 kB)
oops (8.82 kB)
config (22.29 kB)
Download all attachments

2003-08-12 21:32:59

by Stephan von Krawczynski

[permalink] [raw]
Subject: Re: 2.4.21 + Reiserfs + NFS oops

On Tue, 12 Aug 2003 14:40:24 -0300
Lucas Correia Villa Real <[email protected]> wrote:

> Hi,
>
> I have been trying to export an reiserfs partition on NFS. I can mount it
> remotely and even create files on it, but I always got a kernel oops when
> trying to remove any file. I have also tryied to export another partition,
> formatted as ext2 (but keeping my root fs as reiserfs), but the problem has
> persisted.

Have you tried to compile your kernel with another compiler (i.e. not gcc 3.2.X) ?

Regards,
Stephan

2003-08-12 23:15:15

by Lucas C. Villa Real

[permalink] [raw]
Subject: Re: 2.4.21 + Reiserfs + NFS oops

On Tuesday 12 August 2003 06:32 pm, Stephan von Krawczynski wrote:
> On Tue, 12 Aug 2003 14:40:24 -0300
>
> Lucas Correia Villa Real <[email protected]> wrote:
> > Hi,
> >
> > I have been trying to export an reiserfs partition on NFS. I can mount it
> > remotely and even create files on it, but I always got a kernel oops when
> > trying to remove any file. I have also tryied to export another
> > partition, formatted as ext2 (but keeping my root fs as reiserfs), but
> > the problem has persisted.
>
> Have you tried to compile your kernel with another compiler (i.e. not gcc
> 3.2.X) ?

Not yet. I will try with 2.9x tomorrow.

Thanks,
Lucas

2003-08-13 19:16:09

by Lucas C. Villa Real

[permalink] [raw]
Subject: Re: 2.4.21 + NFS oops

On Tuesday 12 August 2003 06:32 pm, Stephan von Krawczynski wrote:
> On Tue, 12 Aug 2003 14:40:24 -0300
>
> Lucas Correia Villa Real <[email protected]> wrote:
> > Hi,
> >
> > I have been trying to export an reiserfs partition on NFS. I can mount it
> > remotely and even create files on it, but I always got a kernel oops when
> > trying to remove any file. I have also tryied to export another
> > partition, formatted as ext2 (but keeping my root fs as reiserfs), but
> > the problem has persisted.
>
> Have you tried to compile your kernel with another compiler (i.e. not gcc
> 3.2.X) ?

Well, I have just compiled it with GCC 2.95.3, and I got the same kernel oops.
By the way, I have formatted the whole disk with XFS, so it seems like this
isn't a reiserfs issue.

Anyone suffering from NFS on 2.4.21, too, or any ideas...?

Lucas

2003-08-13 19:54:00

by Lucas C. Villa Real

[permalink] [raw]
Subject: Re: 2.4.21 + NFS oops

On Wednesday 13 August 2003 04:12 pm, Lucas Correia Villa Real wrote:
> On Tuesday 12 August 2003 06:32 pm, Stephan von Krawczynski wrote:
> > On Tue, 12 Aug 2003 14:40:24 -0300
> >
> > Lucas Correia Villa Real <[email protected]> wrote:
> > > Hi,
> > >
> > > I have been trying to export an reiserfs partition on NFS. I can mount
> > > it remotely and even create files on it, but I always got a kernel oops
> > > when trying to remove any file. I have also tryied to export another
> > > partition, formatted as ext2 (but keeping my root fs as reiserfs), but
> > > the problem has persisted.
> >
> > Have you tried to compile your kernel with another compiler (i.e. not gcc
> > 3.2.X) ?
>
> Well, I have just compiled it with GCC 2.95.3, and I got the same kernel
> oops. By the way, I have formatted the whole disk with XFS, so it seems
> like this isn't a reiserfs issue.
>
> Anyone suffering from NFS on 2.4.21, too, or any ideas...?

Nevermind. It was a broken patch being applied without being noticed.

Thanks,
Lucas