public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.6.15-rc5-mm1
Date: Tue, 06 Dec 2005 22:33:46 +0900	[thread overview]
Message-ID: <4395933A.2040603@jp.fujitsu.com> (raw)
In-Reply-To: <20051204232153.258cd554.akpm@osdl.org>

When CONFIG_PAGE_OWNER=y, there is a bug in page allocation failure path.
(turn on Kernel Hacking -> Track page owner)

Patch is attached below.
error message is this
==
Dec  6 22:21:34 aworks kernel: Unable to handle kernel NULL pointer dereference at virtual address 00000020
Dec  6 22:21:34 aworks kernel:  printing eip:
Dec  6 22:21:34 aworks kernel: c0148267
Dec  6 22:21:34 aworks kernel: *pde = 00000000
Dec  6 22:21:34 aworks kernel: Oops: 0002 [#1]
Dec  6 22:21:34 aworks kernel: SMP
Dec  6 22:21:34 aworks kernel: last sysfs file: /class/vc/vcs2/dev
Dec  6 22:21:34 aworks kernel: Modules linked in: video
Dec  6 22:21:34 aworks kernel: CPU:    0
Dec  6 22:21:34 aworks kernel: EIP:    0060:[<c0148267>]    Not tainted VLI
Dec  6 22:21:34 aworks kernel: EFLAGS: 00010286   (2.6.15-rc5-mm1)
Dec  6 22:21:34 aworks kernel: EIP is at __alloc_pages+0x297/0x3c0
Dec  6 22:21:34 aworks su(pam_unix)[2660]: session closed for user root
Dec  6 22:21:34 aworks kernel: eax: 0000000a   ebx: e884c000   ecx: 00000000   edx: e884decc
Dec  6 22:21:34 aworks kernel: esi: 000242d2   edi: 00000000   ebp: e884decc   esp: e884de88
Dec  6 22:21:34 aworks kernel: ds: 007b   es: 007b   ss: 0068
Dec  6 22:21:34 aworks kernel: Process bash (pid: 2663, threadinfo=e884c000 task=ed9ff070)
Dec  6 22:21:34 aworks kernel: Stack: <0>000242d2 0000000a c04a3ba8 00000042 00000000 000242d2 c04a3ba8 0000000a
Dec  6 22:21:34 aworks kernel:        <0>00000010 00000000 e884c000 00000042 e884dea6 00000000 c1090000 000001f4
Dec  6 22:21:34 aworks kernel:        <0>ec06abc0 e884ded8 c015ce58 c1090000 e884def0 c015d117 c1090000 e884dfa0
Dec  6 22:21:34 aworks kernel: Call Trace:
Dec  6 22:21:34 aworks kernel:  [<c0103dc2>] show_stack+0xa2/0xe0
Dec  6 22:21:34 aworks kernel:  [<c0103f8f>] show_registers+0x16f/0x200
Dec  6 22:21:34 aworks kernel:  [<c01041df>] die+0x11f/0x1b0
Dec  6 22:21:34 aworks kernel:  [<c0428500>] do_page_fault+0x330/0x638
Dec  6 22:21:34 aworks kernel:  [<c0103a4f>] error_code+0x4f/0x54
Dec  6 22:21:34 aworks kernel:  [<c015ce58>] alloc_fresh_huge_page+0x18/0x50
Dec  6 22:21:34 aworks kernel:  [<c015d117>] set_max_huge_pages+0x47/0xc0
Dec  6 22:21:34 aworks kernel:  [<c015d1d1>] hugetlb_sysctl_handler+0x41/0x50
Dec  6 22:21:34 aworks kernel:  [<c0125c48>] do_rw_proc+0xe8/0x100
Dec  6 22:21:34 aworks kernel:  [<c0125cde>] proc_writesys+0x2e/0x30
Dec  6 22:21:34 aworks kernel:  [<c01668b6>] vfs_write+0xa6/0x190
Dec  6 22:21:34 aworks kernel:  [<c0166a57>] sys_write+0x47/0x70
Dec  6 22:21:34 aworks kernel:  [<c0102ecf>] sysenter_past_esp+0x54/0x75
Dec  6 22:21:34 aworks kernel: Code: c0 89 44 24 04 89 54 24 08 e8 06 6c fd ff e8 b1 bb fb ff e8 ac ce fc ff 8b 4d e0 8b 45 d8 8d 5d ec 89 ea 81 e3 00 e0 ff ff 89 cf <89> 41 20 89 71 24 83 c7 28 31 c0 b9 08 00 00 00 f3 ab 31 f6 39
==

--Kame
---
Fix NULL pointer reference of set_page_owner() in allcation faulure path.

Signed-Off-by: Kamezawa Hiroyuki <kamezawa.hiroyu@jp.fujitu.com>

Index: linux-2.6.15-rc5-mm1.org/mm/page_alloc.c
===================================================================
--- linux-2.6.15-rc5-mm1.org.orig/mm/page_alloc.c
+++ linux-2.6.15-rc5-mm1.org/mm/page_alloc.c
@@ -1136,7 +1136,8 @@ nopage:
  	}
  got_pg:
  #ifdef CONFIG_PAGE_OWNER
-	set_page_owner(page, order, gfp_mask);
+	if (page)
+		set_page_owner(page, order, gfp_mask);
  #endif
  	return page;
  }


  parent reply	other threads:[~2005-12-06 13:33 UTC|newest]

Thread overview: 51+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-05  7:21 2.6.15-rc5-mm1 Andrew Morton
2005-12-05  6:49 ` 2.6.15-rc5-mm1 Carlos Martín
2005-12-06  3:04   ` 2.6.15-rc5-mm1 Andrew Morton
2005-12-06  6:59     ` 2.6.15-rc5-mm1 Ingo Molnar
2005-12-05 19:06 ` 2.6.15-rc5-mm1: git-alsa-vs-git-pcmcia.patch introduces new compile errors Adrian Bunk
2005-12-05 20:05   ` Takashi Iwai
2005-12-05 21:40 ` 2.6.15-rc5-mm1: USB_IP problems Adrian Bunk
2005-12-07  0:02   ` Greg KH
2005-12-07  0:08     ` Adrian Bunk
2005-12-05 23:05 ` 2.6.15-rc5-mm1 J.A. Magallon
2005-12-05 23:06   ` 2.6.15-rc5-mm1 Randy.Dunlap
2005-12-10 23:36   ` 2.6.15-rc5-mm1 Greg KH
2005-12-10 23:46     ` 2.6.15-rc5-mm1 J.A. Magallon
2005-12-11 21:36       ` 2.6.15-rc5-mm1 J.A. Magallon
2005-12-12 22:58         ` 2.6.15-rc5-mm1 Andrew Morton
2005-12-13  3:44           ` [linux-usb-devel] 2.6.15-rc5-mm1 Alan Stern
2005-12-13 13:51             ` J.A. Magallon
2005-12-13 15:35               ` Alan Stern
2005-12-13 16:47                 ` David Brownell
2005-12-06 13:33 ` KAMEZAWA Hiroyuki [this message]
2005-12-07  0:46 ` 2.6.15-rc5-mm1 (x86_64-hpet-overflow.patch breaks resume from disk) Rafael J. Wysocki
2005-12-07 23:15   ` Rafael J. Wysocki
2005-12-08  8:43     ` [discuss] " Jan Beulich
2005-12-08 10:53       ` Rafael J. Wysocki
2005-12-08 22:35         ` Rafael J. Wysocki
2005-12-09  9:15           ` Jan Beulich
2005-12-09  9:16             ` Andi Kleen
2005-12-09 11:20             ` Rafael J. Wysocki
2005-12-09 12:41               ` Jan Beulich
2005-12-09 13:10                 ` Rafael J. Wysocki
2005-12-09 17:34                 ` Rafael J. Wysocki
2005-12-12  7:58                   ` Jan Beulich
2005-12-12  8:05                     ` [discuss] " Andi Kleen
2005-12-08 22:47       ` Andi Kleen
2005-12-08 23:00         ` Rafael J. Wysocki
2005-12-09  9:08         ` Jan Beulich
2005-12-09  9:16           ` Andi Kleen
2005-12-09 10:57             ` Jan Beulich
2005-12-08 19:09 ` 2.6.15-rc5-mm1 Badari Pulavarty
2005-12-08 21:14   ` 2.6.15-rc5-mm1 James Courtier-Dutton
2005-12-08 23:02   ` 2.6.15-rc5-mm1 Adrian Bunk
2005-12-09  7:15     ` [Alsa-devel] 2.6.15-rc5-mm1 Jaroslav Kysela
2005-12-09  1:09 ` 2.6.15-rc5-mm1 Alexander E. Patrakov
2005-12-09  1:52   ` 2.6.15-rc5-mm1 Jeff Garzik
2005-12-12 16:12   ` 2.6.15-rc5-mm1 Alan Cox
2005-12-13 22:49 ` 2.6.15-rc5-mm1 J.A. Magallon
2005-12-13 23:24   ` 2.6.15-rc5-mm1 Andrew Morton
2005-12-14  0:17     ` 2.6.15-rc5-mm1 J.A. Magallon
2005-12-14  0:22       ` 2.6.15-rc5-mm1 Andrew Morton
2005-12-14  1:33         ` 2.6.15-rc5-mm1 Dmitry Torokhov
2005-12-14  0:31       ` 2.6.15-rc5-mm1 Ben Pfaff

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=4395933A.2040603@jp.fujitsu.com \
    --to=kamezawa.hiroyu@jp.fujitsu.com \
    --cc=akpm@osdl.org \
    --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