From owner-svn-src-all@freebsd.org Fri Jul 17 06:47:49 2015 Return-Path: Delivered-To: svn-src-all@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 85D469A4D7D; Fri, 17 Jul 2015 06:47:49 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x234.google.com (mail-ig0-x234.google.com [IPv6:2607:f8b0:4001:c05::234]) (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 4C64D1534; Fri, 17 Jul 2015 06:47:49 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by igbij6 with SMTP id ij6so31134010igb.1; Thu, 16 Jul 2015 23:47:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=MN0/09MIrctKINCX1TWtR+OWFh2fhY6E5jxsgO32Kyc=; b=yCtDC+l2gVXZAMfy4Pi3D/h30Va2QoeM6KybVa/gTGR/RzsdcHyiGrc5ROtSnoep97 4futT9chJoB75efWOsz7hqdBC2Rp2j3oax8GCmelnj9qOz3QGl0dhkDh/WoVkL5/oS7q HXuqBc5iPVs6RAQqRsM+JCpHhONwawK4Zv/SNpW1GsjdCjDQLRWMxeE5wzsU89hJrT7L x/PSXhODucylz8yPWHhi7tjfHyjYRRWvoF/vv+vfkh1ouTs2hFOcol1nV3+Uhmw6rqvS lxdm/8odzyRO8ZSaLDTlhrhd4+l6Q6RRjl0HU2kTobdbDfz26Hw9nxMY+MM0uW/Ov4zH CraQ== MIME-Version: 1.0 X-Received: by 10.107.132.215 with SMTP id o84mr17982794ioi.36.1437115668642; Thu, 16 Jul 2015 23:47:48 -0700 (PDT) Received: by 10.36.31.207 with HTTP; Thu, 16 Jul 2015 23:47:48 -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 23:47:48 -0700 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: Adrian Chadd To: "K. Macy" Cc: Mark R V Murray , 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-all@freebsd.org X-Mailman-Version: 2.1.20 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: Fri, 17 Jul 2015 06:47:49 -0000 hi, So I'll have to update the AP images that I build, as now I have to add that sysctl to things. It also means everyone has to update their /etc after updating or they'll end up with this particular mode not being disabled. i think we need to get this better documented so people aren't bitten when they merge code in from -HEAD or whenever you do MFC this back to stable/10. -adrian On 16 July 2015 at 16:14, K. Macy wrote: > 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 >