From owner-svn-src-all@freebsd.org Tue Apr 16 16:59:06 2019 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7F4DE1577B39; Tue, 16 Apr 2019 16:59:06 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: from mail-it1-f169.google.com (mail-it1-f169.google.com [209.85.166.169]) (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 149D86E053; Tue, 16 Apr 2019 16:59:05 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: by mail-it1-f169.google.com with SMTP id u65so33694342itc.2; Tue, 16 Apr 2019 09:59:05 -0700 (PDT) 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:reply-to :from:date:message-id:subject:to:cc; bh=RCa2k6BAxKIj/45lFE9HAL+53u7COk+Q6FpZY3LBolc=; b=hi+VIsJNuJD5Acpv6BekKaPtbPEp5aFTMcb/nnygUzoSg8RyHzHHSXHXvylCqwhW88 vO+adcMh2uTCfUr+nyyJKVR1BMvHySW/AaC7aXTs4ILUefao7hT+W2a6ZR2Ef0enohlU 288gub9EF4QbZpHPTpMVGTJN4CclpMBw+cjbeFNQR57s/M7aDr7j8zUuaxoX8Cwyi6S6 4IbeR4odbZgDAsrmODJxw/DYYttv01Xz1wkYnUxzLfT7zzksoqZtO0oSljudw42UqHNo tvFHpwTUdiQGwClNLuK/8dHZQSlxJ7Opc0/vaEgyM7wXcbkYiP1nKib23DRhyoyDoA8N bL1Q== X-Gm-Message-State: APjAAAUpxoMOi8CqDeXBB4DmZkF6hHUioZUrIMDcT7YWOEycRjW39qSn Foeord0vUvm2aBMS8aC6g30BBG2/ X-Google-Smtp-Source: APXvYqxu1ruG+1X0LxqD+igqKWYNU33XANYLI/d+z1yHzNSSPaCYvUwekzYcSov6QkhCTq0qrqmd6Q== X-Received: by 2002:a05:6638:110:: with SMTP id x16mr17016376jao.75.1555433944512; Tue, 16 Apr 2019 09:59:04 -0700 (PDT) Received: from mail-it1-f181.google.com (mail-it1-f181.google.com. [209.85.166.181]) by smtp.gmail.com with ESMTPSA id b1sm9645632itd.12.2019.04.16.09.59.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Apr 2019 09:59:04 -0700 (PDT) Received: by mail-it1-f181.google.com with SMTP id x132so34176539itf.2; Tue, 16 Apr 2019 09:59:04 -0700 (PDT) X-Received: by 2002:a02:62ce:: with SMTP id d197mr94169jac.91.1555433944153; Tue, 16 Apr 2019 09:59:04 -0700 (PDT) MIME-Version: 1.0 References: <201904151840.x3FIeaEQ009242@repo.freebsd.org> <20190416150352.c604a280368ccb2992a861e8@bidouilliste.com> <310a420ee0b9e12249979d89dc4fa0d4cac5a8dc.camel@freebsd.org> In-Reply-To: Reply-To: cem@freebsd.org From: Conrad Meyer Date: Tue, 16 Apr 2019 09:58:53 -0700 X-Gmail-Original-Message-ID: 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: Warner Losh Cc: "Conrad E. Meyer" , src-committers , svn-src-all , svn-src-head Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 149D86E053 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.989,0]; REPLY(-4.00)[]; TAGGED_FROM(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list 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: , X-List-Received-Date: Tue, 16 Apr 2019 16:59:06 -0000 On Tue, Apr 16, 2019 at 9:33 AM Warner Losh wrote: > In that case, we're better off having a MD routine that gets called if there's no loader-provided entropy pool. Yes, this is more or less the same plan I had. There's no need to add anything MD specific; we already abstract MD random sources behind the harvest mechanism. > (and requiring an NV store is not even an option to require, so don't go there). Systems lacking both an NV store and an entropy source available during mi_startup (i.e., not interrupts...) cannot safely provide entropy in early boot. On those systems, we must disable random consumption during early boot. > What we can't do is just hang if the loader can't provide an entropy pool. I think we're all on the same page there. Best, Conrad