From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5BEFBC982FF for ; Tue, 22 Sep 2026 12:39:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To: Content-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=QLoR3dFRtXbr6vPpFSReD2HvpuUUBOOt3jsnT9F9Frc=; b=HePC4FWZLj8mlDyfbMlIrwTAD+ gwZijNCFW/CkWAFs6arpwfWLbG9YBixy1r319WgRtJ3TIKmDMs3/CTymwFpE9RzTSfd7EEwwvX3I2 it0DpRuV4ARdC0q8uaaO1ieF6OZXaXMgagZdvI8KKMMYUWXIO5TTMXJmTJCel5hm31bqUMa3CgeIV qQmja+pFLwNUObCfjBGduY5tb9Jq6rF1Yv0nFuPEZDGAVKfgINhL2eatLFfZwrQbOl4+8BEJhRoxj UjHND93G15xcFQ5uDF0XrwE8Mqcx9/YehGqQh80vtngF1QnuVlfIOrlgKQn6LS34J0T0QWWqnnq4R aP4VWR9Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1x8zmR-00000005KZY-0Kzw; Tue, 22 Sep 2026 12:39:27 +0000 Received: from tor.source.kernel.org ([172.105.4.254]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1x8zmQ-00000005KZP-3IF2 for linux-arm-kernel@lists.infradead.org; Tue, 22 Sep 2026 12:39:26 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 3C76E6021C; Tue, 22 Sep 2026 12:39:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 84D8D1F000FF; Tue, 22 Sep 2026 12:39:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1790080765; bh=QLoR3dFRtXbr6vPpFSReD2HvpuUUBOOt3jsnT9F9Frc=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=V/ALuN3qgtC+lokrz/DCEpCcDSste1zqnFoX4pmZehexTIOWOFBFVS1aiaLgfyJUc OcWssi2r7yLhioNqQBYCTSBeqKtT8uuyppAgvT2hawe0ePTfHfR29/e+Ngsep1lAMX gusO8DXlswjpkpxl66a0hdxCWlEE1KxWdkvmS1/sVJP+2uBeIaiBFeevEf6pRr/z7t cDHvGOSNoKyWCy/LUjRyyZJhsikQb9ARRUk18/4qv4liZvOPKjbWeyYxGMuBA6NrZ/ SZ1+yY+pwsHt7JR3QQtQMcebZr9ZQewRLwL7xOvlPpiGuqpGGzMwEkZcOBDXahcrvF exvVbjRBnAFvA== Date: Tue, 22 Sep 2026 14:39:18 +0200 From: Arnaldo Carvalho de Melo To: Ian Rogers Cc: Chen Pei , peterz@infradead.org, mingo@redhat.com, namhyung@kernel.org, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, jolsa@kernel.org, adrian.hunter@intel.com, james.clark@linaro.org, john.g.garry@oracle.com, will@kernel.org, mike.leach@arm.com, leo.yan@linux.dev, linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] perf test: Fix a leaked map reference in the arch dwarf unwind tests Message-ID: References: <20260914121903.1212-1-cp0613@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Sep 15, 2026 at 12:35:23PM -0700, Ian Rogers wrote: > On Mon, Sep 14, 2026 at 5:19 AM Chen Pei wrote: > > > > maps__find() has returned a reference to the map it finds since > > commit 42fd623b58db ("perf maps: Get map before returning in > > maps__find"), which updated arch/x86/tests/dwarf-unwind.c but missed > > the arm, arm64 and powerpc copies. Release the map after reading its > > end, as x86 does. All other callers of maps__find() already release > > what they get. > > > > Fixes: 42fd623b58db ("perf maps: Get map before returning in maps__find") > > Signed-off-by: Chen Pei > > Reviewed-by: Ian Rogers Thanks, applied to perf-tools-next, for v7.4. - Arnaldo