• David Gibson's avatar
    [PATCH] powerpc: fix for hugepage areas straddling 4GB boundary · 5e391dc9
    David Gibson authored
    Commit 7d24f0b8 fixed bugs in the ppc64 SLB
    miss handler with respect to hugepage handling, and in the process tweaked
    the semantics of the hugepage address masks in mm_context_t.
    
    Unfortunately, it left out a couple of necessary changes to go with that
    change.  First, the in_hugepage_area() macro was not updated to match,
    second prepare_hugepage_range() was not updated to correctly handle
    hugepages regions which straddled the 4GB point.
    
    The latter appears only to cause process-hangs when attempting to map such
    a region, but the former can cause oopses if a get_user_pages() is
    triggered at the wrong point.  This patch addresses both bugs.
    Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    5e391dc9
page_64.h 5.27 KB