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 EC42BC04A95 for ; Wed, 28 Sep 2022 14:59:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234544AbiI1O7j (ORCPT ); Wed, 28 Sep 2022 10:59:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234587AbiI1O7b (ORCPT ); Wed, 28 Sep 2022 10:59:31 -0400 Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4479E9C7C6; Wed, 28 Sep 2022 07:59:25 -0700 (PDT) Received: by mail-wr1-f53.google.com with SMTP id bq9so20246306wrb.4; Wed, 28 Sep 2022 07:59:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=AX/XCxhpdbVVHbhyunySUg3dFfYwUm6jVR02ydVl864=; b=DCkWlFMgdjoXRNQpbMsB0xfn7wA3UnRdh0a6yFwxR29tUOe8xAZPzoi+uLvJbct+uj EPjHawDkgaI2hdUCt+zRdasz7ZT/o+iBIMO/pb8PCwzntTP/uHco9/VStXULw2x0H2Qn V8MnP4LquLb6sWscLxLPJpC0SwbO+xPsNnpTE3WDwbCxOoiQ3YOdogvqS1SDDwdqrz6V IOvkMI5aA9a1+FkuiBwzfTej5YlT54ICf2t19n7nDMccFSaN9eXjhNVVb46WQgnUBfWj ytzSTzQhI/UHK0oSCJk3o65ORi300SeVGzixkMbvSOQl6NQdNjVlzOo8KDs0YfVhMKrW ycVQ== X-Gm-Message-State: ACrzQf13+M3Oo+jTNVe8n3wVBKH2Z5UId/3/Yh/5d6TsS0X7EAd+7Oy8 HuUHVylb6bZYCtvC7mmlLRk= X-Google-Smtp-Source: AMsMyM650KPDXUhvVyBLF0kqvjrxyaYRuq5nqe51aXlk0h3C0AQ/x0l1j5SwC8jkwKaQOnXhBILMaw== X-Received: by 2002:a5d:5b0a:0:b0:22a:f83a:2b6f with SMTP id bx10-20020a5d5b0a000000b0022af83a2b6fmr21403721wrb.176.1664377163416; Wed, 28 Sep 2022 07:59:23 -0700 (PDT) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id n3-20020a5d4203000000b0022acb7195aesm4458839wrq.33.2022.09.28.07.59.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Sep 2022 07:59:22 -0700 (PDT) Date: Wed, 28 Sep 2022 14:59:21 +0000 From: Wei Liu To: Miguel Ojeda Cc: Linus Torvalds , Greg Kroah-Hartman , 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 , Wei Liu 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: rust-for-linux@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 Reviewed-by: Wei Liu