]> err.no Git - linux-2.6/commitdiff
[PATCH] numa_maps: Fix potential crash on non IA64 platforms
authorChristoph Lameter <clameter@engr.sgi.com>
Thu, 2 Mar 2006 10:54:37 +0000 (02:54 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 2 Mar 2006 16:33:07 +0000 (08:33 -0800)
numa_maps should not scan over huge vmas in order not to cause problems for
non IA64 platforms that may have pte entries pointing to huge pages in a
variety of ways in their page tables.  Add a simple check to ignore vmas
containing huge pages.

Signed-off-by: Christoph Lameter <clameter@engr.sgi.com>
Cc: Hugh Dickins <hugh@veritas.com>
Cc: Andi Kleen <ak@muc.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/mempolicy.c

index 5643cfed6b0f3e038ff078b561c5a1e216e8216b..1a210088ad8011ae12f9d89d0f452ba1b265c052 100644 (file)
@@ -1793,7 +1793,8 @@ int show_numa_map(struct seq_file *m, void *v)
        if (!md)
                return 0;
 
-       check_pgd_range(vma, vma->vm_start, vma->vm_end,
+       if (!is_vm_hugetlb_page(vma))
+               check_pgd_range(vma, vma->vm_start, vma->vm_end,
                    &node_online_map, MPOL_MF_STATS, md);
 
        if (md->pages) {