linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: Oliver Pinter <oliver.pntr@gmail.com>
Cc: stable@kernel.org, Jack Steiner <steiner@sgi.com>, linux-mm@kvack.org
Subject: Re: [RFC] x86 fix for stable
Date: Sun, 20 Jul 2008 17:24:03 +0200	[thread overview]
Message-ID: <20080720152403.GA8449@elte.hu> (raw)
In-Reply-To: <6101e8c40807200815x68da6731t210b8fbbbe510673@mail.gmail.com>

* Oliver Pinter <oliver.pntr@gmail.com> wrote:

> git id: e22146e610bb7aed63282148740ab1d1b91e1d90
> 
> commit e22146e610bb7aed63282148740ab1d1b91e1d90
> Author: Jack Steiner <steiner@sgi.com>
> Date:   Wed Jul 16 11:11:59 2008 -0500
> 
>     x86: fix kernel_physical_mapping_init() for large x86 systems
> 
>     Fix bug in kernel_physical_mapping_init() that causes kernel
>     page table to be built incorrectly for systems with greater
>     than 512GB of memory.
> 
>     Signed-off-by: Jack Steiner <steiner@sgi.com>
>     Cc: linux-mm@kvack.org
>     Signed-off-by: Ingo Molnar <mingo@elte.hu>

correct. It wont apply thought - below is a quick backport to v2.6.26.

	Ingo

--------------------->
Author: Ingo Molnar <mingo@elte.hu>
Date:   Sun Jul 20 17:22:50 2008 +0200

    x86: fix kernel_physical_mapping_init() for large x86 systems
    
    Fix bug in kernel_physical_mapping_init() that causes kernel
    page table to be built incorrectly for systems with greater
    than 512GB of memory.
    
    Signed-off-by: Jack Steiner <steiner@sgi.com>
    Cc: linux-mm@kvack.org
    Signed-off-by: Ingo Molnar <mingo@elte.hu>
    
    Conflicts:
    
    	arch/x86/mm/init_64.c
    
    Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
 arch/x86/mm/init_64.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c
index 819dad9..7b27710 100644
--- a/arch/x86/mm/init_64.c
+++ b/arch/x86/mm/init_64.c
@@ -579,7 +579,7 @@ unsigned long __init_refok init_memory_mapping(unsigned long start, unsigned lon
 		else
 			pud = alloc_low_page(&pud_phys);
 
-		next = start + PGDIR_SIZE;
+		next = (start + PGDIR_SIZE) & PGDIR_MASK;
 		if (next > end)
 			next = end;
 		last_map_addr = phys_pud_init(pud, __pa(start), __pa(next));

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

      reply	other threads:[~2008-07-20 15:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-20 15:15 Oliver Pinter
2008-07-20 15:24 ` Ingo Molnar [this message]

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=20080720152403.GA8449@elte.hu \
    --to=mingo@elte.hu \
    --cc=linux-mm@kvack.org \
    --cc=oliver.pntr@gmail.com \
    --cc=stable@kernel.org \
    --cc=steiner@sgi.com \
    /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