Re: [PPC64] Hugepage hash flushing bugfix

From: William Lee Irwin III (wli_at_holomorphy.com)
Date: 02/25/05

  • Next message: Jay Lan: "[PATCH 2.6.11-rc4-mm1] end-of-proces handling for acct-csa"
    Date:	Thu, 24 Feb 2005 20:28:10 -0800
    To: David Gibson <david@gibson.dropbear.id.au>
    
    

    On Fri, Feb 25, 2005 at 03:14:46PM +1100, David Gibson wrote:
    > Andrew, Linus, please apply:
    > Fix a potentially bad (although very rarely triggered) bug in the
    > ppc64 hugepage code. hpte_update() did not correctly calculate the
    > address for hugepages, so pte_clear() (which we use for hugepage ptes
    > as well as normal ones) would not correctly flush the hash page table
    > entry. Under the right circumstances this could potentially lead to
    > duplicate hash entries, which is very bad.
    > davem's upcoming patch to pass the virtual address directly to
    > set_pte() and its ilk will obsolete this, but this is bad enough it
    > should probably be fixed in the meantime.
    > Signed-off-by: David Gibson <dwg@au1.ibm.com>

    Very clear explanation. I second the motion for a rapid merge.

    Acked-by: William Irwin <wli@holomorphy.com>
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Jay Lan: "[PATCH 2.6.11-rc4-mm1] end-of-proces handling for acct-csa"

    Relevant Pages

    • [PPC64] Hugepage hash flushing bugfix
      ... ppc64 hugepage code. ... address for hugepages, so pte_clear(which we use for hugepage ptes ... duplicate hash entries, which is very bad. ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • Re: [BUG] hugetlb MAP_PRIVATE mapping vs /dev/zero
      ... For now forcing VM_SHARED in the hugetlbfs code is ... but if we ever allow MAP_PRIVATE hugepage mappings ... > shared which is tripping up zeromap as the fact that it isn't mapped ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Kill off hugepage_vma()
      ... >> hugepage pagetables, rather than being looked up in the normal ... than leaving it as two functions for a reason - akpm indicated that he ... better myself, too, although it's not a strong preference. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH 0/4] Swap migration V3: Overview
      ... Hugepage pagefaulting is being worked on by Hugh and Adam Litke. ... fragmentation avoidance patches plus memory defragmentation using memory ... So all bits should be around for hugepage migration by now? ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [Lhms-devel] [PATCH 0/7] Fragmentation Avoidance V19
      ... Well I think it can satisfy hugepage allocations simply because ... Send instant messages to your online friends http://au.messenger.yahoo.com ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)