Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4099070rwd; Mon, 29 May 2023 23:56:51 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7Lwe9z3q0vIOYQtoOeejKQwzL15lYM4RcQzw9c+l9ctavJsAk5CpF0YTxUXviO3k0jCPYY X-Received: by 2002:a05:6a00:1ca4:b0:64d:2db5:f792 with SMTP id y36-20020a056a001ca400b0064d2db5f792mr1823310pfw.2.1685429811114; Mon, 29 May 2023 23:56:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685429811; cv=none; d=google.com; s=arc-20160816; b=mW8Jt59VKheBDApYg9rHJ4YkRQyFuFtjWsFmBNbmdhMtVnWYr604xts/njQpKmcgUM FJ+N+BB2pwbRT46Upp2FH3vQbh36wOAL9LaP5j4SHtPykY123sk4p7vfhyFAI9ClGG65 ZXxRagvHv9pHAze4BHLp9Egim5by9WJjncuxy4t0xA0Jep5TEVv0ONPRiy3RHujG89Bj QFB4g8mvtZUm31knsEfgRgMNDbCQO6KjoOAMaOOpao4bFCQEbZtSrbH2Sqjjrb8rGN0A kmpU8854hq9pC/XPCjG7Y/Rx8XrHfzmsSHV758EjiSwr/JqXcwOdppkwZRCat6SAmJr4 lwtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=o7BSq9ytklugFOyDmLNWraah9D1SBaiKnYWrg8YWVzY=; b=dpwMLy4+dwj/5nIatL5QBNJg/Y3anCcMMih4cnqA+FH0+uoe6QAN9LUV+KJ0o6TKgq yTVMIGQM+xNA9XZ+uvWAJ9AHJWtDBGui7B581btCtdNzjUc/9eedrM3XuFBc9TJRXSyj 1mciTogxZ2DUyE95f4obmLUZxfNjUd/wcoq7GaaMSwgvZK1AXMdeX1wpTqHPdu67pPM6 n9+aDuHlAw8J8gJ10znYX3eaV5C/AfzEwCwCeW3/Gq8LYbUuRbg1cYz9S3+svl2BMw4N 9eubBUIKtvL46h17w3BAFmD5NRYobZc+PkeAZozrxU3INLcatUoQP20KsPfQpro2Gtk8 2iig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=CClFspLe; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k127-20020a628485000000b005a8c65d57a0si1262495pfd.257.2023.05.29.23.56.37; Mon, 29 May 2023 23:56:51 -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=@ellerman.id.au header.s=201909 header.b=CClFspLe; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229951AbjE3Gpv (ORCPT + 99 others); Tue, 30 May 2023 02:45:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229603AbjE3Gpt (ORCPT ); Tue, 30 May 2023 02:45:49 -0400 Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D218B2; Mon, 29 May 2023 23:45:46 -0700 (PDT) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4QVjZv55tCz4whk; Tue, 30 May 2023 16:45:43 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ellerman.id.au; s=201909; t=1685429145; bh=o7BSq9ytklugFOyDmLNWraah9D1SBaiKnYWrg8YWVzY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=CClFspLelMasiQojGDSV8rakiv9SxUusKUuLe2+tTNTreFEwgNqa20yYFu/PgZ+R7 r0cl9Vho5EdCDiXCqVIqaNXoTk21GJgPMBObVdcOdZmiaA/Sdrs+TRyxB014BcbM/b 7wufiYNWGRITdYJ2jUQCpLtFH2Fb5NhZiAAY2+S1TP4e7CkJk7QuIrFHEMnx5SGD7J 8tz7dc8QFP9a5BfAud4zEtHDKJmyAkax0KTTk5r++Vc3NSpFmfD/xyw78ypMuZvogC 9r6pVCyEA0A/MRuMhDZQYGYvPJcvsynuikJt8ah4+ZlUQ9QIhteVoLhbPhxzeM2sxb HQ91XEKVPZ/Yg== From: Michael Ellerman To: Maninder Singh , bcain@quicinc.com, 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: Re: [PATCH 2/2] powerpc/xmon: use KSYM_NAME_LEN in array size In-Reply-To: <20230529111337.352990-2-maninder1.s@samsung.com> References: <20230529111337.352990-1-maninder1.s@samsung.com> <20230529111337.352990-2-maninder1.s@samsung.com> Date: Tue, 30 May 2023 16:45:39 +1000 Message-ID: <874jnutizw.fsf@mail.lhotse> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Maninder Singh writes: > 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 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") AFAICS that's the wrong sha. That commit appears in linux-next, but the commit that actually went into mainline is: b8a94bfb3395 ("kallsyms: increase maximum kernel symbol length to 512") So I'll update the change log to refer to that. cheers > Co-developed-by: Onkarnath > Signed-off-by: Onkarnath > Signed-off-by: Maninder Singh > --- > arch/powerpc/xmon/xmon.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c > index 728d3c257e4a..70c4c59a1a8f 100644 > --- a/arch/powerpc/xmon/xmon.c > +++ b/arch/powerpc/xmon/xmon.c > @@ -88,7 +88,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]; > -- > 2.17.1