Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2063310iof; Tue, 7 Jun 2022 18:31:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwM4YBl2oLUPgoE6hGXIXaiHTAueGyIaXV1yY3TG6nc/Grb31IkJnhCRnn1nOVIImG2k7sc X-Received: by 2002:a17:90b:1298:b0:1e3:49cb:85be with SMTP id fw24-20020a17090b129800b001e349cb85bemr35426874pjb.159.1654651877346; Tue, 07 Jun 2022 18:31:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654651877; cv=none; d=google.com; s=arc-20160816; b=htPp+gJj22lEOpRPxMfYFFH1iN3TkjKt+4zOxz5yFtS8MpYFKndzjqbTpNU0AJ80Oo lGKuThvbTacrWQBsSYtG3bTylet7/kaIVDsHDDhxbe7iyVZkTU/su3lEw57YgC4D1yER H0RvxEDBe+7Q1Ju2hS4ZisPKCN7rZS4k0/pfknbpPXwB5RFwB6EHM8KqHSXCFLZEEXfI c6eeHCP5xEsiya8tndRbesn5r8rsqMQpzStBPuhQE1aTU6VXm6XOWjOcZJ+iHJNlpxdv Cx2wuhXoC9VIYkFG+cDxDC6j0F1fFrtR8XqlWKNLacRawQu+qCGzQFKNnjdMolTWOSR4 YaTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=eyIyZa135ViHebuXCrJA3Flo9/57KxoVHoQeUS9+uqQ=; b=Bu+ys4GIJ6uLNWPA3MzpriZX5+OgfZngI98sXTnoN38omfFF+oHmy27wZ3f4Ogjn5S KrRYCHQbtOwacNMIxKUAG6k9FibJVt+3XS780UWjOm21+mhhWUIXeSYfyNwxPmnDpTE6 vaXiCUjE5qM3zGFXNCdyMAqRUCax2KfN8VPUpDb3d0Zgk9XnFXZrgRREqdN0jHRx4ScG 8tZnfRvg1Skrs7YUV7o3FwIaZDmAY/lpRgVEA7XMhyuo3SgSYJAHGWxrkqs8TLigvLjc JMdkAmkK4GfhJoZu+Af6ufiTaW479Lk5XxXcxC4IVO/XfU1O1PXnec51neVu2ziUyen1 Ww2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b="Srv6/nzf"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zx2c4.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id l63-20020a638842000000b003fdda84798bsi7786153pgd.117.2022.06.07.18.31.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 18:31:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b="Srv6/nzf"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zx2c4.com Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C39A52945D5; Tue, 7 Jun 2022 18:23:19 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242753AbiFGLWv (ORCPT + 99 others); Tue, 7 Jun 2022 07:22:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242791AbiFGLWj (ORCPT ); Tue, 7 Jun 2022 07:22:39 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5855C2E0AE for ; Tue, 7 Jun 2022 04:22:37 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2DCC0616A6 for ; Tue, 7 Jun 2022 11:22:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 56E4EC34119 for ; Tue, 7 Jun 2022 11:22:36 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="Srv6/nzf" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1654600953; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=eyIyZa135ViHebuXCrJA3Flo9/57KxoVHoQeUS9+uqQ=; b=Srv6/nzfXdGh1ys3dVW+NxNWMmHWvirx7E4BXLyAy0Tr/baW67AMJ6tDKM5qbEfgui79H1 jCHBiV6nO9PlIDDktJs6ZVJUcC6Y5PMO5rxe/DL/5tWqJXoE9+ICUJj30686MT0/uAaebx +QgVkIjt1q5vcjkT6FjS5mZJcctg08w= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 25383e6c (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO) for ; Tue, 7 Jun 2022 11:22:33 +0000 (UTC) Received: by mail-yb1-f173.google.com with SMTP id x187so3032923ybe.2 for ; Tue, 07 Jun 2022 04:22:33 -0700 (PDT) X-Gm-Message-State: AOAM533twp7smN3cxXn2yZwGp9k/AllGDo5kcP0AGvIFPhyMp1IBKVyJ AHCzqGI9j8pZPwYBiIzdSy2gGV3QdWDb/XhqjOg= X-Received: by 2002:a5b:dcf:0:b0:64a:6923:bbba with SMTP id t15-20020a5b0dcf000000b0064a6923bbbamr31094964ybr.398.1654600951873; Tue, 07 Jun 2022 04:22:31 -0700 (PDT) MIME-Version: 1.0 References: <20220607111514.755009-1-Jason@zx2c4.com> In-Reply-To: <20220607111514.755009-1-Jason@zx2c4.com> From: "Jason A. Donenfeld" Date: Tue, 7 Jun 2022 13:22:20 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] random: defer use of bootloader randomness to random_init() To: linux-arm-kernel , LKML Cc: Stephen Boyd , Ard Biesheuvel , Catalin Marinas , Russell King , Arnd Bergmann , Phil Elwell Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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-kernel@vger.kernel.org Yet another approach would be to mix immediately, but defer crediting until random_init(). Jason