diff options
author | Christoph Lameter <clameter@engr.sgi.com> | 2006-03-02 02:54:37 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-02 08:33:07 -0800 |
commit | a57ebfdb2cf9fa60dfa2f403f70ef6c432ca2a62 (patch) | |
tree | 1597343f3e9c076fa37ceb2c6442cc9e3ca44656 /mm/mempolicy.c | |
parent | 685db65e422bfa523b8a9dacb5a658b42b254f05 (diff) | |
download | kernel_samsung_tuna-a57ebfdb2cf9fa60dfa2f403f70ef6c432ca2a62.zip kernel_samsung_tuna-a57ebfdb2cf9fa60dfa2f403f70ef6c432ca2a62.tar.gz kernel_samsung_tuna-a57ebfdb2cf9fa60dfa2f403f70ef6c432ca2a62.tar.bz2 |
[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: 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>
Diffstat (limited to 'mm/mempolicy.c')
-rw-r--r-- | mm/mempolicy.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/mempolicy.c b/mm/mempolicy.c index 5643cfe..1a21008 100644 --- a/mm/mempolicy.c +++ b/mm/mempolicy.c @@ -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) { |