From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754710AbeDWKDv (ORCPT ); Mon, 23 Apr 2018 06:03:51 -0400 Received: from mail-ot0-f195.google.com ([74.125.82.195]:33980 "EHLO mail-ot0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754466AbeDWKDu (ORCPT ); Mon, 23 Apr 2018 06:03:50 -0400 X-Google-Smtp-Source: AB8JxZpk3PZkmh3xRpdTuoREVdBCoC1g96ibZMwShYcRFcJBqdMQd2BGC8RKU0KX3S9jKh9q8ayyk+Ay7LfvylqElWE= MIME-Version: 1.0 X-Originating-IP: [176.63.54.97] In-Reply-To: <20180420165625.129593-2-songliubraving@fb.com> References: <20180420165625.129593-1-songliubraving@fb.com> <20180420165625.129593-2-songliubraving@fb.com> From: Miklos Szeredi Date: Mon, 23 Apr 2018 12:03:49 +0200 Message-ID: Subject: Re: [PATCH v3 2/2] tracing: remove igrab() iput() call from uprobes.c To: Song Liu Cc: linux-kernel@vger.kernel.org, kernel-team , Steven Rostedt , Ingo Molnar , Howard McLauchlan , Josef Bacik , Srikar Dronamraju Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 20, 2018 at 6:56 PM, Song Liu wrote: > Caller of uprobe_register is required to keep the inode and containing > mount point referenced. > > Cc: Steven Rostedt > Cc: Ingo Molnar > Cc: Howard McLauchlan > Cc: Josef Bacik > Cc: Srikar Dronamraju > Cc: Miklos Szeredi > Signed-off-by: Song Liu > --- > kernel/events/uprobes.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/kernel/events/uprobes.c b/kernel/events/uprobes.c > index ce6848e..20486bb 100644 > --- a/kernel/events/uprobes.c > +++ b/kernel/events/uprobes.c > @@ -491,7 +491,6 @@ static struct uprobe *alloc_uprobe(struct inode *inode, loff_t offset) > if (!uprobe) > return NULL; > > - uprobe->inode = igrab(inode); Where has the assignment gone? Testing your changes would not hurt... Thanks, Miklos