* [RFC] x86 fix for stable
@ 2008-07-20 15:15 Oliver Pinter
2008-07-20 15:24 ` Ingo Molnar
0 siblings, 1 reply; 2+ messages in thread
From: Oliver Pinter @ 2008-07-20 15:15 UTC (permalink / raw)
To: stable; +Cc: Jack Steiner, linux-mm, Ingo Molnar
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>
diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c
index 27de243..306049e 100644
--- a/arch/x86/mm/init_64.c
+++ b/arch/x86/mm/init_64.c
@@ -644,7 +644,7 @@ static unsigned long __init
kernel_physical_mapping_init(unsigned long start,
unsigned long pud_phys;
pud_t *pud;
- next = start + PGDIR_SIZE;
+ next = (start + PGDIR_SIZE) & PGDIR_MASK;
if (next > end)
next = end;
--
Thanks,
Oliver
--
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>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [RFC] x86 fix for stable
2008-07-20 15:15 [RFC] x86 fix for stable Oliver Pinter
@ 2008-07-20 15:24 ` Ingo Molnar
0 siblings, 0 replies; 2+ messages in thread
From: Ingo Molnar @ 2008-07-20 15:24 UTC (permalink / raw)
To: Oliver Pinter; +Cc: stable, Jack Steiner, linux-mm
* 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>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-07-20 15:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-20 15:15 [RFC] x86 fix for stable Oliver Pinter
2008-07-20 15:24 ` Ingo Molnar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox