Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp985079rwb; Wed, 16 Nov 2022 10:14:24 -0800 (PST) X-Google-Smtp-Source: AA0mqf6ppWChEoq8so7aemTCNlHECRQDB4PDE2xU06EPsr8MWpCDoLsTVNbcv2viDub8IAR2hiH1 X-Received: by 2002:a05:6a00:3689:b0:56e:d7f4:3c4a with SMTP id dw9-20020a056a00368900b0056ed7f43c4amr24498544pfb.76.1668622463795; Wed, 16 Nov 2022 10:14:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668622463; cv=none; d=google.com; s=arc-20160816; b=H3WCHFiJByF2LV9ATtLjezJv66VQuc5/owFQO1XdF69j1PfOMk3LFmxXD72ARq091G SGlQACpfS7s1k/rjOkh3NaQu1AIWRXahVEGjrDJgfRh9IHjOIrPyutPK59N28eDKiErg bA4K+INGDeEOxGawATVfOlt8p/4If/cVAHCmHkO34AW+VbKp+m+ulSQh5mbXJPvEq7aP qnkalH/RZe+DVNnqQ53fNVhMtNdLknDy86WUhXVgdpvh4+OkmBPO17BN7E5mTTbx+ome typ8kAzX9z10RnCuWy7gd7BOCoPAPfoBw+zjhQTQ+ITOP5C5chT/vS6eGsEV1ph4TN1G pn/w== 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=OABfm/a+TL+Z7++lEyrtkIRBnUXMW+xYlHn6b+qIjbg=; b=ibMErcMswxO5mXFwpjnwfSAhLPijOwTNr2cdchlmaD4wWFFsgmn4JUI3vw9Kt0EGYt FOMUdBednZdJrrPC0IpDsThaPdRTbPx9Fi5o9Gwtauf1TqZUVLYP+f0OVFSDjellJtDp JblLjUjQS3V8zamXwMt19ZcEHFN6O1Go+mgJDFf+VaGiZym/yJ3i2Xm+6sQIi1qYt2qk Bq5oZeZLL+C3+xookyvl9SvpX1pkHC5hhQm/d7BhxRXIo1HtdblHVNqW0UAo6ncy8CVo lOgPYymCNYI3IpxjxCUqj08YEkJT6cvLxBNLKRka4OTsqy3K3LWlJIZTxHl21NASYwTn Aw6A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-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 127-20020a630285000000b0046ff3634a6asi17019103pgc.215.2022.11.16.10.14.09; Wed, 16 Nov 2022 10:14:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-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-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233512AbiKPSII (ORCPT + 99 others); Wed, 16 Nov 2022 13:08:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229489AbiKPSII (ORCPT ); Wed, 16 Nov 2022 13:08:08 -0500 X-Greylist: delayed 504 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 16 Nov 2022 10:08:06 PST Received: from gardel.0pointer.net (gardel.0pointer.net [85.214.157.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58A2FEE1D; Wed, 16 Nov 2022 10:08:06 -0800 (PST) Received: from gardel-login.0pointer.net (gardel-mail [85.214.157.71]) by gardel.0pointer.net (Postfix) with ESMTP id EFB82E8019B; Wed, 16 Nov 2022 18:59:38 +0100 (CET) Received: by gardel-login.0pointer.net (Postfix, from userid 1000) id 72FBE1600BB; Wed, 16 Nov 2022 18:59:38 +0100 (CET) Date: Wed, 16 Nov 2022 18:59:38 +0100 From: Lennart Poettering To: "Jason A. Donenfeld" Cc: linux-efi@vger.kernel.org, linux-crypto@vger.kernel.org, Ard Biesheuvel Subject: Re: [PATCH RFC v1 0/6] Use EFI variables for random seed Message-ID: References: <20221116161642.1670235-1-Jason@zx2c4.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221116161642.1670235-1-Jason@zx2c4.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, 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-crypto@vger.kernel.org On Mi, 16.11.22 17:16, Jason A. Donenfeld (Jason@zx2c4.com) wrote: > Commit messages are rather sparse at the moment. I'll fill those out for > the next non-RFC patchset if this idea isn't immediately demolished. > > The biggest consideration is wear leveling on the EFI variable flash > chips. However, EFI *already* winds up writing to non-volatile memory on > every single boot anyway, so maybe it's not actually a big deal? So as mentioned elsewhere: This might (probably more than) double the wear on the flash chips, since firmware is unlikely to batch these writes with the monotonic counter write. I have no idea how realistic these issues are, there's a lot of handwaving involved, but to sidestep the issue I put sd-boot's seed in a file on disk (which should not have issues that much with wear) instead of efi vars. Lennart