Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932742AbcJZNpy (ORCPT ); Wed, 26 Oct 2016 09:45:54 -0400 Received: from mail.kernel.org ([198.145.29.136]:51106 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754178AbcJZNpu (ORCPT ); Wed, 26 Oct 2016 09:45:50 -0400 Date: Wed, 26 Oct 2016 11:44:53 -0200 From: Arnaldo Carvalho de Melo To: Krister Johansen Cc: Namhyung Kim , Masami Hiramatsu , =?iso-8859-1?Q?Fr=E9d=E9ric?= Weisbecker , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 perf/core] perf script: fix a use after free crash. Message-ID: <20161026134453.GA4936@kernel.org> References: <20161007022200.GB31113@sejong> <20161011092839.GC7837@templeofstupid.com> <20161026002010.GD2525@templeofstupid.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161026002010.GD2525@templeofstupid.com> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.7.1 (2016-10-04) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 889 Lines: 19 Em Tue, Oct 25, 2016 at 05:20:10PM -0700, Krister Johansen escreveu: > On Tue, Oct 11, 2016 at 02:28:39AM -0700, Krister Johansen wrote: > > If dso__load_kcore frees all of the existing maps, but one has already > > been attached to a callchain cursor node, then we can get a SIGSEGV in > > any function that happens to try to use this invalid cursor. Use the > > existing map refcount mechanism to forestall cleanup of a map until the > > cursor iterates past the node. > > It has been a couple of weeks since I sent out v2 of this patch. I > understand that folks here have plenty of irons in the fire, but I > wanted to double-check that nobody was waiting on me for additional > information or changes. It was a mix of waiting for more people to review it, or for Masami to run its refcount debugger on it, ended up falling thru the cracks. I'll try to process it now. - Arnaldo