[<prev] [next>] [day] [month] [year] [list]
Message-Id: <468BAB30.76E4.0078.0@novell.com>
Date: Wed, 04 Jul 2007 13:14:08 +0100
From: "Jan Beulich" <jbeulich@...ell.com>
To: "Andi Kleen" <ak@...e.de>
Cc: <linux-kernel@...r.kernel.org>
Subject: [PATCH] i386: allow debuggers to access the vsyscall page with
compat vDSO
Signed-off-by: Jan Beulich <jbeulich@...ell.com>
arch/i386/kernel/sysenter.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletion(-)
--- linux-2.6.22-rc7/arch/i386/kernel/sysenter.c 2007-07-03 10:57:29.000000000 +0200
+++ 2.6.22-rc7-i386-in-gate-area/arch/i386/kernel/sysenter.c 2007-07-04 11:39:35.000000000 +0200
@@ -336,7 +336,9 @@ struct vm_area_struct *get_gate_vma(stru
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)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists