From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759373AbbFBNnM (ORCPT ); Tue, 2 Jun 2015 09:43:12 -0400 Received: from mail-am1on0095.outbound.protection.outlook.com ([157.56.112.95]:52928 "EHLO emea01-am1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1759010AbbFBNnD (ORCPT ); Tue, 2 Jun 2015 09:43:03 -0400 Authentication-Results: spf=fail (sender IP is 212.179.42.66) smtp.mailfrom=ezchip.com; vger.kernel.org; dkim=none (message not signed) header.d=none; From: Gil Fruchter To: , CC: , , , , Gil Fruchter Subject: [PATCH 0/2] Fix tracing with non-continuous cpu ids Date: Tue, 2 Jun 2015 16:26:27 +0300 Message-ID: <1433251589-21013-1-git-send-email-gilf@ezchip.com> X-Mailer: git-send-email 1.7.1 MIME-Version: 1.0 Content-Type: text/plain X-TM-AS-Product-Ver: SMEX-11.0.0.1191-7.500.1018-21534.006 X-TM-AS-Result: No--9.527100-8.000000-31 X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1;AM1FFO11FD023;1:jbBXJRYs2TvLRVhkOEJf3rHU/H/PBNGFtT2PtIF2hrjF+9/06I+5eDCbOWCfXTE1xsM4rys23WDqbSn5tqW8hnxoIDd5dSvPPfEtBi76lxnqelBpgTlJE2J8FM10Ot36Q9NBEHWTMsd/NfPCOWbCzN+p4YYXuz7RXrLWfQdtXt2JnNyppIH/a4IMfPnXZzQwM2bVG9LiABF5zEVVcnMRILBdo2Lp2Y6FE8Sbi3ebX2wHHNO0pEEMJPLN8+n3Gks4tixkOZYoo0fpdWShKjCmBwbQGibnuZe50CqubTbR8ESRHDxiOv/IkfF0kGAaBNf9 X-Forefront-Antispam-Report: CIP:212.179.42.66;CTRY:IL;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(339900001)(199003)(189002)(5001770100001)(229853001)(49486002)(64706001)(5001830100001)(50226001)(189998001)(85426001)(87936001)(107886002)(105606002)(50986999)(92566002)(47776003)(6806004)(5001970100001)(106466001)(4001540100001)(86362001)(33646002)(104016003)(36756003)(62966003)(77156002)(48376002)(77096005)(5001860100001)(46102003)(50466002)(4001430100001);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR02MB1149;H:ezex10.ezchip.com;FPR:;SPF:Fail;PTR:ezmail.ezchip.com;A:1;MX:1;LANG:en; X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:VI1PR02MB1149; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(520003)(5005006)(3002001);SRVR:VI1PR02MB1149;BCL:0;PCL:0;RULEID:;SRVR:VI1PR02MB1149; X-Forefront-PRVS: 05954A7C45 X-OriginatorOrg: ezchip.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jun 2015 13:27:19.1233 (UTC) X-MS-Exchange-CrossTenant-Id: 0fc16e0a-3cd3-4092-8b2f-0a42cff122c3 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=0fc16e0a-3cd3-4092-8b2f-0a42cff122c3;Ip=[212.179.42.66];Helo=[ezex10.ezchip.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR02MB1149 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently exception occures due to access beyond buffer_iter range while using index of cpu bigger than num_possible_cpus(). In order to fix buffer allocation size for non-continuous cpu ids we allocate according to the max cpu id and not according to the amount of possible cpus. This series also includes a checkpatch warning fix for using kzalloc with multiply instead of kcalloc. Happy tracing, Gil Gil Fruchter (2): tracing: Prefer kcalloc over kzalloc with multiply tracing: Fix for non-continuous cpu ids kernel/trace/trace.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)