From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753776Ab1I0LpD (ORCPT ); Tue, 27 Sep 2011 07:45:03 -0400 Received: from casper.infradead.org ([85.118.1.10]:54658 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753729Ab1I0LpA convert rfc822-to-8bit (ORCPT ); Tue, 27 Sep 2011 07:45:00 -0400 Subject: Re: [PATCH v5 3.1.0-rc4-tip 17/26] x86: arch specific hooks for pre/post singlestep handling. From: Peter Zijlstra 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 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: 8BIT X-Mailer: Evolution 3.0.3- Message-ID: <1317123853.15383.41.camel@twins> Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2011-09-26 at 22:04 +0530, Srikar Dronamraju wrote: > * Peter Zijlstra [2011-09-26 16:23:53]: > > > 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=%d, sp=%#lx\n", current->pid, sp); > > > + return -EFAULT; > > > > So how can that happen? Single-Step while someone unmapped the stack? > > 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.