From: Cedric Le Goater <clg@fr.ibm.com>
To: Christoph Lameter <clameter@sgi.com>
Cc: Andrew Morton <akpm@osdl.org>, linux-kernel@vger.kernel.org
Subject: Re: 2.6.16-rc6-mm2
Date: Tue, 13 Jun 2006 09:22:00 +0200 [thread overview]
Message-ID: <448E6798.3020104@fr.ibm.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0606121511090.21172@schroedinger.engr.sgi.com>
Christoph Lameter wrote:
> On Mon, 12 Jun 2006, Cedric Le Goater wrote:
>
>> Unable to handle kernel NULL pointer dereference at 0000000000000007 RIP:
>> [<ffffffff8025b017>] dec_zone_page_state+0x1/0x5b
>
> Seems that req->wb_page may be NULL.
>
> This patch may fix it but we may miss an unstable page then. We may
> have to move the decrement of NR_UNSTABLE to a different location when
> wb_page is still valid.
>
> Index: linux-2.6.17-rc6-cl/fs/nfs/write.c
> ===================================================================
> --- linux-2.6.17-rc6-cl.orig/fs/nfs/write.c 2006-06-12 13:37:47.321243148 -0700
> +++ linux-2.6.17-rc6-cl/fs/nfs/write.c 2006-06-12 15:13:48.020908204 -0700
> @@ -1419,7 +1419,8 @@ static void nfs_commit_done(struct rpc_t
> nfs_mark_request_dirty(req);
> next:
> nfs_clear_page_writeback(req);
> - dec_zone_page_state(req->wb_page, NR_UNSTABLE);
> + if (req->wb_page)
> + dec_zone_page_state(req->wb_page, NR_UNSTABLE);
> }
> }
thanks for the patch ! I gave it a try but req->wb_page seems bogus ?
general protection fault: 0000 [1] SMP
last sysfs file: /class/vc/vcsa3/dev
CPU 1
Modules linked in: autofs4 nfs lockd sunrpc joydev sony_acpi button battery
ac uhci_hcd ehci_hcd tg3 sg ext3 jbd ata_piix libata
Pid: 2456, comm: rpciod/1 Not tainted 2.6.17-rc6-mm2 #2
RIP: 0010:[<ffffffff8025b017>] [<ffffffff8025b017>]
dec_zone_page_state+0x1/0x5b
RSP: 0018:ffff81014022dda8 EFLAGS: 00010202
RAX: 0000000000000000 RBX: ffff810140419408 RCX: ffff810140419450
RDX: 0000000000000006 RSI: 0000000000000007 RDI: 6b6b6b6b6b6b6b6b
RBP: ffff81014022ddd8 R08: ffff81013ef08b70 R09: 0000000000000000
R10: ffff810140419408 R11: 0000000000000060 R12: ffff81013d7c2668
R13: ffff81013d7c2670 R14: 0000000000000283 R15: ffff81013d7c2670
FS: 0000000000000000(0000) GS:ffff810142c82238(0000) knlGS:0000000000000000
CS: 0010 DS: 0018 ES: 0018 CR0: 000000008005003b
CR2: 0000000000703ba8 CR3: 000000013dd32000 CR4: 00000000000006e0
Process rpciod/1 (pid: 2456, threadinfo ffff81014022c000, task
ffff810140c8e0c0)
Stack: ffff81014022ddd8 ffffffff880eab24 0000000000000000 ffff81013d7c2670
ffff81013d7c2740 0000000000000000 ffff81014022ddf8 ffffffff880a5a51
ffff81013d7c2670 ffff81013d7c2670
Call Trace:
[<ffffffff880eab24>] :nfs:nfs_commit_done+0x191/0x19f
[<ffffffff880a5a51>] :sunrpc:rpc_exit_task+0x2a/0x6c
[<ffffffff880a5f98>] :sunrpc:__rpc_execute+0x99/0x1e0
[<ffffffff880a60e8>] :sunrpc:rpc_async_schedule+0x9/0xb
[<ffffffff8023c72e>] run_workqueue+0xa8/0xef
[<ffffffff880a60df>] :sunrpc:rpc_async_schedule+0x0/0xb
[<ffffffff8023c775>] worker_thread+0x0/0x12f
[<ffffffff8023c871>] worker_thread+0xfc/0x12f
[<ffffffff80225eca>] default_wake_function+0x0/0xf
[<ffffffff80225eca>] default_wake_function+0x0/0xf
[<ffffffff8023c775>] worker_thread+0x0/0x12f
[<ffffffff8023f92c>] kthread+0xd0/0xfc
[<ffffffff8020a33a>] child_rip+0x8/0x12
[<ffffffff8023f85c>] kthread+0x0/0xfc
[<ffffffff8020a332>] child_rip+0x0/0x12
Code: 48 0f b6 47 07 48 89 e5 4c 8b 0c c5 80 2b 80 80 9c 41 58 fa
RIP [<ffffffff8025b017>] dec_zone_page_state+0x1/0x5b
RSP <ffff81014022dda8>
next prev parent reply other threads:[~2006-06-13 7:22 UTC|newest]
Thread overview: 82+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-10 4:40 2.6.16-rc6-mm2 Andrew Morton
2006-06-10 10:23 ` 2.6.16-rc6-mm2 Michal Piotrowski
2006-06-10 16:24 ` 2.6.16-rc6-mm2 Andrew Morton
2006-06-10 16:43 ` 2.6.16-rc6-mm2 Christoph Lameter
2006-06-10 16:51 ` 2.6.16-rc6-mm2 Christoph Lameter
2006-06-10 17:03 ` 2.6.16-rc6-mm2 Andrew Morton
2006-06-10 18:04 ` 2.6.16-rc6-mm2 Christoph Lameter
2006-06-10 18:14 ` 2.6.16-rc6-mm2 Michal Piotrowski
2006-06-10 18:31 ` 2.6.16-rc6-mm2 Christoph Lameter
2006-06-10 18:35 ` 2.6.16-rc6-mm2 Michal Piotrowski
2006-06-12 11:05 ` 2.6.16-rc6-mm2 Ingo Molnar
2006-06-12 11:48 ` 2.6.16-rc6-mm2 Ingo Molnar
2006-06-12 12:14 ` 2.6.16-rc6-mm2 Andi Kleen
2006-06-12 13:07 ` 2.6.16-rc6-mm2 Ingo Molnar
2006-06-12 13:41 ` 2.6.16-rc6-mm2 Andi Kleen
2006-06-13 3:28 ` 2.6.16-rc6-mm2 Keith Owens
2006-06-13 4:56 ` 2.6.16-rc6-mm2 Andi Kleen
2006-06-13 5:08 ` 2.6.16-rc6-mm2 Keith Owens
2006-06-13 5:18 ` 2.6.16-rc6-mm2 Andi Kleen
2006-06-13 5:43 ` 2.6.16-rc6-mm2 Nick Piggin
2006-06-13 5:48 ` 2.6.16-rc6-mm2 Andi Kleen
2006-06-13 11:45 ` 2.6.16-rc6-mm2 Andrew Morton
2006-06-13 12:41 ` 2.6.16-rc6-mm2 Keith Owens
2006-06-12 16:37 ` broken local_t on i386 Christoph Lameter
2006-06-12 16:48 ` Andi Kleen
2006-06-12 16:54 ` Christoph Lameter
2006-06-12 17:06 ` Andi Kleen
2006-06-12 17:11 ` Christoph Lameter
2006-06-12 17:29 ` Andi Kleen
2006-06-12 18:14 ` Lee Revell
2006-06-12 18:46 ` Alan Cox
2006-06-12 18:27 ` Christoph Lameter
2006-06-12 17:35 ` Andi Kleen
2006-06-12 18:42 ` Christoph Lameter
2006-06-12 17:55 ` Andi Kleen
2006-06-12 18:59 ` Christoph Lameter
2006-06-12 18:11 ` Andi Kleen
2006-06-12 19:15 ` Christoph Lameter
2006-06-13 3:36 ` Andi Kleen
2006-06-12 20:12 ` Alan Cox
2006-06-13 4:02 ` Andi Kleen
2006-06-12 13:50 ` 2.6.16-rc6-mm2 Michal Piotrowski
2006-06-12 14:20 ` 2.6.16-rc6-mm2 Ingo Molnar
2006-06-12 14:57 ` 2.6.16-rc6-mm2 Michal Piotrowski
[not found] ` <6bffcb0e0606101126v55cc20dbk275d8aa7fdcb0f1a@mail.gmail.com>
2006-06-10 18:36 ` 2.6.16-rc6-mm2 Christoph Lameter
2006-06-10 19:08 ` 2.6.16-rc6-mm2 Michal Piotrowski
2006-06-10 16:58 ` 2.6.16-rc6-mm2 Andrew Morton
2006-06-10 14:56 ` 2.6.16-rc6-mm2 Martin J. Bligh
2006-06-10 16:43 ` 2.6.16-rc6-mm2 Andrew Morton
2006-06-10 16:18 ` 2.6.16-rc6-mm2 Dominik Karall
2006-06-10 16:25 ` 2.6.16-rc6-mm2 Michal Piotrowski
2006-06-10 17:42 ` 2.6.16-rc6-mm2 Dominik Karall
2006-06-10 18:43 ` 2.6.16-rc6-mm2 Rafael J. Wysocki
2006-06-11 10:17 ` 2.6.16-rc6-mm2 Jan Engelhardt
2006-06-11 10:58 ` 2.6.16-rc6-mm2 Rafael J. Wysocki
2006-06-12 16:56 ` 2.6.16-rc6-mm2 Zan Lynx
2006-06-12 17:35 ` 2.6.16-rc6-mm2 Cedric Le Goater
2006-06-12 22:16 ` 2.6.16-rc6-mm2 Christoph Lameter
2006-06-13 0:24 ` 2.6.16-rc6-mm2 Christoph Lameter
2006-06-14 21:56 ` 2.6.16-rc6-mm2 Trond Myklebust
2006-06-13 7:22 ` Cedric Le Goater [this message]
2006-06-13 17:54 ` 2.6.16-rc6-mm2 Christoph Lameter
2006-06-13 19:35 ` 2.6.16-rc6-mm2 Christoph Lameter
2006-06-13 20:22 ` 2.6.16-rc6-mm2 Cedric Le Goater
2006-06-13 21:13 ` 2.6.16-rc6-mm2 Christoph Lameter
2006-06-13 21:50 ` 2.6.16-rc6-mm2 Cedric Le Goater
2006-06-12 18:19 ` 2.6.16-rc6-mm2 Badari Pulavarty
2006-06-13 13:54 ` 2.6.16-rc6-mm2 Andrew Morton
2006-06-13 17:04 ` 2.6.16-rc6-mm2 Badari Pulavarty
2006-06-12 22:09 ` 2.6.16-rc6-mm2 Steve Fox
2006-06-13 13:54 ` 2.6.16-rc6-mm2 Andrew Morton
2006-06-13 14:10 ` 2.6.16-rc6-mm2 Sergei Shtylyov
2006-06-13 19:01 ` 2.6.16-rc6-mm2 Steve Fox
2006-06-13 21:43 ` 2.6.16-rc6-mm2 Andrew Morton
2006-06-13 21:51 ` 2.6.16-rc6-mm2 Badari Pulavarty
2006-06-13 22:36 ` 2.6.16-rc6-mm2 Steve Fox
-- strict thread matches above, loose matches on Subject: below --
2006-03-18 12:40 2.6.16-rc6-mm2 Andrew Morton
2006-03-18 20:21 ` 2.6.16-rc6-mm2 Rafael J. Wysocki
2006-03-18 20:54 ` 2.6.16-rc6-mm2 Andrew Morton
2006-03-18 21:24 ` 2.6.16-rc6-mm2 Rafael J. Wysocki
2006-03-22 8:41 ` 2.6.16-rc6-mm2 J.A. Magallon
2006-03-22 8:48 ` 2.6.16-rc6-mm2 Andrew Morton
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=448E6798.3020104@fr.ibm.com \
--to=clg@fr.ibm.com \
--cc=akpm@osdl.org \
--cc=clameter@sgi.com \
--cc=linux-kernel@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox