Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3000731rwd; Mon, 29 May 2023 04:26:31 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ55qZX69HFATDsZNT+caltdgErCqNiAZWau+eI9RAQVlO+7fC36E8crekoL4Opg2H40q/Ab X-Received: by 2002:a05:6a20:729e:b0:104:28d6:5db3 with SMTP id o30-20020a056a20729e00b0010428d65db3mr8303280pzk.29.1685359590864; Mon, 29 May 2023 04:26:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685359590; cv=none; d=google.com; s=arc-20160816; b=vIeI2R5UNE2ZEBPIBwFY1g+cOnkvJ+j6OlZqlZkiBGy9/LFrVplO6Vc5WbNopoWnJC DP5YZMBJLHAPxMBuU0A5wfx6H5obt41jnuf5rv1zK8n4z3LJmtJxDSHEfrlb5ZmCa4AT S8ytEwnp5j8Q1oif/R55D3N4DagcO8gATMHskQVCxuOGkCmc5dxRoYJxlxbP+hlPucCr JJHkwRVVvuQrvfbaTpEqG7HMnHZNVAlLmecGPzsq/uIv4gZGusXdkRQjkuymwphf/chi UhvVGPiCnayGICLvU396fdpis7kb5QcmDYwRuU2nVKFIlq3/BTq9aAxIXDFFtbz9dCU6 vtkg== 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 :mime-version:message-id:date:subject:cc:to:from:dkim-signature :dkim-filter; bh=qk7FA9xN87p6FJZ2Z10A3WhlL1LEP+O+6ySBHhTKuX4=; b=JY2vp2e/9ux+DhcniJIiVY1fuM1qgszKt1qZJw9gde8vK6ujbqHGpdJtv2flGVMKAM EjWz3PwzcDwVyLyf+qLe/SAMXSw2ebdpT+ZRmvuMO7666LS3msAtSPQBU4e4apd+pxsq Bjps7Ve6YuMIWo47PW75EZBEIyFKYFCrlZmXx2AwRggUhuZpf+O6woEqtFG91J9TMNE1 KmAK2NBsGB19rV4vQrCNVYvt4OuIQInCAlmdumwBj0hS+HChb7dKvTN4N2j0qg66xwcn wfwRWYGpSYfYYA5f1gVi8us2kvj2kgnBY3WFjJaDU0yh8l2Zi/vCYrNsgFT+B3zSWYv2 uY5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=DND7sJm2; 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 bu26-20020a63295a000000b00534dbd0d219si5978671pgb.301.2023.05.29.04.26.13; Mon, 29 May 2023 04:26:30 -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=DND7sJm2; 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 S230512AbjE2LOT (ORCPT + 99 others); Mon, 29 May 2023 07:14:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229572AbjE2LOR (ORCPT ); Mon, 29 May 2023 07:14:17 -0400 Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 225BCD2 for ; Mon, 29 May 2023 04:14:14 -0700 (PDT) Received: from epcas5p3.samsung.com (unknown [182.195.41.41]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20230529111410epoutp01ee22e3c401c2f14b6d0e2944f4662ab5~jmPIP7DI82969729697epoutp01W for ; Mon, 29 May 2023 11:14:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20230529111410epoutp01ee22e3c401c2f14b6d0e2944f4662ab5~jmPIP7DI82969729697epoutp01W DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1685358851; bh=qk7FA9xN87p6FJZ2Z10A3WhlL1LEP+O+6ySBHhTKuX4=; h=From:To:Cc:Subject:Date:References:From; b=DND7sJm2sq7q4rMerIdycPSPVQhLOtjeo4UpHceABdHDMumw7lLeFu5rZr0TW5miU YTCB9E5fqUw4QfL5OABuXth+WI95Ebm2rPVRT/dQ1vspzsbsiK/ojJBFnJNRXnR7W0 ZveRLlLXNxxf23fYD2JKbIU80UCV55GzvQMgdezI= Received: from epsmges5p1new.samsung.com (unknown [182.195.42.73]) by epcas5p4.samsung.com (KnoxPortal) with ESMTP id 20230529111410epcas5p43817881489b4702ad5978f694515c8ed~jmPHgcqSr1145411454epcas5p42; Mon, 29 May 2023 11:14:10 +0000 (GMT) Received: from epcas5p2.samsung.com ( [182.195.41.40]) by epsmges5p1new.samsung.com (Symantec Messaging Gateway) with SMTP id B1.A3.04567.20984746; Mon, 29 May 2023 20:14:10 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p4.samsung.com (KnoxPortal) with ESMTPA id 20230529111350epcas5p46a1fa16ffb2a39008c26d03c5c63f109~jmO1KgnDu1149511495epcas5p4g; Mon, 29 May 2023 11:13:50 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20230529111350epsmtrp20f175ccc83f2ede52688eb27242b05dc~jmO1Jez3z2617326173epsmtrp2F; Mon, 29 May 2023 11:13:50 +0000 (GMT) X-AuditID: b6c32a49-943ff700000011d7-18-64748902095d Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 95.32.27706.EE884746; Mon, 29 May 2023 20:13:50 +0900 (KST) Received: from localhost.localdomain (unknown [107.109.224.44]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20230529111347epsmtip155f874de39e74a0189464dce0e25c3d3~jmOyMM5d32333123331epsmtip1S; Mon, 29 May 2023 11:13:47 +0000 (GMT) From: Maninder Singh To: 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 Cc: linux-hexagon@vger.kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Maninder Singh , Onkarnath Subject: [PATCH 1/2] hexagon/traps.c: use KSYM_NAME_LEN in array size Date: Mon, 29 May 2023 16:43:36 +0530 Message-Id: <20230529111337.352990-1-maninder1.s@samsung.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrPKsWRmVeSWpSXmKPExsWy7bCmhi5TZ0mKwbTjrBZ/Z29nt3i4u4XF 4s6k5+wWF8+8ZrQ4051r8b5lB5vF5V1z2Cx+f//HanF4fhuLxZaGQ2wWG44GW/x8cYPFYuX8 5YwWK3o+sFr8f/wVSLw7wmTRsXglo4Ogx+yGiyweX2+eY/JY9LKBxWNJ5y8mj52z7rJ7LNhU 6rFpVSebx4RFBxg9zs9YyOgxcU+dR9+WVYwe67dcZfH4vEkugDeKyyYlNSezLLVI3y6BK+PQ vPcsBYc5Kp4uMW1gnMjexcjJISFgIvF19QKWLkYuDiGB3YwS87+cYYNwPjFKvD78iw2kSkjg G6PEm+ecMB0PvvQzQRTtZZR4/uIVlPOFUaL3+gUmkCo2AT2JVbv2gM0VE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Bxg9zs9YyOgxcU+dR9+WVYwe67dcZfH4vEkugDeKyyYlNSezLLVI3y6BK+PQ vPcsBYc5Kp4uMW1gnMjexcjJISFgIvHgSz8TiC0ksJtR4u71PIi4tMTPf+9ZIGxhiZX/ngPV cwHVfGKUOLP4LSNIgk1AT2LVrj0sIAkRgalMElNe32cDSTALbGWUWHKlHsQWFnCVuPBxC9g2 FgFViXtXjjKD2LwCthI9fRugNshLzLz0nR0iLihxcuYTFog58hLNW2czT2Dkm4UkNQtJagEj 0ypGydSC4tz03GLDAsO81HK94sTc4tK8dL3k/NxNjOCI0tLcwbh91Qe9Q4xMHIyHGCU4mJVE eG0Ti1OEeFMSK6tSi/Lji0pzUosPMUpzsCiJ817oOhkvJJCeWJKanZpakFoEk2Xi4JRqYFKb mHYhymXtboXbrkXrf/aK/q7KVb288p7LlDsHDsx9XtT8elbClqKFqvX1E7udH8p8WOd+94bk a0k13Wdf3BjkVq8Te9qdsiWYoWJdl3DTAoFXPzqWbze89uTNLbMdtnMX9/Vacn/9cX67YbTs vILgyvx362ddi+OafnnP2+qTvR1K/vHbOHd6LGuab7fp1mb5K9cY3Kpj4jjc2jsncG0xXX5M e3vYySWG3zaEHb8tEKOj7ir81XjqB7vLTU1LtTOr15rtvFE9W15h+Tzl3JMhkrO0w9akPKyu 7tHVtY0JkL66v3KS3vUpChXmq3MuuGfUBah/yjX2yE3g/aQ4vb06uDeX51pkx9TU1S+sJyqx FGckGmoxFxUnAgBKuCP+FwMAAA== X-CMS-MailID: 20230529111350epcas5p46a1fa16ffb2a39008c26d03c5c63f109 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P X-CMS-RootMailID: 20230529111350epcas5p46a1fa16ffb2a39008c26d03c5c63f109 References: 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 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 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") Co-developed-by: Onkarnath Signed-off-by: Onkarnath Signed-off-by: Maninder Singh --- arch/hexagon/kernel/traps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.17.1