Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp910076ybj; Thu, 7 May 2020 10:18:22 -0700 (PDT) X-Google-Smtp-Source: APiQypJ8wqKMBYR9qr3pn8ztXOYTs1NfLTDrX3cpz4Hd8cQwfVd5+lDQ0L7B0kyzZk5nwCGaF6wO X-Received: by 2002:a17:906:4903:: with SMTP id b3mr12708997ejq.80.1588871902094; Thu, 07 May 2020 10:18:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588871902; cv=none; d=google.com; s=arc-20160816; b=np466SeN3g5tqB9Ok9tWBG4iYQKqfrABqJnHbc2DmTtbBL0Gt1RiIYS9n25HNmPgYQ WlFMK2QSgJWDL6BaGz0ZFqX3t0dR3Xk7/TWL9ASHfsWJfWI3m4Yvg5uERvm5eqcExJcx u46y9Qd7szllvCbyTw8h3sIkQFTreGbYTtpnW5Ev48O9uLIvXo4kD/sMFesHVWcoiYOS hWeupZAEWJ0KFQa6pD1vqeVbCCxva2hzStX3pjSQxAvQC4B+audfWD0dRVaF11XwLplW T0m+GS/QPWFJ5opE6cA1DgJOW5borOFVzSitEzwiSGpBJfNK2OcUmNXHdr0sWkM1w/Gz SMNQ== 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; bh=0/Ch6J1/vJJ2w7/3hqcNur9/Wv3yq92rG63gQCjQq9g=; b=kMxjE/5wlkMzD3oFn4CFUL5AVeW9pb2HWfdyHHGW3RQp/gLb1UrCk3dsXJHjlZpird hdfJBeOyCjgN8YqQf0mvXkpRK8kVmD0S0TE+0Fw+HbZsfL7JobXvSmU8+I4RASvqs7u+ WQfGli4xLKN0dM3Blva8FFowLII/tA/dErVHDn4jeBDhXiPinKNoWhNMV4Gg9n7LmFXT 1PBxXcR9u171Z2BNPu36h457rUwv3RFGpB2waO2vW6M4kVl2SPTalpg2V1dOuuZH10k0 sKR+8LKRXIhvUxIaiP7ZrbYh3GPRNTK2OpjacvFk5OwA7ArZMZaAqeWxW1THQR7gHWxJ Hwlw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c11si3512781ejs.396.2020.05.07.10.17.57; Thu, 07 May 2020 10:18:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726531AbgEGRQM (ORCPT + 99 others); Thu, 7 May 2020 13:16:12 -0400 Received: from foss.arm.com ([217.140.110.172]:35860 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726356AbgEGRQM (ORCPT ); Thu, 7 May 2020 13:16:12 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5E5FC30E; Thu, 7 May 2020 10:16:11 -0700 (PDT) Received: from gaia (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 80E833F305; Thu, 7 May 2020 10:16:10 -0700 (PDT) Date: Thu, 7 May 2020 18:16:08 +0100 From: Catalin Marinas To: Qian Cai Cc: Linux-MM , LKML , "Paul E. McKenney" Subject: Re: Kmemleak infrastructure improvement for task_struct leaks and call_rcu() Message-ID: <20200507171607.GD3180@gaia> References: <45D2D811-C3B0-442B-9744-415B4AC5CCDB@lca.pw> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45D2D811-C3B0-442B-9744-415B4AC5CCDB@lca.pw> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 06, 2020 at 12:22:37PM -0400, Qian Cai wrote: > What do you think about adding some aux call traces for kmemleak in > general? For example, if the tracking object is a task struct, it > would save call traces for the first and last call of both > get_task_struct() and put_task_struct(). Then, it could be expanded to > track other refcount-based leaks in the future. I don't mind adding additional tracking info if it helps with debugging. But if it's for improving false positives, I'd prefer to look deeper into figure out why the pointer reference graph tracking failed. Thanks. -- Catalin