From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753925AbbERMIn (ORCPT ); Mon, 18 May 2015 08:08:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41175 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751837AbbERMIf (ORCPT ); Mon, 18 May 2015 08:08:35 -0400 Message-ID: <5559D627.7080201@redhat.com> Date: Mon, 18 May 2015 17:38:07 +0530 From: Pratyush Anand User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Oleg Nesterov , Ananth N Mavinakayanahalli , Anton Arapov , David Long , Denys Vlasenko , "Frank Ch. Eigler" , Ingo Molnar , Jan Willeke , Jim Keniston , Mark Wielaard , Srikar Dronamraju CC: linux-kernel@vger.kernel.org Subject: Re: [PATCH 07/10] uprobes/x86: Introduce arch_uretprobe_is_alive() References: <20150504124914.GA22512@redhat.com> In-Reply-To: <20150504124914.GA22512@redhat.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Oleg, On Monday 04 May 2015 06:19 PM, Oleg Nesterov wrote: > +bool __weak arch_uretprobe_is_alive(struct arch_uretprobe *auret, struct pt_regs *regs) > +{ > + return true; > +} IIUC, then this function should return false when both auret and regs are corresponding to same retprobe, else we need to return true, right? If that is the case, then should n't following work for all the cases: return sp != auret->sp; ~Pratyush