From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail144.messagelabs.com (mail144.messagelabs.com [216.82.254.51]) by kanga.kvack.org (Postfix) with ESMTP id 444B99000BD for ; Tue, 27 Sep 2011 07:44:52 -0400 (EDT) Subject: Re: [PATCH v5 3.1.0-rc4-tip 17/26] x86: arch specific hooks for pre/post singlestep handling. From: Peter Zijlstra Date: Tue, 27 Sep 2011 13:44:12 +0200 In-Reply-To: <20110926163426.GA15435@linux.vnet.ibm.com> References: <20110920115938.25326.93059.sendpatchset@srdronam.in.ibm.com> <20110920120325.25326.11641.sendpatchset@srdronam.in.ibm.com> <1317047033.1763.27.camel@twins> <20110926163426.GA15435@linux.vnet.ibm.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Message-ID: <1317123853.15383.41.camel@twins> Mime-Version: 1.0 Sender: owner-linux-mm@kvack.org List-ID: To: Srikar Dronamraju Cc: Ingo Molnar , Steven Rostedt , Linux-mm , Arnaldo Carvalho de Melo , Linus Torvalds , Masami Hiramatsu , Hugh Dickins , Christoph Hellwig , Ananth N Mavinakayanahalli , Thomas Gleixner , Jonathan Corbet , Oleg Nesterov , LKML , Jim Keniston , Roland McGrath , Andi Kleen , Andrew Morton On Mon, 2011-09-26 at 22:04 +0530, Srikar Dronamraju wrote: > * Peter Zijlstra [2011-09-26 16:23:53]: >=20 > > On Tue, 2011-09-20 at 17:33 +0530, Srikar Dronamraju wrote: > > > +fail: > > > + pr_warn_once("uprobes: Failed to adjust return address after" > > > + " single-stepping call instruction;" > > > + " pid=3D%d, sp=3D%#lx\n", current->pid, sp); > > > + return -EFAULT;=20 > >=20 > > So how can that happen? Single-Step while someone unmapped the stack? >=20 > We do a copy_to_user, copy_from_user just above this, I saw that, > Now if either of > them fail, we have no choice but to Bail out. Agreed, > What caused this EFault may not be under Uprobes's Control. I never said it was.. All I asked is what (outside of uprobe) was done to cause this, and why is this particular error important enough to warrant a warn. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org