Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966253AbcKKAkv (ORCPT ); Thu, 10 Nov 2016 19:40:51 -0500 Received: from sub5.mail.dreamhost.com ([208.113.200.129]:47590 "EHLO homiemail-a124.g.dreamhost.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935367AbcKKAku (ORCPT ); Thu, 10 Nov 2016 19:40:50 -0500 Date: Thu, 10 Nov 2016 16:40:46 -0800 From: Krister Johansen To: Arnaldo Carvalho de Melo Cc: Namhyung Kim , Masami Hiramatsu , =?utf-8?B?RnLDqWTDqXJpYw==?= Weisbecker , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 perf/core] perf script: fix a use after free crash. Message-ID: <20161111004046.GA2185@templeofstupid.com> References: <20161007022200.GB31113@sejong> <20161011092839.GC7837@templeofstupid.com> <20161026002010.GD2525@templeofstupid.com> <20161026134453.GA4936@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161026134453.GA4936@kernel.org> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1138 Lines: 24 On Wed, Oct 26, 2016 at 11:44:53AM -0200, Arnaldo Carvalho de Melo wrote: > 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. Thanks. As part of processing this did you run into any problems? Would you like me to rebase against the latest perf/core and re-send the patch? -K