public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Nishanth Aravamudan <nacc@us.ibm.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: clameter@sgi.com, linux-kernel@vger.kernel.org, drfickle@us.ibm.com
Subject: Re: 2.6.21-rc6-mm1
Date: Mon, 9 Apr 2007 17:50:54 -0700	[thread overview]
Message-ID: <20070410005054.GA4027@us.ibm.com> (raw)
In-Reply-To: <20070408143559.f5014629.akpm@linux-foundation.org>

On 08.04.2007 [14:35:59 -0700], Andrew Morton wrote:
> 
> ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.21-rc6/2.6.21-rc6-mm1/

Get this Oops:

Unable to handle kernel NULL pointer dereference at 0000000000000000 RIP: 
 [<ffffffff802f9320>] hugetlbfs_set_page_dirty+0x4/0xc
PGD 414e067 PUD 4198067 PMD 0 
Oops: 0002 [1] SMP 
last sysfs file: devices/system/node/node0/cpumap
CPU 1 
Modules linked in: ipv6 hidp rfcomm l2cap bluetooth sunrpc video button battery asus_acpi ac lp parport_pc parport nvram amd_rng rng_core i2c_amd756 i2c_core
Pid: 6053, comm: readback Not tainted 2.6.21-rc6-mm1-autokern1 #1
RIP: 0010:[<ffffffff802f9320>]  [<ffffffff802f9320>] hugetlbfs_set_page_dirty+0x4/0xc
RSP: 0018:ffff810004145d90  EFLAGS: 00010282
RAX: 0000000000000000 RBX: ffff81003f1ad000 RCX: 000000000000003f
RDX: ffff810004771dc0 RSI: ffff810004145db0 RDI: ffff81003f1ad000
RBP: 8000000007800040 R08: 0000000001258020 R09: ffff81000160ad84
R10: 0000000000000282 R11: ffffffff802f931c R12: ffff8100035db7c0
R13: ffff810003675c38 R14: 00002aaaaae00000 R15: ffff810001022820
FS:  00002ac8d0bd6590(0000) GS:ffff81000160acc0(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
CR2: 0000000000000000 CR3: 00000000047b7000 CR4: 00000000000006e0
Process readback (pid: 6053, threadinfo ffff810004144000, task ffff81000177b140)
Stack:  ffffffff80283f95 ffff810004145d98 ffff810004145d98 ffff810000000000
 00002aaaaac00000 ffff810003675c38 00002aaaaae00000 00002aaaaac00000
 ffff8100047b68b8 00000036d5f18000 ffffffff80284060 ffff81003fc066c0
Call Trace:
 [<ffffffff80283f95>] __unmap_hugepage_range+0xcf/0x163
 [<ffffffff80284060>] unmap_hugepage_range+0x37/0x57
 [<ffffffff802761e4>] unmap_vmas+0xf6/0x744
 [<ffffffff8027a197>] exit_mmap+0x78/0xed
 [<ffffffff802313bc>] mmput+0x45/0xb7
 [<ffffffff80236636>] do_exit+0x23d/0x811
 [<ffffffff80236c86>] sys_exit_group+0x0/0xe
 [<ffffffff80209b6e>] system_call+0x7e/0x83


Code: f0 0f ba 28 04 31 c0 c3 48 89 c8 48 c7 c1 5f 9b 2f 80 48 89 
RIP  [<ffffffff802f9320>] hugetlbfs_set_page_dirty+0x4/0xc
 RSP <ffff810004145d90>
CR2: 0000000000000000
Fixing recursive fault but reboot is needed!

<snip>

Steve Fox narrowed it down to between
mm-clean-up-and-kernelify-shrinker-registration.patch (good) and
file-capabilities-accomodate-future-64-bit-caps.patch (bad). Without
testing yet, I'm betting it is:

> +make-page-pprivate-usable-in-compound-pages-v1.patch

I am not sure if there are other users of page_private() that were
missed that are also compound pages, but probably the attached will fix
this case?

Thanks,
Nish

Christoph Lameter's rework of the use of private member of struct page
missed the hugetlbfs dirtying function.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>

---
Only compile-tested so far (on x86_64).

diff -urpN 2.6.21-rc6-mm1/fs/hugetlbfs/inode.c 2.6.21-rc6-mm1-dev/fs/hugetlbfs/inode.c
--- 2.6.21-rc6-mm1/fs/hugetlbfs/inode.c	2007-04-09 17:17:16.000000000 -0700
+++ 2.6.21-rc6-mm1-dev/fs/hugetlbfs/inode.c	2007-04-09 17:42:41.000000000 -0700
@@ -450,7 +450,7 @@ static int hugetlbfs_symlink(struct inod
  */
 static int hugetlbfs_set_page_dirty(struct page *page)
 {
-	struct page *head = (struct page *)page_private(page);
+	struct page *head = compound_head(page);
 
 	SetPageDirty(head);
 	return 0;

-- 
Nishanth Aravamudan <nacc@us.ibm.com>
IBM Linux Technology Center

  parent reply	other threads:[~2007-04-10  0:54 UTC|newest]

Thread overview: 74+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-08 21:35 2.6.21-rc6-mm1 Andrew Morton
2007-04-09 11:13 ` 2.6.21-rc6-mm1 Borislav Petkov
2007-04-09 16:08 ` 2.6.21-rc6-mm1 Rafael J. Wysocki
2007-04-09 16:14   ` 2.6.21-rc6-mm1 Pallipadi, Venkatesh
2007-04-09 17:40     ` 2.6.21-rc6-mm1 Rafael J. Wysocki
2007-04-10 22:20       ` 2.6.21-rc6-mm1 Venki Pallipadi
2007-04-11 19:28         ` 2.6.21-rc6-mm1 Rafael J. Wysocki
2007-04-10 23:59       ` 2.6.21-rc6-mm1 Adam Belay
2007-04-11  0:15         ` 2.6.21-rc6-mm1 Venki Pallipadi
2007-04-11  5:20           ` 2.6.21-rc6-mm1 Stephane Eranian
2007-04-11 10:39             ` 2.6.21-rc6-mm1 Andi Kleen
2007-04-11 13:09               ` 2.6.21-rc6-mm1 Stephane Eranian
2007-04-11 13:19                 ` 2.6.21-rc6-mm1 Andi Kleen
2007-04-11 18:06               ` 2.6.21-rc6-mm1 Andrew Morton
2007-04-09 19:03 ` 2.6.21-rc6-mm1 Torsten Kaiser
2007-04-09 21:42   ` <linux/wait.h> uses definitions from <linux/sched.h> (was Re: 2.6.21-rc6-mm1) Stefan Richter
2007-04-09 22:01     ` Stefan Richter
2007-04-10  0:50 ` Nishanth Aravamudan [this message]
2007-04-10  0:56   ` 2.6.21-rc6-mm1 Christoph Lameter
2007-04-10  1:07   ` 2.6.21-rc6-mm1 William Lee Irwin III
2007-04-10 11:28 ` 2.6.21-rc6-mm1 ima "BUG: held lock freed!" Joseph Fannin
2007-04-10 12:24 ` 2.6.21-rc6-mm1 Cornelia Huck
2007-04-10 12:38   ` 2.6.21-rc6-mm1 Ananth N Mavinakayanahalli
2007-04-10 21:08 ` [-mm patch] make struct proc_kpagemap static Adrian Bunk
2007-04-10 21:09   ` Matt Mackall
2007-04-10 21:08 ` [-mm patch] make kernel/module.c:is_exported() static Adrian Bunk
2007-04-10 21:08 ` [RFC: -mm patch] fs/ocfs2/: make 3 functions static Adrian Bunk
2007-04-10 22:21 ` 2.6.21-rc6-mm1 aacraid not finding device Steve Fox
2007-04-13 12:35   ` [PATCH] aacraid: " Salyzyn, Mark
2007-04-11 19:42 ` 2.6.21-rc6-mm1 USB related boot hang Helge Hafting
2007-04-11 20:43   ` Andrew Morton
2007-04-11 23:07     ` Helge Hafting
2007-04-11 23:25       ` Andrew Morton
2007-04-12  7:50       ` Jiri Kosina
2007-04-12  8:02         ` Jiri Kosina
2007-04-12 11:42           ` Helge Hafting
2007-04-12 16:47             ` Andrew Morton
2007-04-12 18:56               ` Helge Hafting
2007-04-12 15:31           ` Jiri Kosina
2007-04-12 16:01             ` Corey Minyard
2007-04-12 16:55             ` Andrew Morton
2007-04-12 17:25               ` Greg KH
2007-04-12 17:49               ` Jiri Kosina
2007-04-12 17:58                 ` Greg KH
2007-04-12 18:17                 ` Jiri Kosina
2007-04-12 21:06                   ` Corey Minyard
2007-04-12 20:19             ` Helge Hafting
2007-04-12 19:22         ` Helge Hafting
2007-04-12 18:32       ` Jiri Kosina
2007-04-12 20:25         ` Helge Hafting
2007-04-12 23:16           ` Jiri Kosina
2007-04-25  9:54             ` Helge Hafting
2007-04-25 11:28               ` Jiri Kosina
2007-04-25 12:45                 ` Helge Hafting
2007-04-26 18:38                 ` Helge Hafting
2007-04-26 22:28                 ` 2.6.21-rc6-mm1 USB related boot hang - bisection result Helge Hafting
2007-04-26 22:39                   ` Jiri Kosina
2007-04-26 23:13                     ` Andrew Morton
2007-04-27 21:04                     ` Helge Hafting
2007-04-27 22:41                       ` Andrew Morton
2007-04-13 23:45 ` CPU_IDLE prevents resuming from STR [was: Re: 2.6.21-rc6-mm1] Mattia Dongili
2007-04-16  2:40   ` Shaohua Li
2007-04-17  2:50     ` Joshua Wise
2007-04-17  2:50       ` Shaohua Li
2007-04-17  6:47       ` Shaohua Li
2007-04-18 23:00         ` Joshua Wise
2007-04-19  1:05           ` Shaohua Li
2007-04-24  8:10 ` 2.6.21-rc6-mm1 J.A. Magallón
2007-04-24 11:58   ` 2.6.21-rc6-mm1 Andrew Morton
2007-04-24 13:43     ` 2.6.21-rc6-mm1 J.A. Magallón
2007-04-24 17:22       ` 2.6.21-rc6-mm1 Andrew Morton
2007-04-25 20:50         ` 2.6.21-rc6-mm1 J.A. Magallón
2007-04-25 21:39           ` start_udev and devpts [Re: 2.6.21-rc6-mm1] J.A. Magallón
2007-04-25 22:26             ` J.A. Magallón

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=20070410005054.GA4027@us.ibm.com \
    --to=nacc@us.ibm.com \
    --cc=akpm@linux-foundation.org \
    --cc=clameter@sgi.com \
    --cc=drfickle@us.ibm.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