[patch 15/20] i386: allow debuggers to access the vsyscall page with compat vDSO

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Greg KH
Date: Monday, August 20, 2007 - 11:55 pm

-stable review patch.  If anyone has any objections, please let us know.

------------------
From: Jan Beulich <jbeulich@novell.com>


From: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

---
 arch/i386/kernel/sysenter.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

--- a/arch/i386/kernel/sysenter.c
+++ b/arch/i386/kernel/sysenter.c
@@ -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)

-- 
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch 00/20] 2.6.22-stable review, Greg KH, (Mon Aug 20, 11:52 pm)
[patch 04/20] sky2: carrier management, Greg KH, (Mon Aug 20, 11:54 pm)
[patch 06/20] sky2: check drop truncated packets, Greg KH, (Mon Aug 20, 11:54 pm)
[patch 15/20] i386: allow debuggers to access the vsyscall ..., Greg KH, (Mon Aug 20, 11:55 pm)
[patch 19/20] i386: Fix double fault handler, Greg KH, (Mon Aug 20, 11:56 pm)
[patch 20/20] JFFS2 locking regression fix., Greg KH, (Mon Aug 20, 11:56 pm)
Re: [patch 00/20] 2.6.22-stable review, Justin M. Forbes, (Tue Aug 21, 8:33 am)
Re: [stable] [patch 00/20] 2.6.22-stable review, Greg KH, (Wed Aug 22, 5:10 pm)