Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760317AbXHUG6B (ORCPT ); Tue, 21 Aug 2007 02:58:01 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759047AbXHUGzA (ORCPT ); Tue, 21 Aug 2007 02:55:00 -0400 Received: from canuck.infradead.org ([209.217.80.40]:44308 "EHLO canuck.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761458AbXHUGy6 (ORCPT ); Tue, 21 Aug 2007 02:54:58 -0400 Date: Mon, 20 Aug 2007 23:55:43 -0700 From: Greg KH To: linux-kernel@vger.kernel.org, stable@kernel.org, jbeulich@novell.com, patches@x86-64.org Cc: Justin Forbes , Zwane Mwaikambo , "Theodore Ts'o" , Randy Dunlap , Dave Jones , Chuck Wolber , Chris Wedgwood , Michael Krufky , Chuck Ebbert , Domenico Andreoli , torvalds@linux-foundation.org, akpm@linux-foundation.org, alan@lxorguk.ukuu.org.uk, Andi Kleen , Greg Kroah-Hartman Subject: [patch 15/20] i386: allow debuggers to access the vsyscall page with compat vDSO Message-ID: <20070821065543.GP5275@kroah.com> References: <20070821064251.972690753@blue.kroah.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline; filename="i386-allow-debuggers-to-access-the-vsyscall-page-with-compat-vdso.patch" In-Reply-To: <20070821065210.GA5275@kroah.com> User-Agent: Mutt/1.5.15 (2007-04-06) X-Bad-Reply: References and In-Reply-To but no 'Re:' in Subject. Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1039 Lines: 35 -stable review patch. If anyone has any objections, please let us know. ------------------ From: Jan Beulich From: Jan Beulich Signed-off-by: Jan Beulich Signed-off-by: Andi Kleen Signed-off-by: Greg Kroah-Hartman --- 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) -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/