--- x/fs/proc/task_mmu.c +++ t/fs/proc/task_mmu.c @@ -274,6 +274,7 @@ static void show_vma_header_prefix(struc static void show_map_vma(struct seq_file *m, struct vm_area_struct *vma) { + struct proc_maps_private *priv = m->private; struct mm_struct *mm = vma->vm_mm; struct file *file = vma->vm_file; vm_flags_t flags = vma->vm_flags; @@ -294,7 +295,11 @@ show_map_vma(struct seq_file *m, struct start = vma->vm_start; end = vma->vm_end; show_vma_header_prefix(m, start, end, flags, pgoff, dev, ino); - anon_name = anon_vma_name(vma); + + if (mm == priv->mm) + anon_name = anon_vma_name(vma); + else + anon_name = NULL; /* * Print the dentry name for named mappings, and a