Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3000764rwd; Mon, 29 May 2023 04:26:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7Hnmmn5K2aEPBQgj8AmHAvFNNX3j1ZyJPrsf8pc7AKJR8Q8lvb/kQUBZiTrOGgx+hvMW1U X-Received: by 2002:a05:6a20:938a:b0:110:2064:ecb with SMTP id x10-20020a056a20938a00b0011020640ecbmr9591604pzh.15.1685359593453; Mon, 29 May 2023 04:26:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685359593; cv=none; d=google.com; s=arc-20160816; b=d3/7PJfasiH+3X2dci+QVphkL+YYOew4KtzvAUH74E+DzrIUf/euww6maqXHYC7AAZ g2yK6RhYXS7FKlAD56VEULTgoK4ZUFKEU7ZHlpnkbENFNdd6FKzV8+sKgdZrQmgjCRrf Z/swa0Ut5Qys0k5r83FZZPAy6Jm4DpzeQ6qul2uex16ZmzvOoQ0iVBQEpknacuUrXH7N h4WM9z53N+Z/nj6+HBB7ZA1kk+PFyBaBmiHPqYIOKqZHF1z7qoBh77lUczTE9PogT81W HvV2B8loQmmKLO5i4mpX+r2ehygeZIWfQHb9wFFzFzHIlZGp2l4HGZW6FCxTqKqroU/H JTqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:cms-type:content-transfer-encoding :date:message-id:in-reply-to:cc:to:from:sender:reply-to:subject :mime-version:dkim-signature:dkim-filter; bh=dZVfotqZFrsokbs+wqGDWxA2HIP1xtUvpW9KT5S6V/g=; b=eEwmNwFY4bNjfq/RsbDcvD/US5XfJybemigHooo5fuB1lszgd4daglcG/Ok9TYzZdj 6BZeo15bMc9E6hTD4l1U17ybClqQv8DdYyrI+/07mCBywzgsm3JEHEzlyWUsy5G2ZBcd NZ9tZ+SPvHNYP8ot0eRcS+Xp507y2aWMU5D9n5nohUDS8FT/X6jS6qu0Wj/qixJYl7jd we4lPnDbDsQTDc0nfE48IkjlDGu/Tgo6JNvGgPHC571DOtKdO8I0NTCIyk/4cThjEtA0 zyNUcj0CNdnA1DnVicak7pjAX7hVxVUb/JQRNlQC47oFDMiNnjMQZstK1IADDOU0a+6+ HgVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=mSik56Pf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m125-20020a633f83000000b0052c8d4d0d1esi8957605pga.364.2023.05.29.04.26.21; Mon, 29 May 2023 04:26:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=mSik56Pf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229802AbjE2LI4 (ORCPT + 99 others); Mon, 29 May 2023 07:08:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229572AbjE2LIy (ORCPT ); Mon, 29 May 2023 07:08:54 -0400 Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7F09CD for ; Mon, 29 May 2023 04:08:50 -0700 (PDT) Received: from epcas5p1.samsung.com (unknown [182.195.41.39]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20230529110838epoutp0156a0d2017bc413672cfe970a760f37b9~jmKS1n3Pb2902729027epoutp01N for ; Mon, 29 May 2023 11:08:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20230529110838epoutp0156a0d2017bc413672cfe970a760f37b9~jmKS1n3Pb2902729027epoutp01N DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1685358518; bh=dZVfotqZFrsokbs+wqGDWxA2HIP1xtUvpW9KT5S6V/g=; h=Subject:Reply-To:From:To:CC:In-Reply-To:Date:References:From; b=mSik56PfWyps25P0F27uNOkKOxyJzsXVnUURn9lmV4y5b8ai/sDKbVAoVFHQsb3WE lotiS4me6f9y3aDafyDvpHVV1abOM/qOM6tC+SZ4G3hAOE2CXOTkFA5kcxXoyjaYWV idqSz0qyNhYihTZJazdfDEInFl+6L/tvKQFvV7HY= Received: from epsmges5p1new.samsung.com (unknown [182.195.42.73]) by epcas5p2.samsung.com (KnoxPortal) with ESMTP id 20230529110838epcas5p2aeb7ad05e010a427b9dccb1f0866323c~jmKSLeDPK3208332083epcas5p2a; Mon, 29 May 2023 11:08:38 +0000 (GMT) X-AuditID: b6c32a49-db3fe700000011d7-a7-647487b56532 Received: from epcas5p4.samsung.com ( [182.195.41.42]) by epsmges5p1new.samsung.com (Symantec Messaging Gateway) with SMTP id C6.82.04567.5B784746; Mon, 29 May 2023 20:08:37 +0900 (KST) Mime-Version: 1.0 Subject: RE: [PATCH 1/1] arch:hexagon/powerpc: use KSYM_NAME_LEN in array size Reply-To: maninder1.s@samsung.com Sender: Maninder Singh From: Maninder Singh To: Miguel Ojeda CC: "bcain@quicinc.com" , "mpe@ellerman.id.au" , "npiggin@gmail.com" , "christophe.leroy@csgroup.eu" , "keescook@chromium.org" , "nathanl@linux.ibm.com" , "ustavoars@kernel.org" , "alex.gaynor@gmail.com" , "gary@garyguo.net" , "ojeda@kernel.org" , "pmladek@suse.com" , "wedsonaf@google.com" , "linux-hexagon@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" , Onkarnath X-Priority: 3 X-Content-Kind-Code: NORMAL In-Reply-To: X-Drm-Type: N,general X-Msg-Generator: Mail X-Msg-Type: PERSONAL X-Reply-Demand: N Message-ID: <20230529105707epcms5p1418eac680ebe1736196706b0db80dd39@epcms5p1> Date: Mon, 29 May 2023 16:27:07 +0530 X-CMS-MailID: 20230529105707epcms5p1418eac680ebe1736196706b0db80dd39 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrMKsWRmVeSWpSXmKPExsWy7bCmlu7W9pIUg81/rSz+zt7ObvFwdwuL xZ1Jz9ktLp55zWhxpjvX4n3LDjaLy7vmsFn8/v6P1eLm9DfsFlsaDrFZbDgabPHzxQ0Wi5Xz lzNarOj5wGrx//FXIPHuCJNFx+KVjA6CHrMbLrJ4fL15jslj0csGFo8lnb+YPHbOusvusWBT qcemVZ1sHhMWHWD0OD9jIaPHxD11Hn1bVjF6rN9ylcXj8ya5AN4oLpuU1JzMstQifbsErozF h9ILfnBXHNv0ibmB8RxnFyMnh4SAicTii+9Yuxi5OIQEdjNKnFowj62LkYODV0BQ4u8OYZAa YYEAiQV7lzKC2EICihIXZqxhBCkRFjCQ+LVVAyTMJqAnsWrXHhYQW0TASOLa6d0sICOZBeaw Sdzb2s0EsYtXYkb7UxYIW1pi+/KtYHM4BQIlnn5xgQiLStxc/ZYdxn5/bD4jhC0i0XrvLDOE LSjx4OduqLiMxOrNvVAjqyWevj7HBrJXQqCFUWLfbpgic4n1S1aBDeUV8JV4PbkR7B4WAVWJ /r1NUDUuEk+uTmUFsZkF5CW2v53DDHIbs4CmxPpd+hAlshJTT61jgijhk+j9/QTurR3zYGxV iZabG1hhXvz88SPUbR4Sp76vYoUE4WlGiRNPRCcwKsxCBPQsJItnISxewMi8ilEytaA4Nz21 2LTAMC+1XK84Mbe4NC9dLzk/dxMjOB1qee5gvPvgg94hRiYOxkOMEhzMSiK8tonFKUK8KYmV ValF+fFFpTmpxYcYpTlYlMR51W1PJgsJpCeWpGanphakFsFkmTg4pRqY8irfuT68Nf9+6Rvv UL03P9NfZbkcvjV33ifuro0GLMdCp6zcO8urs8FYLSLT1+2M0Idp+rXavZ8mzJbi92aUEzTx 9Yt41etamlM6T/L45HsT7zLGfEyveFuZ9mP+tFlhs6+7vLywZd3yP81Z775+q++9cyek9Gf0 3MRtzJMFCp9qMn5/OCPFdu67sJfFD20TXO6Wab3n2P7L1/0zd0aoZr1wnFPb3J9Wm+R++TF0 1vdO6F5u92KW0H6fZfOmGXKI10+0LNtQc/rTVTZBtkPXohzOf3H8FPPUMcs7Mn7m41Naf15y mx06cbhX9FzSffcfZTmR/70e3D11vumN1U/2jm+Woaz3V388uud1/zLTw0osxRmJhlrMRcWJ AJjKocv2AwAA X-CMS-RootMailID: 20230529052832epcas5p4fa1b8cf25d9810d32bd2ccf012086fb3 References: <20230529052821.58175-1-maninder1.s@samsung.com> X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, >> >> 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: Onkarnath >> Signed-off-by: Maninder Singh > Thanks for this! > > There is no `From:` at the top. Since I cannot locate the patch in > Lore, did you mean to put both of you as authors perhaps? In that > case, please use a `Co-developed-by` as needed. > I Will add co-developed-by` tag. because this change was identified while we were working on kallsyms some time back. https://lore.kernel.org/lkml/YonTOL4zC4CytVrn@infradead.org/t/ this patch set is pending and we will start working on that again, so i thought better to send bugfix first. > Perhaps it is a good idea to submit each arch independently, too. > ok, I will share 2 separate patches. > The changes themselves look fine on a quick inspection, though the > `xmon.c` one is a global buffer (and there is another equally-sized > buffer in `xmon.c` with a hard-coded `128` constant that would be nice > to clarify). Yes, I think second buffer was not related to kallsyms, so I have not touched that. Thanks, Maninder Singh