Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4200374rwd; Tue, 30 May 2023 01:46:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5nfbVc801hixYi/4dqP03YOpIUhmF+ZyZ5JeWNY99ORnBJE/JVDttjFWIsyilOC4c1oGgE X-Received: by 2002:a17:90b:1c84:b0:24d:ef23:fe28 with SMTP id oo4-20020a17090b1c8400b0024def23fe28mr1499584pjb.49.1685436368415; Tue, 30 May 2023 01:46:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685436368; cv=none; d=google.com; s=arc-20160816; b=HkQSi7nWccYD+DaRlOXfCSXijJoUZiJoTzuIir476qmgp4Yil+NdcVNDJgbSosq7YL chiCTMWlX5pIXlqbl8xAuc0VR/mdC4KvFTLlIekQNKyepB+/rCMkddd9nocqaO0Lja/t sRnz32t6UeG+ws/9aQEZA7KTqL0aSv8TJzYOrx6VFXTouLi2UcJk2J38DipoeYMsH4yJ K8W7fru3xP5TxgGPspim+/VJYeS/gd7oMfBO1d9gAIvCNtCDb3OUmEg5PTuTr/P+nZth 8msgiU+O1dTfnHL5Pa8xtrBIA4BhgF0JEoDgLvZ0EJXQ6gBUbElZP/5NlbXy+B5dYEYr 4dSQ== 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=5ac7mcvUjipTjuyt2bSsLImVDWiscD6gA99NQK48iBs=; b=Cfl2oQiaFkHBkYULVn5HnKmBRlMHuc/Jlo420t1JDFikPmpsZjZQ4xUeWKBFLEiEod YTEOVeiHnreWeeZkAyY25UPRGPK4+mnSRvjB5SKJmsGmtejnEtKW/4BcakuCEgbeh30r bclM2UzCsU88EiBrLLNtdxGdLCQGURuhzvbB2JcKiOdbw210mCinWMaJLapJjdJE281t eKiYpESdqlD70ZS//vSUVx1XuaoVrdITkFNycCxe/GLoVkriFluwnXoUeFmL5yC2Jzd0 jnPfGFSDO/xOS9o9mQZ0ElnLFPKrr3Sja4if+C4mKbI367p58ZSvrL38jvZQT8AQwZw2 MKng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Fnat8ZEM; 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 oe9-20020a17090b394900b0023b481b8dcesi4044727pjb.102.2023.05.30.01.45.56; Tue, 30 May 2023 01:46:08 -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=Fnat8ZEM; 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 S230143AbjE3IQX (ORCPT + 99 others); Tue, 30 May 2023 04:16:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230133AbjE3IQR (ORCPT ); Tue, 30 May 2023 04:16:17 -0400 Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B80159D for ; Tue, 30 May 2023 01:16:09 -0700 (PDT) Received: from epcas5p4.samsung.com (unknown [182.195.41.42]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20230530081605epoutp04cd1b2c62c05f81c55fb5da583ca9faff~j3c62H3RY1503515035epoutp04X for ; Tue, 30 May 2023 08:16:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20230530081605epoutp04cd1b2c62c05f81c55fb5da583ca9faff~j3c62H3RY1503515035epoutp04X DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1685434565; bh=5ac7mcvUjipTjuyt2bSsLImVDWiscD6gA99NQK48iBs=; h=Subject:Reply-To:From:To:CC:In-Reply-To:Date:References:From; b=Fnat8ZEMwWGH3IskToGqsOFf2j0fTLuLglIL46XCr39Wq+zqmZKhvm68EvCCpB/eW aX/OACM0Zbylw+ef6wgUCOYRWwkj/AB/VMK7pjBGqWCSIkglKUyDnp5yJQfgMR0taW k5L7RwARTUW5R0mk60USG/WlB9f4gMWnfGGaloC8= Received: from epsmges5p3new.samsung.com (unknown [182.195.42.75]) by epcas5p2.samsung.com (KnoxPortal) with ESMTP id 20230530081604epcas5p2a2caf81b1d6cb14d5bc0d5b3e3cd7b38~j3c50_WwG1821018210epcas5p2E; Tue, 30 May 2023 08:16:04 +0000 (GMT) X-AuditID: b6c32a4b-56fff70000013ffc-8e-6475b0c4a44d Received: from epcas5p1.samsung.com ( [182.195.41.39]) by epsmges5p3new.samsung.com (Symantec Messaging Gateway) with SMTP id E2.DF.16380.4C0B5746; Tue, 30 May 2023 17:16:04 +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: Petr Mladek CC: Miguel Ojeda , "keescook@chromium.org" , Steven Rostedt , Masami Hiramatsu , "bcain@quicinc.com" , "mpe@ellerman.id.au" , "npiggin@gmail.com" , "christophe.leroy@csgroup.eu" , "nathanl@linux.ibm.com" , "ustavoars@kernel.org" , "alex.gaynor@gmail.com" , "gary@garyguo.net" , "ojeda@kernel.org" , "linux-hexagon@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" , Onkarnath , Wedson Almeida Filho 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: <20230530081405epcms5p879eeba2a521ff23fea57ce42bf913eac@epcms5p8> Date: Tue, 30 May 2023 13:44:05 +0530 X-CMS-MailID: 20230530081405epcms5p879eeba2a521ff23fea57ce42bf913eac Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrPKsWRmVeSWpSXmKPExsWy7bCmuu6RDaUpBs39/BZ/Z29nt3i4u4XF 4s6k5+wWF8+8ZrQ4051r8b5lB5vF5V1z2Cx+f//HarF4uZrFzelv2C22NBxis9hwNNji54sb LBYr5y9ntFjR84HV4v/jr6wW+zoeMFn8f3eEyWLDsrWMDsIesxsusnh8vXmOyWPRywYWjyWd v5g8ds66y+7Rsu8Wu8emVZ1sHhMWHWD0OD9jIaPHxD11Hn1bVjF6rN9ylcXj8ya5AN4oLpuU 1JzMstQifbsErozlZz+yFDxhr2hduYCtgXETWxcjJ4eEgInE7cWHmboYuTiEBHYzSqy/NI+1 i5GDg1dAUOLvDmGQGmGBAIkFe5cygthCAooSF2asYQQpERYwkPi1VQMkzCagJ7Fq1x4WEFtE QEni1fy7zCAjmQU+s0msm7+bEWIXr8SM9qcsELa0xPblW8HinAKqEtdaVkPViErcXP2WHcZ+ f2w+VFxEovXeWWYIW1DiwU+YmTISqzf3Qs2slnj6+hwbyGIJgRZGiX27YYrMJdYvWcUO8Zev ROujFJAwC9Deb6smQpW4SJyfcpwVxGYWkJfY/nYOM0g5s4CmxPpd+hAlshJTT61jgijhk+j9 /YQJ5q0d82BsVYmWmxtYYV78/PEj1GkeEqe+r2KFBPNHJomJC1tYJzAqzEKE9Cwkm2chbF7A yLyKUTK1oDg3PbXYtMA4L7Vcrzgxt7g0L10vOT93EyM4TWp572B89OCD3iFGJg7GQ4wSHMxK Iry2icUpQrwpiZVVqUX58UWlOanFhxilOViUxHnVbU8mCwmkJ5akZqemFqQWwWSZODilGph4 csMjNTYyWj9Jr5oyo6Xxz/4UV6H/EpkTtXWlzR+u4+0ofvpVti9zTv9693aFR7KC+TWrNp3I Xfhv3/YEtk2rdA+HlTjf+Nrb7S2Qzb88bnFkUqDTFWWpV+zn3HeFlxf09jE0ZD9vzlzHkiR4 9XlfVeeXWTum2d2P8866cfDc0atZ1rdPCc5rdd3yz1Lh+/7bvUV+l29t7T+5q/mN0JGHn031 ohNmOS5Yep+nxHSf45y159r1vrrvvRS16sn0voYbOZErZZQPMTze/q6bTWuyuOTdvpK808fW bN0x596KYK0T/k6H415/m+msrtHQqHp8Ft+3ebPblquyztt4ZkPR5+7+u38qGIsPzu2V9tiq xFKckWioxVxUnAgAVvt/uAIEAAA= X-CMS-RootMailID: 20230529052832epcas5p4fa1b8cf25d9810d32bd2ccf012086fb3 References: <20230529052821.58175-1-maninder1.s@samsung.com> <20230529105707epcms5p1418eac680ebe1736196706b0db80dd39@epcms5p1> 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,URIBL_BLOCKED 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 Peter, > > The best solution would be to pass the buffer size as an extra > parameter. Especially when some code passes buffers that are > allocated/reserved dynamically. > > Sigh, I am not sure how many changes it would require in kallsyms > API and all the callers. But it would be really appreciated, IMHO. > yes we already prepared size changes 5-6 months back: https://lore.kernel.org/lkml/YonTOL4zC4CytVrn@infradead.org/t/ [PATCH 1/5] kallsyms: pass buffer size in sprint_* APIs But at that time new API development(for replacement of seq_buf) was in progress and we decided to wait for that completion. https://lore.kernel.org/r/20220604193042.1674951-2-kent.overstreet@gmail.com https://lore.kernel.org/r/20220604193042.1674951-4-kent.overstreet@gmail.com As I checeked these APIs are not pushed to mainline. we will try to prepare new patch set for kallsym changes again with seq_buf to take care of length argument. Thanks, Maninder Singh