Received: by 10.213.65.68 with SMTP id h4csp2608697imn; Mon, 9 Apr 2018 06:21:06 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+kYv7MxMlRoqPK6vaX04W5gUji++1MlXjN5Lw1U6PCfu6xm29M9feDJkd+pAuAAqR+X7k5 X-Received: by 2002:a17:902:2468:: with SMTP id m37-v6mr37966633plg.388.1523280066068; Mon, 09 Apr 2018 06:21:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523280066; cv=none; d=google.com; s=arc-20160816; b=iY4ZlVyKXzeGFlAcCB/73uB87z4Z0CJrrEz2IYBdnhEPyHbWY+ig5cN79N8hgexvsL TLpe5XuZQyXeVu1fnek3ZHfT7DEVVHgCGM3ZDAc8dlN1VaCwdk5b3Zkvn09Hxeia/08F piAd7RNnclMvHLNVMAVtsHRZTisjMiqYGTGv9RMpxeYiL9aBWyMhNSsinYFwE26Y+MuI 1iNR2o5wLVtBLBPmFcsAqCG9Id/7t/w3tkLTw2PEfdD8eNmChIBC9oRNRT7l8go7SS+9 9gXmgSE3FNggjTA0RqPrt6ZUnZaFsLMCQWKonQfITkVnXafM8oj0wgBc5Ji75kC4iPtz fW6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=R0XV0l1QXZnFYdi/fnk/hJU9SxxPXdhlQPDxfcYeAGk=; b=mj/MYFFoIPrpRyqBU4IZr5w5tWybG8gfRz+ll1hp3vGF1E2jr69+7SEhs1Q4yQWyAy XoJ0TvNw6M3MOn2V4OZM2ZL5V0pEu1HFKgTLgTtnbwiJeleeBnoh99TMEEHxbxgwlorW 4ticAyvqXsZsIsnBEDBOvotCOHW6oQDrhokzajB/veVSrbi77FBQKg7jLC4TjQ/OjuAu qDMh1T3jy+rmtiGnArpDcgKjXrjwWHmZYAuTSKQJj6alFJy/+cR8IR4yaWlwMFNwT8l3 2xuGLiW6QmOx20ONhtxWj0z1WF0pi+VSvcamdjspoblt8/7mT1oz2/WEoGSVgHNvH0/1 xSNg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l4-v6si265607plb.741.2018.04.09.06.20.29; Mon, 09 Apr 2018 06:21:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752226AbeDINRj (ORCPT + 99 others); Mon, 9 Apr 2018 09:17:39 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:51844 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750982AbeDINRh (ORCPT ); Mon, 9 Apr 2018 09:17:37 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 458BEEB71E; Mon, 9 Apr 2018 13:17:36 +0000 (UTC) Received: from dhcp-27-174.brq.redhat.com (unknown [10.34.27.30]) by smtp.corp.redhat.com (Postfix) with SMTP id D23CC2024CA4; Mon, 9 Apr 2018 13:17:31 +0000 (UTC) Received: by dhcp-27-174.brq.redhat.com (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Mon, 9 Apr 2018 15:17:36 +0200 (CEST) Date: Mon, 9 Apr 2018 15:17:31 +0200 From: Oleg Nesterov To: Ravi Bangoria Cc: mhiramat@kernel.org, peterz@infradead.org, srikar@linux.vnet.ibm.com, rostedt@goodmis.org, acme@kernel.org, ananth@linux.vnet.ibm.com, akpm@linux-foundation.org, alexander.shishkin@linux.intel.com, alexis.berlemont@gmail.com, corbet@lwn.net, dan.j.williams@intel.com, jolsa@redhat.com, kan.liang@intel.com, kjlx@templeofstupid.com, kstewart@linuxfoundation.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, milian.wolff@kdab.com, mingo@redhat.com, namhyung@kernel.org, naveen.n.rao@linux.vnet.ibm.com, pc@us.ibm.com, tglx@linutronix.de, yao.jin@linux.intel.com, fengguang.wu@intel.com, jglisse@redhat.com Subject: Re: [PATCH v2 7/9] trace_uprobe/sdt: Fix multiple update of same reference counter Message-ID: <20180409131730.GA25631@redhat.com> References: <20180404083110.18647-1-ravi.bangoria@linux.vnet.ibm.com> <20180404083110.18647-8-ravi.bangoria@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180404083110.18647-8-ravi.bangoria@linux.vnet.ibm.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Mon, 09 Apr 2018 13:17:36 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Mon, 09 Apr 2018 13:17:36 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'oleg@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/04, Ravi Bangoria wrote: > > +static void sdt_add_mm_list(struct trace_uprobe *tu, struct mm_struct *mm) > +{ > + struct mmu_notifier *mn; > + struct sdt_mm_list *sml = kzalloc(sizeof(*sml), GFP_KERNEL); > + > + if (!sml) > + return; > + sml->mm = mm; > + list_add(&(sml->list), &(tu->sml.list)); > + > + /* Register mmu_notifier for this mm. */ > + mn = kzalloc(sizeof(*mn), GFP_KERNEL); > + if (!mn) > + return; > + > + mn->ops = &sdt_mmu_notifier_ops; > + __mmu_notifier_register(mn, mm); > +} I didn't read this version yet, just one question... So now it depends on CONFIG_MMU_NOTIFIER, yes? I do not see any changes in Kconfig files, this doesn't look right... Oleg.