Received: by 10.192.165.148 with SMTP id m20csp2594634imm; Thu, 26 Apr 2018 13:49:36 -0700 (PDT) X-Google-Smtp-Source: AIpwx49J5LrK8Impcd4knm5duFYIdEH7fhP5SY8Rf8K8TCVArxkKGtZgpwLX5HvQP++tenRYP6Mr X-Received: by 10.99.189.82 with SMTP id d18mr29280126pgp.311.1524775776275; Thu, 26 Apr 2018 13:49:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524775776; cv=none; d=google.com; s=arc-20160816; b=Pj79aBH4tqjCB8YA/0Zn4SnqQCX34752fqTUmD1Ruco+4c5Gbtw4fGR+20Ek1UG7XI tg/fCOxCqkgh6WKydmqkVy7qwiSql6+0QSYtyAo7/b1rmD0Ne5g7qNuUU93/chsbGmZA 4mHJloPHhHsv0x9HV1l6IlnlMgX3QlnbUwtcnLZyo7lRXgbAtqe4nKR4pk1ji2EJpaaQ uDukhBikufskqImer/N1WLokZxZgmmBnxkI3k1w8ypgZhbm2C3GjelJUvgjE/mUB7csG +Cs4riX5MjrNcHUfZ/Ute+D9/Eadl1Ms9pH+nsysNXhOFKoaCR63qfRjYTBJ4TYNTWNK 7e9Q== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:date:from :arc-authentication-results; bh=JrOpeWiZDvS/XleH3lVffIaGAcJs+WZqYOqI7uUs0HM=; b=0BE+ppAAkOtG+3/7MdI8l80K7BmeJJBREvd070rETVdVqGiRH3m2iRjfZbbmPR1rVD rCm3eAKn+mnrY3ML3pmGjs95pOKaM2nsJufwIp1IDQRGxvXiz7MCxDNHff7Dy6vd4D10 tg5HNgiFWDQ3em/eI9l4GcKBwhdsASiJEBil7VgwDH8HWXHkHEX9TmHksdRveDAU+YIc 5u2Qtcv+h1iGwpJi8F9cxM4niANiK1aJrB6ZWNUb3O7maPaHOUe28fNlmSjVTqjd1awH pts1InIlY5nPMo/GgaB9eBLtSWezr+aY14SucQoucNUjVbAYryCiXucrmze6TFNbCLau Pt+A== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i4si16703201pgr.362.2018.04.26.13.49.13; Thu, 26 Apr 2018 13:49:36 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755871AbeDZUrx (ORCPT + 99 others); Thu, 26 Apr 2018 16:47:53 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:43401 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753975AbeDZUrw (ORCPT ); Thu, 26 Apr 2018 16:47:52 -0400 Received: from mail-wr0-f198.google.com ([209.85.128.198]) by youngberry.canonical.com with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1fBnnz-0004UL-Eo for linux-kernel@vger.kernel.org; Thu, 26 Apr 2018 20:47:51 +0000 Received: by mail-wr0-f198.google.com with SMTP id o8-v6so26652650wra.12 for ; Thu, 26 Apr 2018 13:47:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=JrOpeWiZDvS/XleH3lVffIaGAcJs+WZqYOqI7uUs0HM=; b=MhO4YDJuLcHrzNeOgfOa1qmV2PPgb5uBen5Cfeufcz6dLJwaHQua85sfYnzYTwXsGM WYgm3eo/sPwhXWr2rnN5jFRc10WLpuKtPxxdCJ1HVaVrlBiu9mB07wkvV1EUxhTrTm7d 0JEhPGdWgN1GOpvyi29jfrFkt6jkanRF1WVVeu2ebIHbSrxakWPHRAUwQHeGbOnAT3Vz N6Mf+uSqD4LBqZqeo59j9gePU11SShAedjLsBf2MmQVMJOGqh+pbRWVIRnvpKa05WFeJ 2ITJezRMJ1gBvOcJuUiw3iKXxXzdQ3hEUZFlLBvbb9S/R0S9ymyEpafsAJKgO9pmuqNA 3CXw== X-Gm-Message-State: ALQs6tAd4q0DPwm/a014Au7eCUhB9L2oy4X4DJ93tQ/spKdvGSNdPtX4 DZpPviM1S9o+PK3OnDtwkaB1gM5OYYyTrxcRH0zvY/xdHBZokBd4BUDfa+eVknA8omhf2udtoVI Ev9dYMnuWdn/a2i2JIeMbLgPwGyg/VgzX7RwTEx9MvA== X-Received: by 10.28.109.80 with SMTP id i77mr20097wmc.46.1524775671098; Thu, 26 Apr 2018 13:47:51 -0700 (PDT) X-Received: by 10.28.109.80 with SMTP id i77mr20091wmc.46.1524775670645; Thu, 26 Apr 2018 13:47:50 -0700 (PDT) Received: from gmail.com ([2a02:8070:8895:9700:b0c9:237:9998:dabc]) by smtp.gmail.com with ESMTPSA id v111-v6sm22952276wrb.30.2018.04.26.13.47.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 26 Apr 2018 13:47:49 -0700 (PDT) From: Christian Brauner X-Google-Original-From: Christian Brauner Date: Thu, 26 Apr 2018 22:47:49 +0200 To: Sultan Alsawaf Cc: "Theodore Y. Ts'o" , linux-kernel@vger.kernel.org, Jann Horn Subject: Re: Linux messages full of `random: get_random_u32 called from` Message-ID: <20180426204748.GA7540@gmail.com> References: <20180426050056.GF18803@thunk.org> <20180426073255.GH18803@thunk.org> <20180426192524.GD5965@thunk.org> <2add15cb-2113-0504-a732-81255ea61bf5@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2add15cb-2113-0504-a732-81255ea61bf5@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) 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 01:22:02PM -0700, Sultan Alsawaf wrote: > > Hmm, it looks like the multiuser startup is getting blocked on snapd: > > > > 29.060s snapd.service > > > > graphical.target @1min 32.145s > > └─multi-user.target @1min 32.145s > > └─hddtemp.service @6.512s +28ms > > └─network-online.target @6.508s > > └─NetworkManager-wait-online.service @2.428s +4.079s > > └─NetworkManager.service @2.016s +404ms > > └─dbus.service @1.869s > > └─basic.target @1.824s > > └─sockets.target @1.824s > > └─snapd.socket @1.821s +1ms > > └─sysinit.target @1.812s > > └─apparmor.service @587ms +1.224s > > └─local-fs.target @585ms > > └─local-fs-pre.target @585ms > > └─keyboard-setup.service @235ms +346ms > > └─systemd-journald.socket @226ms > > └─system.slice @225ms > > └─-.slice @220ms > > > > This appears to be some kind of new package management system for > > Ubuntu: > > > > Description-en: Tool to interact with Ubuntu Core Snappy. > > Install, configure, refresh and remove snap packages. Snaps are > > 'universal' packages that work across many different Linux systems, > > enabling secure distribution of the latest apps and utilities for > > cloud, servers, desktops and the internet of things. > > > > Why it the Ubuntu package believes it needs to be fully started before > > the login screen can display is unclear to me. It might be worth > > using systemctl to disable snapd.serivce and see if that makes things > > work better for you. > > > > - Ted > > I removed snapd completely which did nothing. > > Here are new logs: > systemd-analyze blame: https://hastebin.com/edehikuyeb.css > systemd-analyze critical-chain: https://hastebin.com/vedufafema.pl > dmesg: https://hastebin.com/zuwuwoxadu.vbs > > I should also note that leaving the system untouched does not result in it booting: I must > provide a source of entropy, otherwise it just stays stuck. In both of the dmesgs I've given, I 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. Christian > manually provided entropy to the system after about 5 minutes of waiting. > > Also, regardless of what's hanging on CRNG init, CRNG should be able to init on its own in a timely > manner without the need for user-provided entropy. Userspace was working fine before the recent CRNG > kernel changes, so I don't think this is a userspace bug. > > -Sultan >