From: Jan Beulich Date: Wed, 15 Aug 2007 10:38:54 +0000 (+0200) Subject: [PATCH] i386: allow debuggers to access the vsyscall page with compat vDSO X-Git-Tag: v2.6.20.21~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e4c8331d3245f8de7a0d59acc4f22bf13d061c0;p=thirdparty%2Fkernel%2Fstable.git [PATCH] i386: allow debuggers to access the vsyscall page with compat vDSO Signed-off-by: Jan Beulich Signed-off-by: Andi Kleen Signed-off-by: Greg Kroah-Hartman --- diff --git a/arch/i386/kernel/sysenter.c b/arch/i386/kernel/sysenter.c index 666f70d926191..05773128440dc 100644 --- a/arch/i386/kernel/sysenter.c +++ b/arch/i386/kernel/sysenter.c @@ -183,7 +183,9 @@ struct vm_area_struct *get_gate_vma(struct task_struct *tsk) int in_gate_area(struct task_struct *task, unsigned long addr) { - return 0; + const struct vm_area_struct *vma = get_gate_vma(task); + + return vma && addr >= vma->vm_start && addr < vma->vm_end; } int in_gate_area_no_task(unsigned long addr)