Message ID | 20231207081635.8427-1-yangyicong@huawei.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp4628214vqy; Thu, 7 Dec 2023 00:21:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IGHGaL9BN4vdMpqYQI44bat9kibE89v4MCGqzeQjGF9cewurIsKxH+y1PqNE3cesAOzShhi X-Received: by 2002:a05:6a20:2449:b0:18a:de88:e0d with SMTP id t9-20020a056a20244900b0018ade880e0dmr2178582pzc.15.1701937300774; Thu, 07 Dec 2023 00:21:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701937300; cv=none; d=google.com; s=arc-20160816; b=RObxLRuVOyCuORWmpPzDnEZJOKVtAvC3KUnZbOiH4M1aCHhALpLcB/NWeuDIGkSuc1 cFfO3Zfh4wmjTd+pHrj399C1WrXdA/JEVecceHVMFAdgMHCtiCVEScuwGKfsXg1MHitQ VcqvRVVbuQzJw5c/Bm6Sv6NRL1JYGi2iuIebsMxbsQ4wrTjWeEpHZvL3mVRQvwWo2sRG 8heY52Kx/hV1dwWz52fInzTfWI9i7BliO7uWdB0xA3ujuXMLJL+dnFo+54XHo5J4CAsQ JsCaIuL1qyOTNpaBPmP/MkQb8D+eokA4Hul+5sXzaE87FQJD2sgMkutZJd71/M64EG/w 8XrQ== 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 :message-id:date:subject:cc:to:from; bh=WXI4djaCWXI3MWsTHnaEJzwVg8FRMVl82+7TC7wSXdA=; fh=K06Jco0a5Hd2X5wdXGCplGw8z+4vmGZK/avjKpeDM8o=; b=BGEyGKtqSIfctRAAR4EEf4KduUiD3eKmSdprBazM7i/CKCX2UcuIBT6YkhocaS5Pdk cSnFAAguJ1lgq91m2wbgMHHncK6hFVQiYtnEFvNGzytCCYvp8PR9fcPWWfOXyTDG8yvi NZC0f8pLCnTEWIdc+WAza2WjRXo4LnXqzJAmfeuy+eoMGRlxCxFM9eSDTMAH5FaEI4/f bdDSiAT/8oaOZtjvzGl0T9Sz11dbMBX5JlqFCu7LC+RukoABlQDZYvGfiFBEeV/2uRJ7 IAY83bVemvJ4MNKxC/tXHH2BVtf7dqdH7NCFRSAkidPQtUhpKQ2V+lqhCGtBEwLq64Tq uK8g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id q15-20020a17090aa00f00b002868d076054si732868pjp.91.2023.12.07.00.21.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 00:21:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 4810F80EE780; Thu, 7 Dec 2023 00:21:13 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378416AbjLGIUq (ORCPT <rfc822;pusanteemu@gmail.com> + 99 others); Thu, 7 Dec 2023 03:20:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231605AbjLGIUS (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 7 Dec 2023 03:20:18 -0500 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31AD71995; Thu, 7 Dec 2023 00:20:20 -0800 (PST) Received: from canpemm500009.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4Sm6d42l1DzYsps; Thu, 7 Dec 2023 16:19:36 +0800 (CST) Received: from localhost.localdomain (10.50.165.33) by canpemm500009.china.huawei.com (7.192.105.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 7 Dec 2023 16:20:16 +0800 From: Yicong Yang <yangyicong@huawei.com> To: <peterz@infradead.org>, <mingo@redhat.com>, <acme@kernel.org>, <mark.rutland@arm.com>, <alexander.shishkin@linux.intel.com>, <jolsa@kernel.org>, <namhyung@kernel.org>, <irogers@google.com>, <adrian.hunter@intel.com>, <linux-perf-users@vger.kernel.org>, <linux-kernel@vger.kernel.org> CC: <jonathan.cameron@huawei.com>, <hejunhao3@huawei.com>, <yangyicong@hisilicon.com>, <linuxarm@huawei.com> Subject: [PATCH 0/2] Perf fix two memory leakage Date: Thu, 7 Dec 2023 16:16:33 +0800 Message-ID: <20231207081635.8427-1-yangyicong@huawei.com> X-Mailer: git-send-email 2.31.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.50.165.33] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To canpemm500009.china.huawei.com (7.192.105.203) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 07 Dec 2023 00:21:13 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784610607213294779 X-GMAIL-MSGID: 1784610607213294779 |
Series | Perf fix two memory leakage | |
Message
Yicong Yang
Dec. 7, 2023, 8:16 a.m. UTC
From: Yicong Yang <yangyicong@hisilicon.com>
ASan reports two memory leakage in the raw trace dump mode `perf report -D`.
One is in the framework and can be reproduced when using hisi_ptt and
arm_spe, which is fixed in Patch 1/2. Another is in the hisi_ptt parser
and fixed in Patch 2/2.
Yicong Yang (2):
perf header: Fix one memory leakage in
perf_event__fprintf_event_update()
perf hisi-ptt: Fix one memory leakage in
hisi_ptt_process_auxtrace_event()
tools/perf/util/header.c | 5 +++--
tools/perf/util/hisi-ptt.c | 1 +
2 files changed, 4 insertions(+), 2 deletions(-)
Comments
On Thu, Dec 7, 2023 at 12:20 AM Yicong Yang <yangyicong@huawei.com> wrote: > > From: Yicong Yang <yangyicong@hisilicon.com> > > ASan reports two memory leakage in the raw trace dump mode `perf report -D`. > One is in the framework and can be reproduced when using hisi_ptt and > arm_spe, which is fixed in Patch 1/2. Another is in the hisi_ptt parser > and fixed in Patch 2/2. > > Yicong Yang (2): > perf header: Fix one memory leakage in > perf_event__fprintf_event_update() > perf hisi-ptt: Fix one memory leakage in > hisi_ptt_process_auxtrace_event() > > tools/perf/util/header.c | 5 +++-- > tools/perf/util/hisi-ptt.c | 1 + > 2 files changed, 4 insertions(+), 2 deletions(-) The series: Reviewed-by: Ian Rogers <irogers@google.com> Thanks, Ian > -- > 2.24.0 >