From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932599AbbFIHdm (ORCPT ); Tue, 9 Jun 2015 03:33:42 -0400 Received: from mail-db3on0057.outbound.protection.outlook.com ([157.55.234.57]:41011 "EHLO emea01-db3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753517AbbFIHdg (ORCPT ); Tue, 9 Jun 2015 03:33:36 -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 v2 0/2] Fix tracing with non-continuous cpu ids Date: Tue, 9 Jun 2015 10:32:33 +0300 Message-ID: <1433835155-6894-1-git-send-email-gilf@ezchip.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1433251589-21013-1-git-send-email-gilf@ezchip.com> References: <1433251589-21013-1-git-send-email-gilf@ezchip.com> 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--10.638000-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;DB3FFO11FD044;1:ynKmh1K8vCqLQZNatmQDjejObC+Guw2lXxyVqGy0lqeAEWtfDY1N3hgVXy6mtsxFaNBwmj+4xDrpxlyFC5behw5v5M7Fx+xJDFoR+R2aboZ4L70njo8ls17sf9tdM6lG/hS6IMWLiWq5rrSpVuHiq1rivJshTUbyz1mHP7C/D8Dg4ePjw3P44+AGW4FM9JCzs2vL3qAxCHdT2Q4pdBTBD8RvkTcl29i+e56P58BPtcZpHEQXwoInchn37WE759U3HjEj05duzPzjt1ULJJ8AvoiNHAFbwGTCGonw9dY3MxAAho2FNULUr8OpQmGEpjf9 X-Forefront-Antispam-Report: CIP:212.179.42.66;CTRY:IL;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(339900001)(189002)(199003)(50986999)(87936001)(85426001)(5001970100001)(76176999)(189998001)(62966003)(77156002)(107886002)(5001770100001)(49486002)(105606002)(50226001)(2950100001)(229853001)(104016003)(50466002)(47776003)(6806004)(106466001)(48376002)(77096005)(86362001)(36756003)(33646002)(46102003)(92566002)(4001430100001);DIR:OUT;SFP:1101;SCL:1;SRVR:DB5PR02MB1029;H:ezex10.ezchip.com;FPR:;SPF:Fail;MLV:sfv;MX:1;A:1;LANG:en; X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DB5PR02MB1029; 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:DB5PR02MB1029;BCL:0;PCL:0;RULEID:;SRVR:DB5PR02MB1029; X-Forefront-PRVS: 06022AA85F X-OriginatorOrg: ezchip.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jun 2015 07:33:32.8667 (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: DB5PR02MB1029 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 v2: Update commit description for patch 1/2. 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(-)