Skip to content

Commit

Permalink
i386: allow debuggers to access the vsyscall page with compat vDSO
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Jan Beulich authored and Linus Torvalds committed Jul 22, 2007
1 parent cdc1793 commit 2f30c00
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arch/i386/kernel/sysenter.c
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,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)
Expand Down

0 comments on commit 2f30c00

Please sign in to comment.