From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 36AD7C54EE9 for ; Tue, 27 Sep 2022 14:55:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232487AbiI0OzK (ORCPT ); Tue, 27 Sep 2022 10:55:10 -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> 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