[lkml]   [2007]   [Sep]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    Subject[PATCH] i386/PAE: avoid temporarily inconsistent pte-s
    One more of these issues (which were considered fixed a few releases
    back): Other than on x86-64, i386 allows set_fixmap() to replace
    already present mappings. Consequently, on PAE, care must be taken to
    not update the high half of a pte while the low half is still holding
    the old value.

    Signed-off-by: Jan Beulich <>

    arch/i386/mm/pgtable.c | 3 +--
    1 files changed, 1 insertion(+), 2 deletions(-)

    --- linux-2.6.23-rc6/arch/i386/mm/pgtable.c 2007-09-14 17:38:47.000000000 +0200
    +++ 2.6.23-rc6-i386-set-fixmap/arch/i386/mm/pgtable.c 2007-09-19 10:49:53.000000000 +0200
    @@ -97,8 +97,7 @@ static void set_pte_pfn(unsigned long va
    pte = pte_offset_kernel(pmd, vaddr);
    if (pgprot_val(flags))
    - /* <pfn,flags> stored as-is, to permit clearing entries */
    - set_pte(pte, pfn_pte(pfn, flags));
    + set_pte_present(&init_mm, vaddr, pte, pfn_pte(pfn, flags));
    pte_clear(&init_mm, vaddr, pte);

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2007-09-19 16:41    [W:0.021 / U:34.020 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site