Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp704719rwb; Wed, 28 Sep 2022 08:07:20 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7QHljuHl6m+JL3gtozioOzFzCbpk+13eJ095hKa9Dd6HugmqEFvxrgMjcfNEeu+yrvYM6A X-Received: by 2002:a17:90b:1d81:b0:203:6c1e:5a29 with SMTP id pf1-20020a17090b1d8100b002036c1e5a29mr11247512pjb.0.1664377640096; Wed, 28 Sep 2022 08:07:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664377640; cv=none; d=google.com; s=arc-20160816; b=xA1UDc5PuYxOKZMfNR9H+RAxtK48gJOeKJ5oWrW1z/4GOPHkSb+SiLnbyi8h5HN4Gq lJ6y5xqRxhhPW+F/o76HSxhwdmKm6am+CAxQZixbrWejjYirlYgCZP/Xz+2LF0cIC59a VE6sHLFq6Tlx/0J94W4UUS+aNJtGxR3KiU7gGBAR95IBG2TorvOwRhNVRuhIS4B2DUqR 7R5WoLUzQMtOslJG6k3b/aRAKAByTq4ZHQmPaGox7uwxtkrv9FyB08xPZv0fcctjlBTk OC8J6edD3z5l5AxDd4tqk6+371+6OUb7DjFyb+LjX7t7wsN+ls35n4VvdTofoH15h4eu RTXg== 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; bh=AX/XCxhpdbVVHbhyunySUg3dFfYwUm6jVR02ydVl864=; b=SDMtvwNZnGqdRZm9ZcWs6Tp9vmQHITtIxh5frA0E8+ooxm9MnosRRLZbT+mrnYEjfk hUPM25eM7IMgU518Bn+cwuXyUHxc6aBFmUaX8NclmN8nB2+xpJV4EAdwJBK0BTknoxRF Hm/PxNaT9aRuehteWh1zHrGGE79HJZhxgGDJ74okSzIBPbcry//VrtrBYw2LuRbAsR6N qG5X4Davr15XmlUftDBAj02oT0X0G55Ky3kpIwDcparpBAebbMv9SQIS1HhMunowbxE3 DteIYz5aV9uuP0W7/sNWjxuj5q0Tiy97S5PTVlp9CFVSBTiOvNSd+wyL132p5t2Das// L/1A== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f22-20020a63f116000000b00438c64bda21si6208767pgi.326.2022.09.28.08.07.06; Wed, 28 Sep 2022 08:07:20 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234581AbiI1O7l (ORCPT + 99 others); Wed, 28 Sep 2022 10:59:41 -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-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> X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no 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 Reviewed-by: Wei Liu