From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9B3F554281A; Tue, 22 Sep 2026 12:39:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790080746; cv=none; b=Bojfy9tHmk3EiYyfoDbUxF5KDLxmqE0AA3F18HcJKvWf04mK9+kk0cb1Ex5zHhZteTqZPB3hf+jHEvJhX9QTor2sen2YtuTKTlVqLgvtlUEN1rd3MiMFaxuR6p0i132tx5/FyQsn0YqEM+YoApxEMcw4PKrsCjDaccjhEfpxVIc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790080746; c=relaxed/simple; bh=TsJ3XIPVwt9acaX3COTgWLQRCn8mKSI32QPnuB3vMqg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=GwxiUBX8spn5F8CL4N8CTQHBTY+wLZsroS/N1I9BkpB4J2JW8/mJlNMqio1ZfeB8x/+GDV1tmzuSI8QeWS3nbhwkeU6FQ0wGu1fWDJZftR6EYcX51zw+EjKhB8hE45bh19ejHp5jpolzHiv0yWMokOIRlHS4MKzTq8YNFDxBYHs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Lbg9w3Rz; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Lbg9w3Rz" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9D0C61F000FF; Tue, 22 Sep 2026 12:39:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1790080744; bh=QLoR3dFRtXbr6vPpFSReD2HvpuUUBOOt3jsnT9F9Frc=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=Lbg9w3Rz3woeKACoCIpmcshyiaV/8/f16ymbB2wNrdyYUdFqIWZMzlxKfZidEYr2h SOjBt2oKQ1Ihl/vyvS47nsOVuPEKiPWD/FNNM9HSWSXC30yEWsbESaXtBtAOcukFVl vAw/bjUNfBHO5BH4iZvS7cVdeKVL1pZZMhkLRzGV64gWGjvneOqJKbIKKEKljgjPmh vTS6Bp8ED3jJbd1ZuzAquguJwtAmDeaRoKw789DnTgUyB+AIRAj9tZc/U6WpwKtne2 Cs1PD96yqhKHOHHghVoVX895aG/2QqeoQ/Xcir6ZllR/O4cCCPkDhJtlpL5qmEyPFp dy2/h7AjKGENg== Date: Tue, 22 Sep 2026 14:38:51 +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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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