* Andi Kleen <andi@firstfloor.org> wrote:this is indeed a bug (we change the attributes for a larger area than needed), but your fix is unclean. Find below a cleaner solution. Ying, if you agree with this fix could you please test and ACK it before we push it to Linus? (this fix is also in the latest x86.git#mm) Thanks, Ingo -----------------> Subject: x86: EFI set_memory_x()/set_memory_uc() fixes From: Ingo Molnar <mingo@elte.hu> Date: Thu Feb 14 14:21:32 CET 2008 The EFI-runtime mapping code changed a larger memory area than it should have, due to a pages/bytes parameter mixup. noticed by Andi Kleen. Signed-off-by: Ingo Molnar <mingo@elte.hu> --- arch/x86/kernel/efi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: linux-x86.q/arch/x86/kernel/efi.c =================================================================== --- linux-x86.q.orig/arch/x86/kernel/efi.c +++ linux-x86.q/arch/x86/kernel/efi.c @@ -391,7 +391,7 @@ static void __init runtime_code_page_mke if (md->type != EFI_RUNTIME_SERVICES_CODE) continue; - set_memory_x(md->virt_addr, md->num_pages << EFI_PAGE_SHIFT); + set_memory_x(md->virt_addr, md->num_pages); } } @@ -434,7 +434,7 @@ void __init efi_enter_virtual_mode(void) } if (!(md->attribute & EFI_MEMORY_WB)) - set_memory_uc(md->virt_addr, size); + set_memory_uc(md->virt_addr, md->num_pages); systab = (u64) (unsigned long) efi_phys.systab; if (md->phys_addr <= systab && systab < end) { --
| Andrew Morton | -mm merge plans for 2.6.23 |
| Greg Kroah-Hartman | [PATCH 004/196] Chinese: add translation of SubmittingPatches |
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Gabriel C | Re: [Announce] [patch] Modular Scheduler Core and Completely Fair Scheduler [CFS] |
git: | |
| Gerrit Renker | [PATCH 03/37] dccp: List management for new feature negotiation |
| David Miller | [GIT]: Networking |
| Thomas Jarosch | Re: TCP connection stalls under 2.6.24.7 |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
