Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1645752pxy; Mon, 2 Aug 2021 07:00:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJynZrmKwSnq+sGSnlTB0Bv+lf7JjLSsNxubV1HHj+lNsFxmQuDcpmLONNEnJKrg/lLr3DGW X-Received: by 2002:a05:6402:60b:: with SMTP id n11mr20080535edv.235.1627912857057; Mon, 02 Aug 2021 07:00:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627912857; cv=none; d=google.com; s=arc-20160816; b=thzzjx2cfzcM3p4e/44mVAtvd9Ho3lPVcnkHMgcHh79IL149iv4SKgy1wAdeBrkCUP GgZRz8Pd5e7GgbEMXT/y952+YY6VaGU9PcnH2bVR+vSBMck3K2aoqEODILTIzYS1TXMx qVvdTi+K3VgaLzYay6t9Gb9TfmP+XsFI1ja80VFu4PlrpKMhKOSMkVJDffLo9PN4wTNl /eRftMi4SscuCq6vaMXg53fDYIcujfP2XnsEdfJB/Ec575wUPtuGmdA6wep6M8RzZa2r GBv7njH1KxpHwtgbyxsg9sLFqhS7YRL1wq4YPjlK4yZZVL9I6+AwbfyspIqj7TFrYQ0q 3vHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=gYIm4hmX9IJactH8cOltTvhg7B5Yq4EEoBgGPE6RODM=; b=D5/RBjEDfW+B6+Zm/oMMVGuopytnXa30s3VeOynPXMzf0NQGjNApFbSK3ZziVV0E7r ivUA8mONLoBnVgMn+I1EzlaSFX7ZW7Dm4J3a8plwRRZ2cT/5H+dUUnQ1UsEkvmFT+FLC OS562ixMrMx8esHpXZK1xRngUkiJBtv+ENQkyox9XmlulKvF7yzNZ3fwF4dQuWyp7Iq2 9S0SQ72CxrlhqFz109NygMS2s0I50QLqtTWIdiM8YfaH8qJ/tblP/rvcvk9O1/3eTtyg MFDLgpqu1Mw3KgGOH809V+/9610tGPb/cqllPIWqcBHidBJpnWgiY8qvU02hxUr7m+40 QASQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BX7I5fNa; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j5si9196500ejj.184.2021.08.02.07.00.32; Mon, 02 Aug 2021 07:00:57 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BX7I5fNa; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234876AbhHBN64 (ORCPT + 99 others); Mon, 2 Aug 2021 09:58:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:34430 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235278AbhHBNwx (ORCPT ); Mon, 2 Aug 2021 09:52:53 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id EF8E56112D; Mon, 2 Aug 2021 13:51:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1627912304; bh=G60XXbGHGwAvo+h6LyXRz0eBUCVpr7FmTdq4fUQKEgY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BX7I5fNaFl71fvboSrqPh9GJVx4gT1CbuEg16zVzhXWDLsMZsbXhYMY6LBTOq3KSt 0uYu+mhO7SWCLTbiix31rYowWJKHHg0FnmefOTbtXxLS1971CPPEa7DRceDMCEGbgm 5OX4CP8shEec7WjctAojxhOkNBYITXXkCBkbxaLM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Riccardo Mancini , Ian Rogers , Jiri Olsa , Krister Johansen , Mark Rutland , Namhyung Kim , Peter Zijlstra , Arnaldo Carvalho de Melo Subject: [PATCH 5.4 38/40] Revert "perf map: Fix dso->nsinfo refcounting" Date: Mon, 2 Aug 2021 15:45:18 +0200 Message-Id: <20210802134336.612232344@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210802134335.408294521@linuxfoundation.org> References: <20210802134335.408294521@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnaldo Carvalho de Melo commit 9bac1bd6e6d36459087a728a968e79e37ebcea1a upstream. This makes 'perf top' abort in some cases, and the right fix will involve surgery that is too much to do at this stage, so revert for now and fix it in the next merge window. This reverts commit 2d6b74baa7147251c30a46c4996e8cc224aa2dc5. Cc: Riccardo Mancini Cc: Ian Rogers Cc: Jiri Olsa Cc: Krister Johansen Cc: Mark Rutland Cc: Namhyung Kim Cc: Peter Zijlstra Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Greg Kroah-Hartman --- tools/perf/util/map.c | 2 -- 1 file changed, 2 deletions(-) --- a/tools/perf/util/map.c +++ b/tools/perf/util/map.c @@ -214,8 +214,6 @@ struct map *map__new(struct machine *mac if (!(prot & PROT_EXEC)) dso__set_loaded(dso); } - - nsinfo__put(dso->nsinfo); dso->nsinfo = nsi; dso__put(dso); }