Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1084875lqd; Thu, 25 Apr 2024 05:50:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU/ULIDWpztBbiAeFuDilHI+ISghbHU2V9hFZjJoVcP2L3hUXyUjk/y5IsXnMp1+BRyq008mq3qyNvSOaZJ+0IQHrCnHxicmJ5hFGYY+Q== X-Google-Smtp-Source: AGHT+IE/qUMHMyGHjYs2CaInkhi6DZMTJZWTtAIvFTbVG9EBabrYFUWg+Mmz8BhvioaSVxjI5wKn X-Received: by 2002:a05:6a21:2723:b0:1a7:6918:9e96 with SMTP id rm35-20020a056a21272300b001a769189e96mr5258515pzb.3.1714049432970; Thu, 25 Apr 2024 05:50:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714049432; cv=pass; d=google.com; s=arc-20160816; b=IwrfOmUJxnaSN1+jS6l6PtxyDKiShf/SSFe06G8kcOJ0NLo8iV/woTDihhhjNB7EsX hlECw1GUDNg7mgBTO1B/rmPLC/bfyNURhaBZjgvLQZKTEWKUcXJOEfByWTUNMCUGDKxD nf5fa5cK1B9wXCFFAMzot678Iek84n2VWzFhYJJp/lUf9x3wIQwogSrG4QiDc1wr/E3I iyMIvA4hjty1UAKuXcXU2R23J425tO70OKymCIxL5xGM0sAFPR5uTewgD3Dceu6rEbqQ /84SLD8E0gFCJMmzRRnroUv85doC2P5AOg/+OlKdlbsX93noxruD5P3EP7UTIRkCNjV2 80yg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=ef4btsTqLDpFutkNbhrfKRQisT8WOxilUYFiZX7Rbxo=; fh=svueJjvnNVRhQUONq/E+d+p+xL4JvjPnKzv7bb7GZV4=; b=e4ODQ78hvVhK95SuuJzZ5sOQLXcnWJKf+T6JD6VaFfzWTIzrET34r2PHxVsIIpyaS6 8TyOHjMmnI+pKXcZ9tFUPWUlJtjEgZdDg/hFUndqnKUCeym1ueHYtllcQyroG0/6Uppu 0NLOy2CxSSFE+JwGY0uwaAzP3kYLU8s1WljMsFYgEwOJ5c4L5b1eLFzg2/iXX9s4MCHl wNeVQNHpRa204BJQ8Wb+zdEWdOdCKeAIo5ItxLAngQw3D0uyZEY8cId7FMiT7lurLmql NpzchsNBElhNx57Cmx0zNtwUr9gbPzFwAerNBX7BzL769ujjdtA4SszK9yl+VKfTBLCZ Fp6A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-158546-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158546-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d17-20020a634f11000000b005dcbb6a2cccsi13101710pgb.44.2024.04.25.05.50.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 05:50:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-158546-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-158546-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158546-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 58F77289838 for ; Thu, 25 Apr 2024 12:49:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BCB36149C52; Thu, 25 Apr 2024 12:48:49 +0000 (UTC) Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) (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 6959512BF29 for ; Thu, 25 Apr 2024 12:48:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.188 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714049329; cv=none; b=oSL7DCdGuXQpilF9xg91bcdrmX/2t5JWFHA6MGiQNxhZpYXAK0CwPxsumlN9BErWIks6+zH4EJll3YOrhZT3GduhDW3F4nda9m9dsLm/dFskPAywKv+yggyYn8zKtLiVWOUjfK+dCKwAs8eF/7RY0WLs0DmQ9rmw5tf+vJoXXwQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714049329; c=relaxed/simple; bh=ZHMcQbBSYof64DylecLYGkgdGxUJ5RsY1fCpIJYqfa8=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=YSthA1Rjffe8lU1F6B5R4RorjSVktrdyUUKXQTnYvrZob6WI8VmwngX8fENYF/GA+9KOWwJmrutRYRQhyFBG0GGsaT84eLWJQmCgZSnnA7Coc8Dcfz8CG9i5iF+ZHlowb59TTuYGmovDa5eP0WdVkww200mEBPi/LVIVxDD8bc0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.188 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com 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 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpeml500002.china.huawei.com (7.185.36.158) 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(-) -- 2.33.0