Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1670151rwb; Fri, 7 Oct 2022 16:46:16 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6GGv0vLDNTHhQflFQk+QQSaK0QnLRdnCYnwyGo9OguqqGBsTpLItmqY9Auu7gLLzsoA5nm X-Received: by 2002:a05:6402:3988:b0:44e:6f08:ddfb with SMTP id fk8-20020a056402398800b0044e6f08ddfbmr6661042edb.89.1665186376706; Fri, 07 Oct 2022 16:46:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665186376; cv=none; d=google.com; s=arc-20160816; b=Gb4mlmHwIAJAZoG97scW0OKGLGuJDVL9khj7SFTDNYofSkX0PtTR+SpOwquankJD/m rzTbg0UEIcH0DC3HT1NnLUaaGdcjzHPtBpTGA9ohiBByJ2IeLU20vCDoctNMSUc7J13E Ou8Ipr7zvZ0gr+WbF2sVopr2mqKfr3Rifq/yK3Kzujg+Cf6Vljq6VKGx+8RVXLYdAyhF KnnyCTLGIBnPXGiSXJ5W/A4Ugflh0U6zf4admdovZht3WceR1deY6xV8hTPDtrteJ+En bwQwdlKY4Kw30FDJa0zV9/CylAVI7htz0foOobRNkxhiVGSgLsKoQcCWUk9BCGTxq3vb GaQw== 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=njY685+fJIJ0trGWiIPdJ5ci69EWL4zwHN8ZL610bNQ=; b=y63lpeocO3BOsCPgS1zV4xKlyP8WdMfv6GeV1/SBJj6Smshmfx/9sNWZnkP6u+C//R ysPtjZ7It2chIjRW2uK8AQe6VsWrme/EYNhihb5H2DamprzEkJ809SLBCGFym4qV3j6h OsPjFGr8M5ACGGOV9/1KMhDXoLb3GnIQQqCPI4FvTrel6cTs0thkHoNQh0NUIx4YEnqn 7oyuQaNMMx8yU3gG00xVeaPig+6Ux38hBQqg3Tc56DG0jSBomZczNTiIlY9j2OpJWVyN Pl6Eyfa2MO9eSjLbfWzsnexq6s44bAEOBCikAk2brUJuoZvO2cUEGg0KH0atni3L4OdQ ZicA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=ZbrymY6K; 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 i20-20020a1709064fd400b00780b95a07b4si3601329ejw.873.2022.10.07.16.45.48; Fri, 07 Oct 2022 16:46:16 -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=ZbrymY6K; 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 S229745AbiJGXaq (ORCPT + 99 others); Fri, 7 Oct 2022 19:30:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229579AbiJGXab (ORCPT ); Fri, 7 Oct 2022 19:30:31 -0400 Received: from fanzine2.igalia.com (fanzine.igalia.com [178.60.130.6]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C99138457; Fri, 7 Oct 2022 16:30:28 -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=njY685+fJIJ0trGWiIPdJ5ci69EWL4zwHN8ZL610bNQ=; b=ZbrymY6KpDp9rFwIMAqNCk6Tbz tD4iuaVs8CgXQd2F3fSM+wbJXjhEXMXLtpuEH9U/P7XUUU56OXYiYPFQTKhEQKkltg1CV768B+G8+ lcI7eaC3u8UTOxhgyqG24FukxzS43EhPGc0eucaad4k2X8niWpfSaHGkUCCSbpPa35xSnt1oXQtcQ tU11w/8A7KMmildtewgBc65VesBKlbD4uMgUUt+hSvtuZ9efCSZGtQKo+Cvvat1jFiwD3m6zCEy/7 OoP28xh7KQdPP3VeCGfJTHKlPVszby///DT+YllmNpNIKjt/jTMMz3ButxJarf4Akvx3Xl4Rb0r+9 ugKUw0Dw==; Received: from 201-43-120-40.dsl.telesp.net.br ([201.43.120.40] 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 1ogwnM-00DmvH-Mk; Sat, 08 Oct 2022 01:30:20 +0200 Message-ID: Date: Fri, 7 Oct 2022 20:29:55 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [PATCH 8/8] efi: pstore: Add module parameter for setting the record size Content-Language: en-US To: Kees Cook 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 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> From: "Guilherme G. Piccoli" In-Reply-To: <202210071230.63CF832@keescook> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.8 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 07/10/2022 16:32, Kees Cook wrote: > [...] > 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. 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). 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. 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. > > Also, can you update the commit log with Ard's archeology on > gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize ? > Sure, of course! Cheers, Guilherme