Commit a57ebfdb authored by Christoph Lameter's avatar Christoph Lameter Committed by Linus Torvalds

[PATCH] numa_maps: Fix potential crash on non IA64 platforms

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: default avatarChristoph Lameter <clameter@engr.sgi.com>
Cc: Hugh Dickins <hugh@veritas.com>
Cc: Andi Kleen <ak@muc.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 685db65e
...@@ -1793,6 +1793,7 @@ int show_numa_map(struct seq_file *m, void *v) ...@@ -1793,6 +1793,7 @@ int show_numa_map(struct seq_file *m, void *v)
if (!md) if (!md)
return 0; return 0;
if (!is_vm_hugetlb_page(vma))
check_pgd_range(vma, vma->vm_start, vma->vm_end, check_pgd_range(vma, vma->vm_start, vma->vm_end,
&node_online_map, MPOL_MF_STATS, md); &node_online_map, MPOL_MF_STATS, md);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment