From: William Lee Irwin III <wli@holomorphy.com>
To: "Mr. Berkley Shands" <berkley@exegy.com>
Cc: Hugh Dickins <hugh@veritas.com>, Andrew Morton <akpm@osdl.org>,
linux-kernel@vger.kernel.org, kenneth.w.chen@intel.com
Subject: Re: 2.6.10 Kernel BUG at hugetlbpage:212 (x86_64 and i386)
Date: Fri, 4 Feb 2005 12:16:36 -0800 [thread overview]
Message-ID: <20050204201636.GP24805@holomorphy.com> (raw)
In-Reply-To: <4203D5AD.8030108@cse.wustl.edu>
On Fri, Feb 04, 2005 at 02:06:05PM -0600, Mr. Berkley Shands wrote:
> Sorry, but I still crash. This time it hung the kernel so bad I had to
> powerfail to restart.
Well, that fix is needed anyway.
On Fri, Feb 04, 2005 at 02:06:05PM -0600, Mr. Berkley Shands wrote:
> Feb 4 13:43:19 eclipse kernel: RIP: 0010:[<ffffffff8011e3cb>]
> <ffffffff8011e3cb>{unmap_hugepage_range+75}
Could you try this?
-- wli
Index: mm2-2.6.11-rc2/arch/i386/mm/hugetlbpage.c
===================================================================
--- mm2-2.6.11-rc2.orig/arch/i386/mm/hugetlbpage.c 2005-01-29 01:13:39.000000000 -0800
+++ mm2-2.6.11-rc2/arch/i386/mm/hugetlbpage.c 2005-02-04 12:05:12.000000000 -0800
@@ -209,14 +209,17 @@
{
struct mm_struct *mm = vma->vm_mm;
unsigned long address;
- pte_t pte;
+ pte_t pte, *ptep;
struct page *page;
BUG_ON(start & (HPAGE_SIZE - 1));
BUG_ON(end & (HPAGE_SIZE - 1));
for (address = start; address < end; address += HPAGE_SIZE) {
- pte = ptep_get_and_clear(huge_pte_offset(mm, address));
+ ptep = huge_pte_offset(mm, address);
+ if (!ptep)
+ continue;
+ pte = ptep_get_and_clear(ptep);
if (pte_none(pte))
continue;
page = pte_page(pte);
next prev parent reply other threads:[~2005-02-04 20:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-03 14:21 2.6.10 Kernel BUG at hugetlbpage:212 (x86_64 and i386) Mr. Berkley Shands
2005-02-04 16:39 ` Hugh Dickins
2005-02-04 19:42 ` William Lee Irwin III
[not found] ` <4203D5AD.8030108@cse.wustl.edu>
2005-02-04 20:16 ` William Lee Irwin III [this message]
2005-02-04 20:29 ` Hugh Dickins
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=20050204201636.GP24805@holomorphy.com \
--to=wli@holomorphy.com \
--cc=akpm@osdl.org \
--cc=berkley@exegy.com \
--cc=hugh@veritas.com \
--cc=kenneth.w.chen@intel.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