All of lore.kernel.org
 help / color / mirror / Atom feed
From: "J. Bruce Fields" <bfields@fieldses.org>
To: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: linux-nfs@vger.kernel.org, linux-fsdevel@vger.kernel.org,
	jlayton@redhat.com
Subject: Re: linux-next NFSD: NULL pointer dereference at nfsd_svc()
Date: Wed, 4 Aug 2010 15:40:45 -0400	[thread overview]
Message-ID: <20100804194045.GD18200@fieldses.org> (raw)
In-Reply-To: <201008040013.o740DmYK024832-etx+eQDEXHD7nzcFbJAaVXf5DAMn2ifp@public.gmane.org>

On Wed, Aug 04, 2010 at 09:13:48AM +0900, Tetsuo Handa wrote:
> J. Bruce Fields wrote:
> > How about this?
> 
> After reverting commit 86d0cc3b91315c475c1c38ee7a06b5ebe5c01755 and applying
> commit 3deb279d6e5625407919a875db3a2461199566b3, I get below NULL pointer
> dereference problem when doing "mount 127.0.0.1:/usr/src/ /mnt/".

OK, I'm not seeing the explanation yet.....

> 
> [   96.398495] BUG: unable to handle kernel NULL pointer dereference at 00000010
> [   96.400348] IP: [<c1356dd4>] svc_process_common+0x2c4/0x5c0

Maybe figuring out exactly hwere that is would help work out what's
going on.  Doing

	make net/sunrpc/svc.lst

then looking for c1356dd4 (or just mailing me svc.lst) could help.


> [   96.401606] *pde = 00000000 
> [   96.401606] Oops: 0002 [#1] SMP DEBUG_PAGEALLOC
> [   96.401606] last sysfs file: /sys/devices/pci0000:00/0000:00:10.0/host0/target0:0:1/0:0:1:0/type
> [   96.401606] Modules linked in: nfs ipv6 pcnet32
> [   96.401606] 
> [   96.401606] Pid: 2623, comm: nfsd Tainted: G        W   2.6.35-next-20100802 #4 440BX Desktop Reference Platform/VMware Virtual Platform
> [   96.401606] EIP: 0060:[<c1356dd4>] EFLAGS: 00010246 CPU: 1
> [   96.401606] EIP is at svc_process_common+0x2c4/0x5c0
> [   96.401606] EAX: 00000000 EBX: dfb8b0c8 ECX: 00000001 EDX: 00000004
> [   96.401606] ESI: dfb8b0f0 EDI: 00000010 EBP: dcac4f40 ESP: dcac4ef0
> [   96.401606]  DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068
> [   96.401606] Process nfsd (pid: 2623, ti=dcac4000 task=dc85a7b0 task.ti=dcac4000)
> [   96.401606] Stack:
> [   96.401606]  dc85a7b0 00000002 00000000 dc85ac5c dc85a7b0 dcac4f28 00000004 00000000
> [   96.401606] <0> 00000002 000186a3 dcb6c008 dcb6c014 dc805f30 c154ca20 c154cca8 dfb8b000
> [   96.401606] <0> 01000000 8c4194fd dfb8b000 dfb8b0c8 dcac4f68 c13571cf dcac4f68 c105d087
> [   96.401606] Call Trace:
> [   96.401606]  [<c13571cf>] ? svc_process+0xff/0x110
> [   96.401606]  [<c105d087>] ? __validate_process_creds+0x47/0xd0
> [   96.401606]  [<c1145739>] ? nfsd+0xc9/0x160
> [   96.401606]  [<c1035f86>] ? complete+0x46/0x60
> [   96.401606]  [<c1055d05>] ? kthread+0x75/0x80
> [   96.401606]  [<c1145670>] ? nfsd+0x0/0x160
> [   96.401606]  [<c1055c90>] ? kthread+0x0/0x80
> [   96.401606]  [<c100317a>] ? kernel_thread_helper+0x6/0x1c
> [   96.401606] Code: 4d dc c7 01 00 00 00 00 8b 55 e4 83 46 04 04 8b 42 10 ff 42 18 8b 4d ec 8b b9 6c 0d 00 00 89 45 c8 89 c1 c1 e9 02 31 c0 8b 55 c8 <f3> ab f6 c2 02 74 02 66 ab f6 c2 01 74 01 aa 8b 45 e4 8b 4d ec 
> [   96.401606] EIP: [<c1356dd4>] svc_process_common+0x2c4/0x5c0 SS:ESP 0068:dcac4ef0
> [   96.401606] CR2: 0000000000000010
> [   96.527321] ---[ end trace 0de1e1ad73b15980 ]---
> 
> > (By the way, are you using something other than the standard
> > /etc/init.d/nfs-kernel-server to start/stop the server?  Or have you
> > customized your installation in any way?  Just curious, as the bugs
> > you're finding are good, but I'd expect different symptoms from the
> > default setup.)
> I'm using standard /etc/init.d/nfs-kernel-server script installed by Debian
> Sarge and using it without modification.

OK, I wonder if Sarge didn't yet mount the nfsd filesystem on
/proc/fs/nfsd.

--b.

> 
> # ls -l /etc/init.d/nfs-*
> -rwxr-xr-x  1 root root 1984 Jan  5  2005 /etc/init.d/nfs-common
> -rwxr-xr-x  1 root root 2356 Aug  4  2003 /etc/init.d/nfs-kernel-server
> -rwxr-xr-x  1 root root 1241 Jan 30  2006 /etc/init.d/nfs-user-server
> 
> Regards.

WARNING: multiple messages have this Message-ID (diff)
From: "J. Bruce Fields" <bfields-uC3wQj2KruNg9hUCZPvPmw@public.gmane.org>
To: Tetsuo Handa
	<penguin-kernel-JPay3/Yim36HaxMnTkn67Xf5DAMn2ifp@public.gmane.org>
Cc: linux-nfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org
Subject: Re: linux-next NFSD: NULL pointer dereference at nfsd_svc()
Date: Wed, 4 Aug 2010 15:40:45 -0400	[thread overview]
Message-ID: <20100804194045.GD18200@fieldses.org> (raw)
In-Reply-To: <201008040013.o740DmYK024832-etx+eQDEXHD7nzcFbJAaVXf5DAMn2ifp@public.gmane.org>

On Wed, Aug 04, 2010 at 09:13:48AM +0900, Tetsuo Handa wrote:
> J. Bruce Fields wrote:
> > How about this?
> 
> After reverting commit 86d0cc3b91315c475c1c38ee7a06b5ebe5c01755 and applying
> commit 3deb279d6e5625407919a875db3a2461199566b3, I get below NULL pointer
> dereference problem when doing "mount 127.0.0.1:/usr/src/ /mnt/".

OK, I'm not seeing the explanation yet.....

> 
> [   96.398495] BUG: unable to handle kernel NULL pointer dereference at 00000010
> [   96.400348] IP: [<c1356dd4>] svc_process_common+0x2c4/0x5c0

Maybe figuring out exactly hwere that is would help work out what's
going on.  Doing

	make net/sunrpc/svc.lst

then looking for c1356dd4 (or just mailing me svc.lst) could help.


> [   96.401606] *pde = 00000000 
> [   96.401606] Oops: 0002 [#1] SMP DEBUG_PAGEALLOC
> [   96.401606] last sysfs file: /sys/devices/pci0000:00/0000:00:10.0/host0/target0:0:1/0:0:1:0/type
> [   96.401606] Modules linked in: nfs ipv6 pcnet32
> [   96.401606] 
> [   96.401606] Pid: 2623, comm: nfsd Tainted: G        W   2.6.35-next-20100802 #4 440BX Desktop Reference Platform/VMware Virtual Platform
> [   96.401606] EIP: 0060:[<c1356dd4>] EFLAGS: 00010246 CPU: 1
> [   96.401606] EIP is at svc_process_common+0x2c4/0x5c0
> [   96.401606] EAX: 00000000 EBX: dfb8b0c8 ECX: 00000001 EDX: 00000004
> [   96.401606] ESI: dfb8b0f0 EDI: 00000010 EBP: dcac4f40 ESP: dcac4ef0
> [   96.401606]  DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068
> [   96.401606] Process nfsd (pid: 2623, ti=dcac4000 task=dc85a7b0 task.ti=dcac4000)
> [   96.401606] Stack:
> [   96.401606]  dc85a7b0 00000002 00000000 dc85ac5c dc85a7b0 dcac4f28 00000004 00000000
> [   96.401606] <0> 00000002 000186a3 dcb6c008 dcb6c014 dc805f30 c154ca20 c154cca8 dfb8b000
> [   96.401606] <0> 01000000 8c4194fd dfb8b000 dfb8b0c8 dcac4f68 c13571cf dcac4f68 c105d087
> [   96.401606] Call Trace:
> [   96.401606]  [<c13571cf>] ? svc_process+0xff/0x110
> [   96.401606]  [<c105d087>] ? __validate_process_creds+0x47/0xd0
> [   96.401606]  [<c1145739>] ? nfsd+0xc9/0x160
> [   96.401606]  [<c1035f86>] ? complete+0x46/0x60
> [   96.401606]  [<c1055d05>] ? kthread+0x75/0x80
> [   96.401606]  [<c1145670>] ? nfsd+0x0/0x160
> [   96.401606]  [<c1055c90>] ? kthread+0x0/0x80
> [   96.401606]  [<c100317a>] ? kernel_thread_helper+0x6/0x1c
> [   96.401606] Code: 4d dc c7 01 00 00 00 00 8b 55 e4 83 46 04 04 8b 42 10 ff 42 18 8b 4d ec 8b b9 6c 0d 00 00 89 45 c8 89 c1 c1 e9 02 31 c0 8b 55 c8 <f3> ab f6 c2 02 74 02 66 ab f6 c2 01 74 01 aa 8b 45 e4 8b 4d ec 
> [   96.401606] EIP: [<c1356dd4>] svc_process_common+0x2c4/0x5c0 SS:ESP 0068:dcac4ef0
> [   96.401606] CR2: 0000000000000010
> [   96.527321] ---[ end trace 0de1e1ad73b15980 ]---
> 
> > (By the way, are you using something other than the standard
> > /etc/init.d/nfs-kernel-server to start/stop the server?  Or have you
> > customized your installation in any way?  Just curious, as the bugs
> > you're finding are good, but I'd expect different symptoms from the
> > default setup.)
> I'm using standard /etc/init.d/nfs-kernel-server script installed by Debian
> Sarge and using it without modification.

OK, I wonder if Sarge didn't yet mount the nfsd filesystem on
/proc/fs/nfsd.

--b.

> 
> # ls -l /etc/init.d/nfs-*
> -rwxr-xr-x  1 root root 1984 Jan  5  2005 /etc/init.d/nfs-common
> -rwxr-xr-x  1 root root 2356 Aug  4  2003 /etc/init.d/nfs-kernel-server
> -rwxr-xr-x  1 root root 1241 Jan 30  2006 /etc/init.d/nfs-user-server
> 
> Regards.
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2010-08-04 19:42 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-02  7:47 linux-next NFSD: NULL pointer dereference at nfsd_svc() Tetsuo Handa
2010-08-02 14:32 ` Jeff Layton
2010-08-02 14:36   ` Jeff Layton
2010-08-02 18:16     ` J. Bruce Fields
2010-08-02 18:16       ` J. Bruce Fields
2010-08-02 18:53       ` Jeff Layton
2010-08-03  1:09       ` Tetsuo Handa
2010-08-03  1:09         ` Tetsuo Handa
2010-08-03 15:48         ` J. Bruce Fields
2010-08-03 16:24           ` J. Bruce Fields
2010-08-04  0:13           ` Tetsuo Handa
2010-08-04  0:13             ` Tetsuo Handa
     [not found]             ` <201008040013.o740DmYK024832-etx+eQDEXHD7nzcFbJAaVXf5DAMn2ifp@public.gmane.org>
2010-08-04 19:40               ` J. Bruce Fields [this message]
2010-08-04 19:40                 ` J. Bruce Fields
2010-08-05  1:10                 ` Tetsuo Handa
2010-08-05  1:10                   ` Tetsuo Handa
2010-08-05 20:46                   ` J. Bruce Fields
2010-08-05 20:46                     ` J. Bruce Fields
2010-08-05 21:31                     ` J. Bruce Fields
2010-08-05 21:31                       ` J. Bruce Fields
2010-08-06  1:37                       ` Tetsuo Handa
2010-08-06  1:37                         ` Tetsuo Handa
2010-08-06 21:27                       ` J. Bruce Fields
2010-08-06 21:27                         ` J. Bruce Fields
2010-08-06 22:05                         ` J. Bruce Fields
2010-08-06 22:05                           ` J. Bruce Fields
2010-08-06 22:10                           ` J. Bruce Fields
2010-08-07  1:48                             ` Tetsuo Handa
2010-08-07  1:48                               ` Tetsuo Handa
2010-08-07  2:33                               ` J. Bruce Fields

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100804194045.GD18200@fieldses.org \
    --to=bfields@fieldses.org \
    --cc=jlayton@redhat.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-nfs@vger.kernel.org \
    --cc=penguin-kernel@I-love.SAKURA.ne.jp \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.