All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] i386: allow debuggers to access the vsyscall page with compat vDSO
@ 2007-07-04 12:14 Jan Beulich
  0 siblings, 0 replies; only message in thread
From: Jan Beulich @ 2007-07-04 12:14 UTC (permalink / raw)
  To: Andi Kleen; +Cc: linux-kernel

Signed-off-by: Jan Beulich <jbeulich@novell.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)




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-07-04 12:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-04 12:14 [PATCH] i386: allow debuggers to access the vsyscall page with compat vDSO Jan Beulich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.