Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1099763rwb; Tue, 27 Sep 2022 08:24:25 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7AJrySKzunsfbF+CVkzrlNH5d0ALEDF9TEm4rekBQKUVSZ2VG+f2PVie6igXlpzZEGOmbZ X-Received: by 2002:aa7:cd92:0:b0:456:cbb5:2027 with SMTP id x18-20020aa7cd92000000b00456cbb52027mr22086421edv.384.1664292265669; Tue, 27 Sep 2022 08:24:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664292265; cv=none; d=google.com; s=arc-20160816; b=S2UGyY2n4hFWM0MuSD0EqRqLfbginfvXy8g5T/ktPZZN3z/A3v1F0mSZmAnGC8uRFV AnBl2ByzNqcZX6Q3DTUGuNy4Q4Uu1BGbTJpTPh+uKDKF6d710utVmb/a5HEPoVwnfjHM Fc1hSZTn910M4+HgsQuNthn1liZrbsYMcOZ7vWlgh647EPXjrkO81ZgKL/L2IdNEyFXZ 7mWIfdOtn2uxV5pRRDV+2W3LZ7RjMQUVzk6FVwy0kpgM7bKYu2sWCx1EPJXfSPTNBK+K v4fs9jW8kRf+9vJA+n/lxTQBGmtZfiOGOHXfx68IJwlEazBq7MWIwfeYdAOVkLx1U7S1 m7hQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=nk8wuecLUG45oAgoqJQIOQrb2l/JKKQ93L+kkjStpWU=; b=EYvmNgbXZWtBi7s61TVatenB3RxFiEplg4GEhnYPn9gZqN93fPmpFm/w1F6PxMg2WC k/lpSE3sgKKRfC39CLJKkpC+5ovUE+LUAudO5Xb5skLPLgUF4xSFnj11NxYG8s1J/1o3 X3B1/qpZcWjy6XIhkKsraKrXveJ+NCFbxrOLKHaqdYt1EaWhvVUkKHpqPVpKdXUtZ1+Y +cAbGmQ0qNYa2MICOBUpf3N5W8CeZNk72oIwjkxX3FN17EvOdRX1dwWW7yHQIbW9vgxK WsMDNPFML23vBEr6O5c4vJ1NFEVMfgJlUoIsoPeAI5GEgmxcEn7mkRAavdnS3YE78SOb LD/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=edkIUBbH; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i14-20020a05640242ce00b00448c8237904si2905572edc.73.2022.09.27.08.23.59; Tue, 27 Sep 2022 08:24:25 -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=@linuxfoundation.org header.s=korg header.b=edkIUBbH; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232091AbiI0OzI (ORCPT + 99 others); Tue, 27 Sep 2022 10:55:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232444AbiI0Oyn (ORCPT ); Tue, 27 Sep 2022 10:54:43 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D433776971; Tue, 27 Sep 2022 07:52:18 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D7C9C61152; Tue, 27 Sep 2022 14:52:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ECF60C433B5; Tue, 27 Sep 2022 14:52:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1664290337; bh=ptfmmYZp+x1Y9NE6TMn3iivjW3xBjzaMOwgTv/XmtFI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=edkIUBbHSu3HEoKHpm5KykZITI19g2qPLhglCgZ0+YAYCy5hw29hcYxukE36re0m6 eWx+sZA49h/yHf9FWkL8UfiwMgePdB3Zn13WWC291q3sL5LEQs4jvBhsxhzCsQ6Sgb pHARfRmPSLbVRaiFuSCKED8EI5pkglghqnUoDvy4= Date: Tue, 27 Sep 2022 16:52:14 +0200 From: Greg Kroah-Hartman To: Miguel Ojeda Cc: Linus Torvalds , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, patches@lists.linux.dev, Jarkko Sakkinen , Boqun Feng , Kees Cook Subject: Re: [PATCH v10 02/27] kallsyms: avoid hardcoding buffer size Message-ID: References: <20220927131518.30000-1-ojeda@kernel.org> <20220927131518.30000-3-ojeda@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220927131518.30000-3-ojeda@kernel.org> X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 On Tue, Sep 27, 2022 at 03:14:33PM +0200, Miguel Ojeda wrote: > From: Boqun Feng > > This introduces `KSYM_NAME_LEN_BUFFER` in place of the previously > hardcoded size of the input buffer. > > It will also make it easier to update the size in a single place > in a later patch. > > Reviewed-by: Kees Cook > Signed-off-by: Boqun Feng > Co-developed-by: Miguel Ojeda > Signed-off-by: Miguel Ojeda > --- > scripts/kallsyms.c | 10 ++++++++-- > 1 file changed, 8 insertions(+), 2 deletions(-) > Reviewed-by: Greg Kroah-Hartman