From owner-svn-src-head@freebsd.org Thu Jul 16 23:14:54 2015 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 752569A4BEC; Thu, 16 Jul 2015 23:14:54 +0000 (UTC) (envelope-from kmacybsd@gmail.com) Received: from mail-pd0-x229.google.com (mail-pd0-x229.google.com [IPv6:2607:f8b0:400e:c02::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 442381EFF; Thu, 16 Jul 2015 23:14:54 +0000 (UTC) (envelope-from kmacybsd@gmail.com) Received: by pdrg1 with SMTP id g1so51391939pdr.2; Thu, 16 Jul 2015 16:14:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=Gxqz8poxhdj8Ruz8dDOGSzW6Z2vLQ+JjEEk8WhYduLI=; b=zJI5+Q0MjZnzw3EA5vaO+xAqo3otA7lC0A/aST16zMIQfH7E/6F++POXJWwUZ1yY6V SCzbc0MWSrNJdLV5RFK/4+n7mWnpgCp1MH33W+6JTakqij9uNHO+EKNuBXW2AenNAm0w kfpoOSHySbvTplrrg7ojjrJDoBdrPsjcFc8scyEqw4tjN3QUtgvnjM64F9cM0kAMZiSO hy3uedctqS4FxVkM39fVXqK919dj1ot9vPXakdbwlZixfaURXqPlY9i5+LvrGb95Nsdk E/29c23tL8YiEDh68sq0rqlZay/qe+J+AZX3BvnfaW3u7EKupI+479Drh4IBXQv73nJ0 YRcw== MIME-Version: 1.0 X-Received: by 10.69.17.130 with SMTP id ge2mr22907445pbd.75.1437088493891; Thu, 16 Jul 2015 16:14:53 -0700 (PDT) Sender: kmacybsd@gmail.com Received: by 10.66.236.36 with HTTP; Thu, 16 Jul 2015 16:14:53 -0700 (PDT) In-Reply-To: References: <201506301700.t5UH0jPq001498@svn.freebsd.org> <6FF99E82-AE79-4112-8EB9-DC35B75F498D@FreeBSD.org> <1437055729.1334.359.camel@freebsd.org> <87D9CCA8-B77F-4CBD-85EC-08C4A9D8413E@FreeBSD.org> Date: Thu, 16 Jul 2015 16:14:53 -0700 X-Google-Sender-Auth: __5Dz8YFhPXoxDJkQRv8AoHGovQ Message-ID: Subject: Re: svn commit: r284959 - in head: . share/man/man4 share/man/man9 sys/conf sys/dev/glxsb sys/dev/hifn sys/dev/random sys/dev/rndtest sys/dev/safe sys/dev/syscons sys/dev/ubsec sys/dev/virtio/random sy... From: "K. Macy" To: Mark R V Murray Cc: Ian Lepore , "svn-src-head@freebsd.org" , "svn-src-all@freebsd.org" , "src-committers@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jul 2015 23:14:54 -0000 On Thu, Jul 16, 2015 at 3:28 PM, K. Macy wrote: > I discovered this when I MFC'd and my kernel wouldn't link because of > unresolved symbols. I thought I had put the issue aside when I added > RANDOM_DUMMY to my kernel config. > > However, I just hit this: > > while (!random_alg_context.ra_seeded()) { > if (nonblock) { > error = EWOULDBLOCK; > break; > } > tsleep(&random_alg_context, 0, "randseed", hz/10); > /* keep tapping away at the pre-read until we seed/unblock. */ > random_alg_context.ra_pre_read(); > printf("random: %s unblock wait\n", __func__); > } > > My system wouldn't boot because this was endlessly spamming the > console. I don't know what the right default here is. But I can say > that this is not it. I've also realized that a process blocked here is uninterruptible. Hence any process reading an insufficiently seeded /dev/random is unkillable. For example my boot can't proceed past dd doing a read and I can't ^C it. Did you test RANDOM_DUMMY? -K