From owner-svn-src-all@freebsd.org Tue Sep 3 14:07:49 2019 Return-Path: Delivered-To: svn-src-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E1C7FDD223; Tue, 3 Sep 2019 14:06:57 +0000 (UTC) (envelope-from yuripv@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46N8011Qz3z4Q4n; Tue, 3 Sep 2019 14:06:57 +0000 (UTC) (envelope-from yuripv@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1452) id 025BE1AE1F; Tue, 3 Sep 2019 14:06:23 +0000 (UTC) X-Original-To: yuripv@localmail.freebsd.org Delivered-To: yuripv@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [96.47.72.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id 7D4B01E6E5; Tue, 16 Apr 2019 15:50:12 +0000 (UTC) (envelope-from owner-src-committers@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2EFB56B87C; Tue, 16 Apr 2019 15:50:12 +0000 (UTC) (envelope-from owner-src-committers@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 538) id 125891E6E3; Tue, 16 Apr 2019 15:50:12 +0000 (UTC) Delivered-To: src-committers@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [96.47.72.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id B43131E6DF for ; Tue, 16 Apr 2019 15:50:09 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qk1-x733.google.com (mail-qk1-x733.google.com [IPv6:2607:f8b0:4864:20::733]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7E8CA6B875 for ; Tue, 16 Apr 2019 15:50:09 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qk1-x733.google.com with SMTP id b74so12439677qkg.9 for ; Tue, 16 Apr 2019 08:50:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0g0RjS34/3cH4j/R9MxG0zJb0uG7JrC/U5HNj3Xk6g4=; b=yp7SZWxwvmWm9XApYkp2AswlIdDmAQZzoZvCwynMTf/GTP2qt0IJERcVJdNfmKYIhV FxhlLXrgpzP/0JPhxoD9jAlp5GvoTjVHl4a13fRAPWcByh/PrPnHnnydwpqgv5d4qJcH XB9NEPDyRJzDvZlLpDfSG9A80y0u78zSz2YJ8n90uHncPFbLzwJIbGa38ZGlUCCV4E/w X59QN38C0XD/u+T58qQ5iyGrq8BPwn1d5Udiuzf7FwYC+WaxNqvczy1BqOn95pm9fElq 9QGwmmeRLAanV/MTAJ5eZdQLNaJre9Jom7iC7FQXwWSuELgWHB7oUyNVDpv0oXIN7rqV +K4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0g0RjS34/3cH4j/R9MxG0zJb0uG7JrC/U5HNj3Xk6g4=; b=elp+x+0U/jKwUke3QcOvU1sywhlFNlzlMxf5mmI0z26rR4901hdDKTXzGUE3pccABs cEdQk3FUsskS0SJWv3l8eNkztFIJNO90yw/6ifmlSNSJVqGzwVvb8lqFPwQXj9roz+6z GoVLkBwfx/fH4+7WAYMatWyg9Cy3HqWF9HsIApAxG/AImXQzfheEtca0WDtxnW58sPq9 bc07QaGTTIH9IKbpCJgGMA0Qd3y/3wbN3mbHSWWSoZ4vSFYWd0uLgchxRQCrBEsLdbiL 4vWaIhaTOrBPL9vu7TXH5qVFX1+/SMpYODauw3rehA+6c7PznemFSY3fi15sObe/upDq WYWg== X-Gm-Message-State: APjAAAX7QlApkIulo6ryYntQH8YJRtwu3jz0AUQ5ptaIXiA+GRSuqrgc PnBc6VNmxeXZJKG9WJ39WwxjZr87pVtUdGQ76XMwWA== X-Google-Smtp-Source: APXvYqxtkg52BRk3b62Q+e1D6syBnLgp4oySSIEilBjJGlOsLC9gJWXvIhqCWv7cTomDVjzby9lZg2nZvSl41/Amk5E= X-Received: by 2002:a37:9e0d:: with SMTP id h13mr63733955qke.135.1555429809011; Tue, 16 Apr 2019 08:50:09 -0700 (PDT) MIME-Version: 1.0 References: <201904151840.x3FIeaEQ009242@repo.freebsd.org> <20190416092402.4288bc90@titan.knownspace> In-Reply-To: From: Warner Losh Message-ID: Subject: Re: svn commit: r346250 - in head: share/man/man4 share/man/man9 sys/dev/random sys/kern sys/libkern sys/sys To: "Conrad E. Meyer" Cc: Justin Hibbits , src-committers , svn-src-all , svn-src-head Precedence: bulk X-Loop: FreeBSD.org Sender: owner-src-committers@freebsd.org X-Rspamd-Queue-Id: 2EFB56B87C X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.99 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.99)[-0.987,0]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0] Status: O Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.29 List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Tue, 03 Sep 2019 14:07:49 -0000 X-Original-Date: Tue, 16 Apr 2019 09:49:58 -0600 X-List-Received-Date: Tue, 03 Sep 2019 14:07:49 -0000 On Tue, Apr 16, 2019 at 9:27 AM Conrad Meyer wrote: > On Tue, Apr 16, 2019 at 7:24 AM Justin Hibbits > wrote: > > > > Hi Conrad, > > ... > > [Power] does use bsdinstall to install. How is entropy loaded at > startup, > > which causes the problem noted in github? > > There are a couple very early load sources. loader(8) will load > early-boot entropy from /boot/entropy and pass it to the kernel as a > fake module (entropy_cache_load in loader.conf(5)), similar to > cpu_microcode early load. > > The fallback option is random(4) itself groping into the filesystem > during early auto-conf (SI_SUB_RANDOM:SI_ORDER_FOURTH, IIRC) to access > /boot/entropy directly. > SI_SUB_RANDOM is too early. It's at 0x2160000, while SI_SUB_ROOT_CONF doesn't happen until 0xb000000. > > If it's loaded before > > filesystems get mounted, that could be a problem for us, because /boot > > is on a different filesystem (msdosfs, to be read by petitboot). > > Petitboot also does not have a way to preload modules, so all we have > > at startup, until spawning init, is the kernel. > > Yes, that seems potentially problematic. Can the Power kernel access > the non-msdosfs root filesystem? Let's follow-up offline about > PPC-specific early entropy seeding. I would much prefer we figure out > a way to provide early entropy to Power than disabling or crippling > every early random consumer on the arch. Do you know what the Linux > folks do? > > On Power with darn, we could probably just spin in SI_ORDER_FOURTH > until we have enough darn output to seed random. Similar for x86 CI > images, I guess; though they do not have the loader problem, some > people have non-bsdinstall installation methods. > They do have the loader problem because many means to generate an image don't generate /boot/entropy. Warner