Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3284307pxp; Tue, 22 Mar 2022 16:27:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyuWfyJdHdluNOHceV3XtacpLqZmsnJXDmj0spHe3+09Yn5xmhNl6Yg0xwY1MpUzBwPI9A+ X-Received: by 2002:a05:6a00:188f:b0:4fa:8b24:fb8f with SMTP id x15-20020a056a00188f00b004fa8b24fb8fmr16770469pfh.28.1647991628151; Tue, 22 Mar 2022 16:27:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647991628; cv=none; d=google.com; s=arc-20160816; b=cLV1sAHIhydGg4UyZGAou4ZT9ru9YxZGdf3zDrKw/s4aBZdbEhLzhVoaAELS/XKxet vzYu1FmpkKpJb22oQj5eanxzXXXW1VD2Lypu3YkVPUpAYvD5yBl4MVLHysbAZIg8+fV9 thgupNnK+XhLvPD9XLfcMq/FIfn5kf3WgNNUwc62qhI5ZAhrrD/COD78m+9x/27jWhFj 6GLhrw5VcA3XHeUXB2vWqurJ2dzacuAm4EC+/7n9bFBjd3bRT0PmrgjewkhRnMU5+Ze1 oiHG/V0cR6TVx655QT+Jk7QLKgFJbHYShiu/GmNDUqmx3I0qz2C/raypBvYUVJyMVSoN jI2Q== 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:dkim-signature; bh=gPX0nJxefwWFFSNK75somPtzsLvzvt9oMVqDAB0yArg=; b=DBANGSOFUeRo+KCCQQVIGTR7feZzGwwbFXk5Y9dwB6OVdbEgVpVnvscGv0DPn0SPdj XzK03m3XQBRbabhGr46VO6+AIw+Iq2M1wupI7rj+dLvRZ+c422Vr6MMKcrfkFXTQ3Du6 VY2SC+Hn1dh5vJIoK6Ik5PLYCypjyDZ3exU+nKC/uTPr8Xp5cR4SPP2yDdqSPMBYOxcR YJYvHP+qY7I1bRSFaeBA943ecC09Pxe6HS8jQn3vAG+bAmpEvpPAK01IMBDkcjzJzNmg Gee5CliIjlxMq9lq6TDs4AshvBe9tShD7X4ZhurYATv4efsqcgkuBz1N4o4dagA+4C8D VxPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=Umso1iRg; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zx2c4.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 18-20020a170902ee5200b00153b2d165a9si14312269plo.433.2022.03.22.16.26.39; Tue, 22 Mar 2022 16:27:08 -0700 (PDT) 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; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=Umso1iRg; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zx2c4.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239423AbiCVRLi (ORCPT + 99 others); Tue, 22 Mar 2022 13:11:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239420AbiCVRLg (ORCPT ); Tue, 22 Mar 2022 13:11:36 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 745997890C; Tue, 22 Mar 2022 10:10:07 -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 E1C3F614BA; Tue, 22 Mar 2022 17:10:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6B984C340F0; Tue, 22 Mar 2022 17:10:03 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="Umso1iRg" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1647969001; 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=gPX0nJxefwWFFSNK75somPtzsLvzvt9oMVqDAB0yArg=; b=Umso1iRg6iLt1J9W2agcmRvJm8/SwpH5XzKQ2jWhqRWp2rJMQFPahsU7BNThUuO3/kTZrU BzyfqemUzgGr2R9+Jlb2Zw0o2gCLNOns0Ma4jGaIgkzGU78vKHYj/MrBuIFFD4YHluuKbF vaCL5KqJKrn+BR1+D5ezEAVXc1tGj+k= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id f4b3020f (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Tue, 22 Mar 2022 17:10:01 +0000 (UTC) Date: Tue, 22 Mar 2022 11:09:58 -0600 From: "Jason A. Donenfeld" To: Guenter Roeck Cc: linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, linux-arch@vger.kernel.org, Dinh Nguyen , Nick Hu , Max Filippov , Palmer Dabbelt , "David S . Miller" , Yoshinori Sato , Michal Simek , Borislav Petkov , Guo Ren , Geert Uytterhoeven , Joshua Kinard , David Laight , Dominik Brodowski , Eric Biggers , Ard Biesheuvel , Arnd Bergmann , Thomas Gleixner , Andy Lutomirski , Kees Cook , Lennart Poettering , Konstantin Ryabitsev , Linus Torvalds , Greg Kroah-Hartman , Theodore Ts'o Subject: Re: [PATCH v1] random: block in /dev/urandom Message-ID: References: <20220217162848.303601-1-Jason@zx2c4.com> <20220322155820.GA1745955@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220322155820.GA1745955@roeck-us.net> X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Hey Guenter, On Tue, Mar 22, 2022 at 08:58:20AM -0700, Guenter Roeck wrote: > On Thu, Feb 17, 2022 at 05:28:48PM +0100, Jason A. Donenfeld wrote: > > This topic has come up countless times, and usually doesn't go anywhere. > > This time I thought I'd bring it up with a slightly narrower focus, > > updated for some developments over the last three years: we finally can > > make /dev/urandom always secure, in light of the fact that our RNG is > > now always seeded. > > > > [ ... ] > > This patch (or a later version of it) made it into mainline and causes a > large number of qemu boot test failures for various architectures (arm, > m68k, microblaze, sparc32, xtensa are the ones I observed). Common > denominator is that boot hangs at "Saving random seed:". A sample bisect > log is attached. Reverting this patch fixes the problem. As Linus said, it was worth a try, but I guess it just didn't work. For my own curiosity, though, do you have a link to those QEMU VMs you could share? I'd sort of like to poke around, and if we do ever reattempt this sometime down the road, it seems like understanding everything about why the previous time failed might be a good idea. Jason