Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp847602rwi; Fri, 14 Oct 2022 09:17:40 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7ssxRBkc+bBEd4RFqgdjtG6G0vGW9oB4o5L2Ml6u7OjaxnZqmB64YXT3vctmgEYGgh0ai9 X-Received: by 2002:a17:902:ac97:b0:17c:759a:cd27 with SMTP id h23-20020a170902ac9700b0017c759acd27mr6165864plr.162.1665764260236; Fri, 14 Oct 2022 09:17:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665764260; cv=none; d=google.com; s=arc-20160816; b=LYFLWRRznJS7DRJ5NIjsPj6XIzviZlSi1/xLLBCIq15RqquchHkxDWbsj6sL5OrD64 30U17Qnmnk1yLa9lzLiKEKdkprzxr3zy8TjhAEGIob22I4ZHET8vRRkgdTWBIFbrlL3U ScYOk9XNLPevWDtf8p4u8lTw24oFAplIYmJg35uYq4p6OoEeVyjV6aa3KEgpCCNjsaDb OKSFIHu6oWun3TVPbf9YodsKDHXEdbPgZpocLOfxGB3Mg/5KaA73Yq+Ss46bV8OidH5i x3fjovaswbwCLLGdao64heO+87u8xLs36wRQU3rQlFgg0u34vsnBJLg2I+gVh0NHWb0h hrSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=9FcX1J+0cwKyZaS3joif6Fb/FOBJClHbHVHQXJcliJM=; b=VX2OrMNQhPw6Ir1ZBR7fnquFbYS6pJPirFop/nUVRM0kxpozHusDz+sKKSKbS921Ng bfNI+8otgUPWIrb5or+kLlH3LAwbUUQF8EZGAhldM/Qlo6CGEvoWULDGe5Tv5Qg06XUb mXyIj7mADlDoa+PJoqttEFk4/DPFzayVQYEo8SrPCpSv19qEiKf3FfqSg0WdpslmUhJX TDTlA/M2pZoqnZnOWw6P93ohMqQoSaRYgraUkq222zdbdQuMFk22SbkD9RWU8Jmm+tK9 IUN3VV9rfCD9RaeLaw5GK+rHR4RGCJ3Tzrhekv2h7ciulMVpv342RiY6pCu048Logy7J /c1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=VzbzMei0; 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 l9-20020a170903244900b00178b95aa01fsi3689904pls.614.2022.10.14.09.17.26; Fri, 14 Oct 2022 09:17:40 -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=fail header.i=@igalia.com header.s=20170329 header.b=VzbzMei0; 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 S230080AbiJNPTy (ORCPT + 99 others); Fri, 14 Oct 2022 11:19:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230081AbiJNPTu (ORCPT ); Fri, 14 Oct 2022 11:19:50 -0400 Received: from fanzine2.igalia.com (fanzine.igalia.com [178.60.130.6]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5063126AC3; Fri, 14 Oct 2022 08:19:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=9FcX1J+0cwKyZaS3joif6Fb/FOBJClHbHVHQXJcliJM=; b=VzbzMei0aNMEABS5WXn1aLYbwp g+S1Ll2DxNL/0LsMzsJFR/3GexwQiM2Edydh6K9KzOwbNJuyxwZLpWHk0zJ2MPiTc3pArSOntSTJZ xiLEABTvduIWScGm2cIXgtpJs/s5qfeZWz5+0OkSWdR6UV3BqgDiPh+0d0E/SFBqPyVAmoWHYH09o jzzm0rU5gzwMVmTng6vNArk4OSKgpgcax6irOWc3WUuxtzuqfwBAT7wKm7+DaMX/1Xr6apSfJeoFh qlbTQXKzZRiaWo1EGpf8u/opFlzIu6Pg7ntb35z7qMLu5fwD4Rt6YlgjLJyU/5PDmcsyKQmoI33r8 /yIa/9CQ==; Received: from [179.113.159.85] (helo=[192.168.1.60]) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128) (Exim) id 1ojMTQ-001T5Y-Dw; Fri, 14 Oct 2022 17:19:44 +0200 Message-ID: <0d037ef8-e301-c0fd-8020-3846a4762ade@igalia.com> Date: Fri, 14 Oct 2022 12:19:24 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.2 Subject: Re: [PATCH V2 3/3] efi: pstore: Add module parameter for setting the record size Content-Language: en-US To: Ard Biesheuvel Cc: linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-efi@vger.kernel.org, kernel-dev@igalia.com, kernel@gpiccoli.net, keescook@chromium.org, anton@enomsg.org, ccross@android.com, tony.luck@intel.com References: <20221013210648.137452-1-gpiccoli@igalia.com> <20221013210648.137452-4-gpiccoli@igalia.com> <1c6a9461-0d3d-a049-0165-0d5c95aa9405@igalia.com> From: "Guilherme G. Piccoli" In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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 14/10/2022 12:00, Ard Biesheuvel wrote: > On Fri, 14 Oct 2022 at 16:58, Guilherme G. Piccoli wrote: >> >> On 14/10/2022 11:46, Ard Biesheuvel wrote: >>> [...] >>>> for (;;) { >>>> - varname_size = EFIVARS_DATA_SIZE_MAX; >>>> + varname_size = record_size; >>>> >>> >>> I don't think we need this - this is the size of the variable name not >>> the variable itself. >>> >> >> Ugh, my bad. Do you want to stick with 1024 then? > > Yes let's keep this at 1024 Perfect, will re-send after we have more feedback on patches 1 and 2. Thanks again, Guilherme