From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752618Ab0ELKbQ (ORCPT ); Wed, 12 May 2010 06:31:16 -0400 Received: from e28smtp01.in.ibm.com ([122.248.162.1]:53685 "EHLO e28smtp01.in.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751884Ab0ELKbO (ORCPT ); Wed, 12 May 2010 06:31:14 -0400 Date: Wed, 12 May 2010 16:01:09 +0530 From: Srikar Dronamraju To: Peter Zijlstra Cc: Oleg Nesterov , Ingo Molnar , Andrew Morton , Linus Torvalds , Masami Hiramatsu , Randy Dunlap , Ananth N Mavinakayanahalli , Jim Keniston , Frederic Weisbecker , "Frank Ch. Eigler" , LKML , Roland McGrath , Mel Gorman , "Paul E. McKenney" , Andrea Arcangeli , Hugh Dickins , Rik van Riel Subject: Re: [PATCH v2 7/11] Uprobes Implementation Message-ID: <20100512103109.GL7426@linux.vnet.ibm.com> Reply-To: Srikar Dronamraju References: <20100413183537.GA17538@redhat.com> <20100415093506.GA2064@linux.vnet.ibm.com> <20100419193139.GA24080@redhat.com> <20100420124358.GA20675@linux.vnet.ibm.com> <20100420153023.GA9351@redhat.com> <20100421065948.GA5440@linux.vnet.ibm.com> <20100421160515.GA11321@redhat.com> <20100422133154.GA10776@linux.vnet.ibm.com> <20100422154059.GA5916@redhat.com> <1273610723.1810.105.camel@laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <1273610723.1810.105.camel@laptop> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Peter Zijlstra [2010-05-11 22:45:23]: > On Thu, 2010-04-22 at 17:40 +0200, Oleg Nesterov wrote: > > > > Either way, I think register_uprobe() should disallow the probes in > > VM_SHARED/VM_MAYWRITE vmas. > > VM_SHARED, fully agreed, MAYWRITE not so sure, MAP_PRIVATE has MAYWRITE > iirc and its perfectly fine to poke at those. > Okay, I will put a check to disallow probes in VM_SHARED vmas. -- Thanks and Regards Srikar