From patchwork Thu Apr 25 12:46:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Junhao He X-Patchwork-Id: 13643285 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 84D5FC4345F for ; Thu, 25 Apr 2024 12:49:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Z/8yYaJdd0VSc6Y97PMZA2VD9GEbVt0dt906gsNcDVQ=; b=5ERb65vWmzXpbb kJaPbt6CI3koPzFKrUz9+0jHjI1tfCGEVpzFPkqhyw7Vw9RN8n9LQuIj0U1wCKH/RAX6crvRPY1t5 trjIlwj/xeTjQ9KzG41m+Z0k8tRM/fdBUAqK5wCTqjN+ZbMsfOo29giHWY3QmeqXCB8wG46BsFAMc +nSULxBud6/Wm+FSFQ3A0cgHo4ZqGvE3PrZBOeJTIX5Eakl0rpbYaj/SeslE4lw4I3Ib6BFDtfQXK oJlTgj9JyyqArEmi3OMDwjJXLiEgNehgp+EEw6nQUBmNMsAMnhz861ytAuLRxf3HIyXOPIZbKiyuY B/Jlj3+EiS6gwb9bHKSw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzyX4-00000008Ili-3E1L; Thu, 25 Apr 2024 12:48:58 +0000 Received: from szxga02-in.huawei.com ([45.249.212.188]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzyX2-00000008Iih-0YTb for linux-arm-kernel@lists.infradead.org; Thu, 25 Apr 2024 12:48:57 +0000 Received: from mail.maildlp.com (unknown [172.19.163.252]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4VQFtv62VFzXj9L; Thu, 25 Apr 2024 20:45:11 +0800 (CST) Received: from dggpeml500002.china.huawei.com (unknown [7.185.36.158]) by mail.maildlp.com (Postfix) with ESMTPS id EE08D18007F; Thu, 25 Apr 2024 20:48:42 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by dggpeml500002.china.huawei.com (7.185.36.158) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Thu, 25 Apr 2024 20:48:42 +0800 From: Junhao He To: , , , CC: , , , , , Subject: [PATCH 0/3] drivers/perf: hisi: Fixed some issues with hisi pmu Date: Thu, 25 Apr 2024 20:46:24 +0800 Message-ID: <20240425124627.13764-1-hejunhao3@huawei.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 X-Originating-IP: [10.69.192.56] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpeml500002.china.huawei.com (7.185.36.158) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240425_054856_370911_1A0950D5 X-CRM114-Status: UNSURE ( 7.46 ) X-CRM114-Notice: Please train this message. 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 This patchset includes 3 bug fixes changes to hisi PMU: - Fix out-of-bound access when valid event group in hns pmu - Fixes the memory leak in hns pmu - Fix out-of-bound access when valid event group in pcie pmu Hao Chen (1): drivers/perf: hisi: hns3: Actually use devm_add_action_or_reset() Junhao He (2): drivers/perf: hisi_pcie: Fix out-of-bound access when valid event group drivers/perf: hisi: hns3: Fix out-of-bound access when valid event group drivers/perf/hisilicon/hisi_pcie_pmu.c | 14 +++++++++++++- drivers/perf/hisilicon/hns3_pmu.c | 16 ++++++++++++++-- 2 files changed, 27 insertions(+), 3 deletions(-)