diff options
author | Jan Beulich <jbeulich@novell.com> | 2007-07-21 11:10:21 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-21 21:37:09 -0400 |
commit | 2f30c00702aca3229e1157718675f0ee56d2a931 (patch) | |
tree | 9fed77b2b4e3fcc33088c03270d2e94e906b965b /arch/i386/kernel/sysenter.c | |
parent | cdc1793ef7f5ccc47696e3d00b827e832e4c5bdb (diff) |
i386: allow debuggers to access the vsyscall page with compat vDSO
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>
Diffstat (limited to 'arch/i386/kernel/sysenter.c')
-rw-r--r-- | arch/i386/kernel/sysenter.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/i386/kernel/sysenter.c b/arch/i386/kernel/sysenter.c index ff4ee6f3326b..6deb159d08e0 100644 --- a/arch/i386/kernel/sysenter.c +++ b/arch/i386/kernel/sysenter.c | |||
@@ -336,7 +336,9 @@ struct vm_area_struct *get_gate_vma(struct task_struct *tsk) | |||
336 | 336 | ||
337 | int in_gate_area(struct task_struct *task, unsigned long addr) | 337 | int in_gate_area(struct task_struct *task, unsigned long addr) |
338 | { | 338 | { |
339 | return 0; | 339 | const struct vm_area_struct *vma = get_gate_vma(task); |
340 | |||
341 | return vma && addr >= vma->vm_start && addr < vma->vm_end; | ||
340 | } | 342 | } |
341 | 343 | ||
342 | int in_gate_area_no_task(unsigned long addr) | 344 | int in_gate_area_no_task(unsigned long addr) |