Skip to contentSkip to conversation

i386: allow debuggers to access the vsyscall page with compat vDSO

PATCH New Jan Beulich 1 participant 1 message Jul 4, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i386: allow debuggers to access the vsyscall page with compat vDSO

 arch/i386/kernel/sysenter.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)
arch/i386/kernel/sysenter.c +3 -1
@@ -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)