Message ID | 20220520083701.2610975-4-maninder1.s@samsung.com (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show
Return-Path: <linux-scsi-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6791EC433FE for <linux-scsi@archiver.kernel.org>; Fri, 20 May 2022 08:40:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347303AbiETIkF (ORCPT <rfc822;linux-scsi@archiver.kernel.org>); Fri, 20 May 2022 04:40:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347316AbiETIjU (ORCPT <rfc822;linux-scsi@vger.kernel.org>); Fri, 20 May 2022 04:39:20 -0400 Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED3C39D4EB; Fri, 20 May 2022 01:39:11 -0700 (PDT) Received: from epcas5p4.samsung.com (unknown [182.195.41.42]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20220520083908epoutp04e5d832cdb53a09d97a5302b58812c15f~ww2-NMO6u0301803018epoutp04d; Fri, 20 May 2022 08:39:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20220520083908epoutp04e5d832cdb53a09d97a5302b58812c15f~ww2-NMO6u0301803018epoutp04d DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1653035948; bh=AhwgzerEVuyodIt2V4RrrdlfDM0bzVilGZy8x4sycs0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rB9mGpJKv/QU7ikLSrehieGW0N7+ipKkLWILLN4Zb0gO5zeQhvV3Lsj2fREzYqJK3 prI85zw5E82ahobCBB0BJAYfUdGfxlsOELX73Lsa+Ne51+tE707SQOVtbKtJQrj3pi 5SV4iFkm9nG1zthB/ni2KOBTr9exXbsxtV0zAu7c= Received: from epsmges5p2new.samsung.com (unknown [182.195.42.74]) by epcas5p1.samsung.com (KnoxPortal) with ESMTP id 20220520083907epcas5p12ad73903879b0f71f319779b8d6c69dc~ww2_kPNVf2141921419epcas5p1a; Fri, 20 May 2022 08:39:07 +0000 (GMT) Received: from epcas5p3.samsung.com ( [182.195.41.41]) by epsmges5p2new.samsung.com (Symantec Messaging Gateway) with SMTP id E4.C5.09827.BA357826; Fri, 20 May 2022 17:39:07 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p4.samsung.com (KnoxPortal) with ESMTPA id 20220520083742epcas5p4fa741caf7079a1305ef99cf00a07054a~ww1vXeOUf0679106791epcas5p4y; Fri, 20 May 2022 08:37:42 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20220520083742epsmtrp29ba296b9455ba9da4f8688efb4724e3e~ww1vUWa821034110341epsmtrp2e; Fri, 20 May 2022 08:37:42 +0000 (GMT) X-AuditID: b6c32a4a-b51ff70000002663-9b-628753ab2940 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id DD.F7.08924.65357826; Fri, 20 May 2022 17:37:42 +0900 (KST) Received: from localhost.localdomain (unknown [107.109.224.44]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20220520083734epsmtip22c4d3ea9b7cead988478e126befdfaea~ww1n_Xarw2680526805epsmtip2X; Fri, 20 May 2022 08:37:34 +0000 (GMT) From: Maninder Singh <maninder1.s@samsung.com> To: keescook@chromium.org, pmladek@suse.com, bcain@quicinc.com, mpe@ellerman.id.au, benh@kernel.crashing.org, paulus@samba.org, hca@linux.ibm.com, gor@linux.ibm.com, agordeev@linux.ibm.com, borntraeger@linux.ibm.com, svens@linux.ibm.com, satishkh@cisco.com, sebaddel@cisco.com, kartilak@cisco.com, jejb@linux.ibm.com, martin.petersen@oracle.com, mcgrof@kernel.org, jason.wessel@windriver.com, daniel.thompson@linaro.org, dianders@chromium.org, naveen.n.rao@linux.ibm.com, anil.s.keshavamurthy@intel.com, davem@davemloft.net, mhiramat@kernel.org, peterz@infradead.org, mingo@redhat.com, will@kernel.org, longman@redhat.com, boqun.feng@gmail.com, rostedt@goodmis.org, senozhatsky@chromium.org, andriy.shevchenko@linux.intel.com, linux@rasmusvillemoes.dk, akpm@linux-foundation.org, arnd@arndb.de Cc: linux-hexagon@vger.kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-scsi@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-modules@vger.kernel.org, kgdb-bugreport@lists.sourceforge.net, v.narang@samsung.com, onkarnath.1@samsung.com, Maninder Singh <maninder1.s@samsung.com> Subject: [PATCH 3/5] arch:hexagon/powerpc: use KSYM_NAME_LEN as array size Date: Fri, 20 May 2022 14:06:59 +0530 Message-Id: <20220520083701.2610975-4-maninder1.s@samsung.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220520083701.2610975-1-maninder1.s@samsung.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA02Te0xTVxzHPffe3hZM3aWYcIabLmRdAmrd3CQnZPLYnF7IHrJlDxbHLHID jGdaGGyJsWAFeW0NgkBbK48IyNNqFWwLw7KUhyivbIA8BlISmAiF8thogNEWM//7/s738833 /E5yODgvi+3OiYpLZERxwhgP0pm41+bpebjmi4ywt8euQ6R+OEsiZUMtiXLTCjGkmxkh0Eae kY0mdVICmdMu4ahWk4qhqQ0DibrnxthI2bNtPKp4QKJe+SoLPVNVAzRl1GCobOgehoZrxKg7 OxZJ1X0spG/uJNCCtIlEA1oliSSKNRaSlV7EUf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9h4Qjybpj7HkqbENavrXcUsG9Orn00hXNMzyVMSLOGKPRO4s1e3qefEvj+Mw7 mpLQexjei97uyUv2pWpyXRtVP4QMxFf0xaRs8+hDrhLJbRH+I1uPSztjNk9GpXTX7c3xFXzY eG/aROvGJU9t35eUd6jhgPNeetrOanHU2Yk4O0Z/qsynmoaTaJG+JQE3PVKHFosLCwpDbD7L /l0xi/eLxOkNt1Hbjkicz1TExwq0vOI/7edTGNEDAAA= X-CMS-MailID: 20220520083742epcas5p4fa741caf7079a1305ef99cf00a07054a X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P X-CMS-RootMailID: 20220520083742epcas5p4fa741caf7079a1305ef99cf00a07054a References: <20220520083701.2610975-1-maninder1.s@samsung.com> <CGME20220520083742epcas5p4fa741caf7079a1305ef99cf00a07054a@epcas5p4.samsung.com> Precedence: bulk List-ID: <linux-scsi.vger.kernel.org> X-Mailing-List: linux-scsi@vger.kernel.org |
Series |
[1/5] kallsyms: pass buffer size in sprint_* APIs
|
expand
|
diff --git a/arch/hexagon/kernel/traps.c b/arch/hexagon/kernel/traps.c index 6447763ce5a9..65b30b6ea226 100644 --- a/arch/hexagon/kernel/traps.c +++ b/arch/hexagon/kernel/traps.c @@ -82,7 +82,7 @@ static void do_show_stack(struct task_struct *task, unsigned long *fp, const char *name = NULL; unsigned long *newfp; unsigned long low, high; - char tmpstr[128]; + char tmpstr[KSYM_NAME_LEN]; char *modname; int i; diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c index afc827c65ff2..3441fc70ac92 100644 --- a/arch/powerpc/xmon/xmon.c +++ b/arch/powerpc/xmon/xmon.c @@ -91,7 +91,7 @@ static unsigned long ndump = 64; static unsigned long nidump = 16; static unsigned long ncsum = 4096; static int termch; -static char tmpstr[128]; +static char tmpstr[KSYM_NAME_LEN]; static int tracing_enabled; static long bus_error_jmp[JMP_BUF_LEN];
kallsyms_lookup which in turn calls for kallsyms_lookup_buildid() writes on index "KSYM_NAME_LEN - 1". Thus array size should be KSYM_NAME_LEN. for powerpc and hexagon it was defined as "128" directly. and commit '61968dbc2d5d' changed define value to 512, So both were missed to update with new size. Fixes: 61968dbc2d5d("kallsyms: increase maximum kernel symbol length to 512") Signed-off-by: Maninder Singh <maninder1.s@samsung.com> --- arch/hexagon/kernel/traps.c | 2 +- arch/powerpc/xmon/xmon.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)