From 85d366e8e375a8e7a5ed1a1be099104ee04541e5 Mon Sep 17 00:00:00 2001 From: Andrey Vagin Date: Wed, 7 May 2014 22:20:27 +0400 Subject: [PATCH] vdso: don't scan MAP_GROWSDOWN vmas * VDSO is never mapped with MAP_GROWSDOWN * The first page of growsdown vma may be a guard page, so any attempt to read it is suppressed by SIGBUS. Signed-off-by: Andrey Vagin Signed-off-by: Cyrill Gorcunov Signed-off-by: Pavel Emelyanov --- arch/x86/vdso.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/vdso.c b/arch/x86/vdso.c index d240ba5ba..80f1c806e 100644 --- a/arch/x86/vdso.c +++ b/arch/x86/vdso.c @@ -61,6 +61,9 @@ int parasite_fixup_vdso(struct parasite_ctl *ctl, pid_t pid, if (vma->e->start > TASK_SIZE) continue; + if (vma->e->flags & MAP_GROWSDOWN) + continue; + /* * I need to poke every potentially marked vma, * otherwise if task never called for vdso functions