From owner-svn-src-head@FreeBSD.ORG Sat Nov 1 22:39:21 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DAA81C20; Sat, 1 Nov 2014 22:39:21 +0000 (UTC) Received: from gromit.grondar.org (grandfather.grondar.org [IPv6:2a01:348:0:15:5d59:5c20:0:2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9F413EA2; Sat, 1 Nov 2014 22:39:21 +0000 (UTC) Received: from [2001:470:9174:1:407c:4bb6:6af1:63e2] by gromit.grondar.org with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.84 (FreeBSD)) (envelope-from ) id 1XkhKJ-000FhB-Ly; Sat, 01 Nov 2014 22:39:20 +0000 Subject: Re: svn commit: r273872 - in head: etc/defaults etc/rc.d libexec/save-entropy share/examples/kld/random_adaptor sys/conf sys/dev/glxsb sys/dev/random sys/kern sys/modules sys/modules/padlock_rng sys/mo... Mime-Version: 1.0 (Mac OS X Mail 8.0 \(1990.1\)) Content-Type: text/plain; charset=utf-8 From: Mark R V Murray In-Reply-To: <20141101181536.2b6a5911@kan> Date: Sat, 1 Nov 2014 22:39:17 +0000 Content-Transfer-Encoding: quoted-printable Message-Id: <627C5F71-939A-4579-8A1B-45933662DAED@FreeBSD.org> References: <201410302121.s9ULLsEw055630@svn.freebsd.org> <20141101181536.2b6a5911@kan> To: Alexander Kabaev X-Mailer: Apple Mail (2.1990.1) X-SA-Score: -1.0 Cc: "svn-src-head@freebsd.org" , Adrian Chadd , "src-committers@freebsd.org" , "svn-src-all@freebsd.org" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18-1 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: Sat, 01 Nov 2014 22:39:22 -0000 Hi I=E2=80=99m not sure what you are showing me here? How yo you draw the =E2=80=9Cnot enough entropy=E2=80=9D conclusion? The writing happens at shutdown; before you do the shutdown could you = please do a =E2=80=98sysctl kern.random=E2=80=99 and post the result? Do you have anything random-related in your rc.conf? Could you please do a verbose boot on a kernel with =E2=80=9Coptions = RANDOM_DEBUG=E2=80=9D set and send me the dmesg output from a failing = box. M > On 1 Nov 2014, at 22:15, Alexander Kabaev wrote: >=20 > On Sat, 1 Nov 2014 14:57:02 -0700 > Adrian Chadd wrote: >=20 >> Hi, >>=20 >> I'm having a problem with this on MIPS router boards now: >>=20 >> db> bt 277 >> Tracing pid 277 tid 100034 td 0x80d7b9c0 >> cpu_switch+90 (?,?,?,?) ra ca90db6800000000 sp 0 sz 0 >> sched_switch+224 (?,?,?,?) ra ca90db6800000028 sp 0 sz 0 >> mi_switch+27c (?,?,?,?) ra ca90db9000000020 sp 0 sz 0 >> 80176358+1a0 (?,?,?,?) ra ca90dbb000000028 sp 0 sz 0 >> 801765dc+2d0 (?,?,?,?) ra ca90dbd800000030 sp 0 sz 0 >> sleepq_timedwait_sig+18 (?,?,?,?) ra ca90dc0800000020 sp 0 sz 0 >> _sleep+3b8 (?,?,?,803199e0) ra ca90dc2800000068 sp 0 sz 0 >> random_adaptor_read+114 (?,?,?,?) ra ca90dc9000000038 sp 0 sz 0 >> 800b1898+c0 (?,?,?,?) ra ca90dcc800000048 sp 0 sz 0 >> 80187450+6c (?,?,?,?) ra ca90dd1000000028 sp 0 sz 0 >> kern_readv+8c (?,?,?,?) ra ca90dd3800000050 sp 0 sz 0 >> sys_read+48 (?,?,?,?) ra ca90dd8800000040 sp 0 sz 0 >> trap+7f0 (?,?,?,?) ra ca90ddc8000000b8 sp 0 sz 0 >> MipsUserGenException+10c (?,?,?,408ed960) ra ca90de8000000000 sp 0 sz >> 0 >>=20 >> ... I've included "random" into the kernel rather than as a module >> now. >>=20 >> This -looks- like it's not getting enough entropy now? >>=20 >>=20 >>=20 >> -adrian >>=20 >=20 > Me too, on amd64 box. The machine gets hung for several minutes after > 'writing entropy file' until random is unblocked. Anecdotally, banging > on the keyboard trying to help the entropy gathering along seems to > speed the process up. >=20 > --=20 > Alexander Kabaev --=20 Mark R V Murray