Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp14100364rwb; Sun, 27 Nov 2022 17:37:20 -0800 (PST) X-Google-Smtp-Source: AA0mqf4hHz0KogIrYZ/KCztOl2jA9A5F6OYv2+Q5AxIUMGvCbCMZ5J4XTHnDgnSLEGRRcDxqYk/g X-Received: by 2002:a62:687:0:b0:56e:924e:ee22 with SMTP id 129-20020a620687000000b0056e924eee22mr30282374pfg.34.1669599440220; Sun, 27 Nov 2022 17:37:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669599440; cv=none; d=google.com; s=arc-20160816; b=ae652O6CRH2ITQtOBL0GLeLWQTA+QdUo7GzwYzNrJPQDwHoRAxcOv3dt9dCUySViFB WxZkpvSHqrB9kpnkTY8E5eQzY1WsQE6ivwCLSBvR5jQm5YI/uzblbua5UEDpoG708fiy DHgDnjI/UomMUky2qUz1fmSkkABucBoDUT3Z5v8GEXb0/b1tb29pOzj6BO+mgUdYiuoh UqXEiD/8mXKVGHDJC7QmCG3kDU8MWFiQdPq9V2MW3IcZxg1XaXqTVtSBO2blZll+C49s q4wolcChLtYI1N9n5Q9YGzr9Fqdhh54HdQgRlozQ5TwPLXzkjJ/yWvbqaiByqXVLBaLH fL2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=EG4MHTmav0qSlUqvZ7+PPcRbBqJGh6HoxE1eRf/Pof0=; b=JSQ1cv7sYMQ70+SRM7B4qPaKF+YDuoMTnp/x2r6NkpvN/pBiQopd/3JDQLGMMhDv/H WjwvasXyBv6tBBL837WuQxLc1cYBNe2jn6+TdluSzBcILcf2ysogTldREdWvk5ARpG2j BfW0uzDt2lyjX48Kzfx+JCS3Ac9AmjJB4dEuboPH40A5U/y4do3cbMSpC+60EJVVjdJy HKrIISU6LA1+9HJ+rA83KEz5iodrhnMZN3UgNu9OwsdPTmbHFCf3Z+Gqed+7yx9iMqDF mTkggp5XRbsWhXZBscWo8g8dum2gS0in1/s9rYH1H3DitQn6eprSKHFGlbZMl4K0p5iZ lGqQ== 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 u8-20020a056a00098800b00571d24aaf04si10542969pfg.114.2022.11.27.17.37.07; Sun, 27 Nov 2022 17:37:20 -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 S229602AbiK1Bf2 (ORCPT + 99 others); Sun, 27 Nov 2022 20:35:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229475AbiK1Bf2 (ORCPT ); Sun, 27 Nov 2022 20:35:28 -0500 Received: from cavan.codon.org.uk (cavan.codon.org.uk [176.126.240.207]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73A69AE65; Sun, 27 Nov 2022 17:35:24 -0800 (PST) Received: by cavan.codon.org.uk (Postfix, from userid 1000) id 15B6A424A2; Mon, 28 Nov 2022 01:35:23 +0000 (GMT) Date: Mon, 28 Nov 2022 01:35:23 +0000 From: Matthew Garrett To: "Jason A. Donenfeld" Cc: linux-efi@vger.kernel.org, linux-crypto@vger.kernel.org, patches@lists.linux.dev, linux-kernel@vger.kernel.org, ardb@kernel.org Subject: Re: [PATCH v3 2/5] efi: stub: use random seed from EFI variable Message-ID: <20221128013523.GA6780@srcf.ucam.org> References: <20221122020404.3476063-1-Jason@zx2c4.com> <20221122020404.3476063-3-Jason@zx2c4.com> <20221127211244.GB32253@srcf.ucam.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_PASS,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-crypto@vger.kernel.org On Mon, Nov 28, 2022 at 02:12:38AM +0100, Jason A. Donenfeld wrote: > Yea this is a bummer. During my first attempt at this, I actually > overwrote the whole thing with zeros and then deleted it. But Ard > pointed out that this doesn't make a difference anyway. But, as it turns > out, that's more or less the same thing that happens with seed files on > SSDs (nobody calls fstrim after overwriting a seed file). So at the very > least, it's no worse? Anyone with the ability to directly read the flash variable store is almost certainly in a position to do worse things, so I wouldn't worry about it.