• Andrew Morton's avatar
    [PATCH] hugetlbpage msync() fix · dde27822
    Andrew Morton authored
    From: David Gibson <david@gibson.dropbear.id.au>
    
    Currently, calling msync() on a hugepage area will cause the kernel to blow
    up with a bad_page() (at least on ppc64, but I think the problem will exist
    on other archs too).  The msync path attempts to walk pagetables which may
    not be there, or may have an unusual layout for hugepages.
    
    Lucikly we shouldn't need to do anything for an msync on hugetlbfs beyond
    flushing the cache, so this patch should be sufficient to fix the problem.
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    dde27822
msync.c 5.58 KB