Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] x86_64 ia32 vDSO: define arch_vma_name

This patch makes x86_64 define arch_vma_name for CONFIG_IA32_EMULATION. This
makes the ia32 vDSO mapping appear in /proc/PID/maps with "[vdso]" for ia32
processes, as it does on native i386.

Signed-off-by: Roland McGrath <roland@redhat.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Roland McGrath and committed by
Linus Torvalds
c633090e 3a0cfadb

+8
+8
arch/x86_64/ia32/syscall32.c
··· 82 82 return 0; 83 83 } 84 84 85 + const char *arch_vma_name(struct vm_area_struct *vma) 86 + { 87 + if (vma->vm_start == VSYSCALL32_BASE && 88 + vma->vm_mm && vma->vm_mm->task_size == IA32_PAGE_OFFSET) 89 + return "[vdso]"; 90 + return NULL; 91 + } 92 + 85 93 static int __init init_syscall32(void) 86 94 { 87 95 syscall32_page = (void *)get_zeroed_page(GFP_KERNEL);