Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1830302rwb; Fri, 7 Oct 2022 20:11:43 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4GyzWVYsMEFTWlQeor1AUDKABVVpdRtZz2AvVQrlf5eEasj2rIv9lAY3rBW+FXA1pV++mz X-Received: by 2002:a17:90b:3510:b0:202:f18c:fdb6 with SMTP id ls16-20020a17090b351000b00202f18cfdb6mr8626695pjb.122.1665198703314; Fri, 07 Oct 2022 20:11:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665198703; cv=none; d=google.com; s=arc-20160816; b=BtS9SZo2lH7l2eCOBArtV2CpOYIb5y7eLN976OhY4rWIqQ7Ob7Blk5fNN1iXIUYpH3 dInmQ4RVIJLbNAkqPfwEaBrnwvksXEftOi02t9s6HR9FN/qG3vRpMmABAMg79twtcXOa WGzckZl4DbNK2avw0+TN171uaLR0hkqlKTN5GCOhDZ2fkT/ArvlbBfITRH6+O0fR27Xr CsRYxu/j9tKXF2KRS1gmardBYf6d7YszhcjeDiNpPrqgBLVRjcuahMFCFfYkEyumW6dj a4F8JgP8EdWXrT1d7xRYm3dtjXeXKcNHTwhuJZwt0azj/TCEBRUoFwSxztYfIdiCElJM marw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:references:in-reply-to:user-agent:subject:cc:to:from :date:dkim-signature; bh=BhwPrOuYUwoWzRSktEsVhVADMKFqjhqc+NN8M06UFVQ=; b=IdR6xo+UPM28BFneQ7jdtSsYEGoJjXWNlcus/M6f5dGl/A1+ARSBXfUx4AF/euGEIk o8IgPzepIwkZNwFNvebyceZ1nu3kcaNWHppAyxDqOYLHZCvJuWT7ocbzsQ8nDeQK+crI DYQPZ6POo4VBGEwE8NTE85qz3ALxoR3TdL54WqAP2rojMHpiKQjE1uoYaY4bT1/sGAqx c3+a/DMx3jOBODqacZ12fyxOt8lz91WNxYCykGeS1XpRJmhVxsLaB4KT3W6rXMARQ1a8 XXK8GgP02G9KFKv1D1eEetPNmret7AirpGn908z3MUJFY5NJyKNa4YdWTrIQB8m6LPyo 6WsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=X2+wqrrC; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h63-20020a636c42000000b0042b95537587si4317227pgc.359.2022.10.07.20.11.16; Fri, 07 Oct 2022 20:11:43 -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=@chromium.org header.s=google header.b=X2+wqrrC; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229437AbiJHCg6 (ORCPT + 99 others); Fri, 7 Oct 2022 22:36:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229508AbiJHCg4 (ORCPT ); Fri, 7 Oct 2022 22:36:56 -0400 Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DBB3127BEA for ; Fri, 7 Oct 2022 19:36:54 -0700 (PDT) Received: by mail-pl1-x631.google.com with SMTP id i6so988629pli.12 for ; Fri, 07 Oct 2022 19:36:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:user-agent:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=BhwPrOuYUwoWzRSktEsVhVADMKFqjhqc+NN8M06UFVQ=; b=X2+wqrrC1epfsfjZd6c945cE5qsFPLh2kXOPBFlPs4d+maA1HHm84N4prBkJ+mRwUQ R5U8jBYHa0pzXG3r2xBpIpz8jnWAStmK7d8UAn0nKTje3jtPDAhyBls9fgLb13LQkJtr DaJbiIKTYYtQGpmyRed+VjffyPfBecFwXYU5I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:user-agent:subject:cc:to:from:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=BhwPrOuYUwoWzRSktEsVhVADMKFqjhqc+NN8M06UFVQ=; b=M1nvT/A7fmpdrCI0tBFbmi68YoW1P9cv0z+j2IOas5MmoQEgUhLvg2EktSypJ1RzGZ mRD2h0qOucWQ57Ne4rqgG9gvZTqKmU2ncEfymdAC9JXn5dM4nzRx3gAM5UiQggQH+oOE snsSlm4uRVypUWQmyYBAGNKoQOF52+XiE3gcRNo5vGEKOS/7jfBIk7O3b7ASZ2WPZbnF o+nkg0LfBPxi+NKFRrtOsqSLtApf5pptR4cYhOPGazWx42SxeE/1iKaXiDYLEuYS7djE Ixtpt+WChPgInbrJj11y7QMd/0DqnL5kXWX1JP+M+Oew8+b6CYJzhKyu0hM/Kfd1sCQt evOA== X-Gm-Message-State: ACrzQf2cIOwNhKSZCk3PGGNdBfVQCXIsrm2AM7+OP6OZlzkRQlbZyHxU DIsWeWs/9GnQ70+fHHwp/FeE/A== X-Received: by 2002:a17:90b:1e46:b0:20a:c49f:9929 with SMTP id pi6-20020a17090b1e4600b0020ac49f9929mr8303651pjb.221.1665196613803; Fri, 07 Oct 2022 19:36:53 -0700 (PDT) Received: from [127.0.0.1] (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id z11-20020a63190b000000b0042aca53b4cesm2365872pgl.70.2022.10.07.19.36.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 07 Oct 2022 19:36:53 -0700 (PDT) Date: Fri, 07 Oct 2022 19:36:51 -0700 From: Kees Cook To: "Guilherme G. Piccoli" CC: Ard Biesheuvel , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, kernel-dev@igalia.com, kernel@gpiccoli.net, anton@enomsg.org, ccross@android.com, tony.luck@intel.com, linux-efi@vger.kernel.org Subject: =?US-ASCII?Q?Re=3A_=5BPATCH_8/8=5D_efi=3A_pstore=3A_Add_modul?= =?US-ASCII?Q?e_parameter_for_setting_the_record_size?= User-Agent: K-9 Mail for Android In-Reply-To: References: <20221006224212.569555-1-gpiccoli@igalia.com> <20221006224212.569555-9-gpiccoli@igalia.com> <202210061614.8AA746094A@keescook> <2a341c4d-763e-cfa4-0537-93451d8614fa@igalia.com> <202210071230.63CF832@keescook> Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 October 7, 2022 4:29:55 PM PDT, "Guilherme G=2E Piccoli" wrote: >On 07/10/2022 16:32, Kees Cook wrote: >> [=2E=2E=2E] >> Given OVMF showing this as a max, it doesn't seem right to also make >> this a minimum? Perhaps choose a different minimum to be enforced=2E > >Hi Kees! Through my tests, I've noticed low values tend to cause issues >(didn't go further in the investigation), IIRC even 512 caused problems >on "deflate" (worked in the others)=2E > >I'll try again 512 to see how it goes, but I'm not so sure what would be >the use of such low values, it does truncate a lot and "pollute" the >pstore fs with many small files=2E But I can go with any value you/Ard >think is appropriate (given it works with all compression algorithms >heh) - currently the minimum of 1024 is enforced in the patch=2E Right, but not everyone uses compression=2E On the other hand, this was ne= ver configurable before, so, sure, let's do 1k as a minimum=2E (And a comme= nt in the source=2E) --=20 Kees Cook