Received: by 10.192.165.148 with SMTP id m20csp104726imm; Thu, 26 Apr 2018 17:02:03 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpst3dIWI7YpNSgKat/zWbaBL4Rs9ma133XiSxyxb9vlVqqJCjs4J9x3+adywejwK61Jj0X X-Received: by 10.98.147.66 with SMTP id b63mr122945pfe.130.1524787323690; Thu, 26 Apr 2018 17:02:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524787323; cv=none; d=google.com; s=arc-20160816; b=sYYeYdHQlDX+Lhrtz27f/kIf80oGDOc8DfS6ehVqurd9VJHtAVERDSsa/ShTOJBZST zUUAy+ol26mmfacpo6fp1wIEmPxILGEcwFDILV+vcZK5eEyJiIHMZVDmGe4kjq7X9Ypc amifLpuYGujXMdFP+6xnaj+nlfPZxRpVmmCExOsLpDj+DTQmaE2cssZMepPV4Jw0NBoV 4AEws7QE6Jiw4Y6bCg8/kuJReTwK/fWG4A5vgPVwnly/NszSnD8ozOsp9cvaEbADYTaP NYP6w8oNo2g0n8ukHDOIEfIgVeh8puVgSDPj43U8uGzOE8kcHW2qfGz0XImMxdXqi2j0 ikfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=aAA/JalDvljNSuwQrE9bId3i4f/2LoKT5GSxZQIjHSA=; b=HRQ8AwVQqBMmvtW8q1Qld70k7b+R99xLNRgApwTYzdJA3IRoZDHRvMWzwWBauhfPjC U7moaoi3ULtBYkcwnwGx/3yHoJDtoZt081y9ldV0fxmdpJucXDf+o0cUahVzeRwxZp+0 7uM8f1s1aiGlzeni1vSlW9r3pQmGf9aFh0MtxK19xtVacyHLn+uzzxTs6hZPGvRMsGBA BKTx0gG9s5nGT2KjI17WMlFsjPr8byQn2W8uG+55aG9fVJqvjHToJI1dIo0gmqfXEYf7 yvKTJt1a5SN/4TGXhw4jubdNPizFBLduth/CSM3lPO9PR/1jqi1UAlVVLVeCiB8bW89o mWCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@thunk.org header.s=ef5046eb header.b=iya83jd5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v11-v6si32993pgo.643.2018.04.26.17.01.49; Thu, 26 Apr 2018 17:02:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@thunk.org header.s=ef5046eb header.b=iya83jd5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757174AbeD0AAZ (ORCPT + 99 others); Thu, 26 Apr 2018 20:00:25 -0400 Received: from imap.thunk.org ([74.207.234.97]:36190 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753646AbeD0AAX (ORCPT ); Thu, 26 Apr 2018 20:00:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=thunk.org; s=ef5046eb; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding: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=aAA/JalDvljNSuwQrE9bId3i4f/2LoKT5GSxZQIjHSA=; b=iya83jd5YH4TaCMb76/jLZLYh6 7d0s5nPEtRGw2eL376i8IhbDlBRwvVhPyn6glfzDDBmuN+1UqVZ/csI+mkYGTX4dChtCuxlPGrjdN vmaZ7kEVdTVsXBgeHk0FyORUXzCS3KzO3az9XrwDygjCDr302innbyYAX4FUqVEHngqw=; Received: from root (helo=callcc.thunk.org) by imap.thunk.org with local-esmtp (Exim 4.89) (envelope-from ) id 1fBqoG-00025L-Ux; Fri, 27 Apr 2018 00:00:22 +0000 Received: by callcc.thunk.org (Postfix, from userid 15806) id 284417A0091; Thu, 26 Apr 2018 20:00:13 -0400 (EDT) Date: Thu, 26 Apr 2018 20:00:13 -0400 From: "Theodore Y. Ts'o" To: Christian Brauner Cc: Sultan Alsawaf , linux-kernel@vger.kernel.org, Jann Horn Subject: Re: Linux messages full of `random: get_random_u32 called from` Message-ID: <20180427000013.GH5965@thunk.org> Mail-Followup-To: "Theodore Y. Ts'o" , Christian Brauner , Sultan Alsawaf , linux-kernel@vger.kernel.org, Jann Horn References: <20180426050056.GF18803@thunk.org> <20180426073255.GH18803@thunk.org> <20180426192524.GD5965@thunk.org> <2add15cb-2113-0504-a732-81255ea61bf5@gmail.com> <20180426204748.GA7540@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180426204748.GA7540@gmail.com> User-Agent: Mutt/1.9.5 (2018-04-13) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on imap.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 26, 2018 at 10:47:49PM +0200, Christian Brauner wrote: > > We have observed a similiar problem with libvirt. As soon as entropy is > provided the boot finishes otherwise it hangs for a long time. > This is not happening with v4.17-rc1 afaict. For libvirt there is at least an easy workaround. Make surue the guest kernel has CONFIG_HW_RANDOM_VIRTIO enabled, and then make sure qemu is started with the options: -object rng-random,filename=/dev/urandom,id=rng0 \ -device virtio-rng-pci,rng=rng0 Cheers, - Ted