From owner-svn-src-head@FreeBSD.ORG Sat Nov 1 22:58:49 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 0EBA04F1; Sat, 1 Nov 2014 22:58:49 +0000 (UTC) Received: from mail-qc0-x232.google.com (mail-qc0-x232.google.com [IPv6:2607:f8b0:400d:c01::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 77EC5142; Sat, 1 Nov 2014 22:58:48 +0000 (UTC) Received: by mail-qc0-f178.google.com with SMTP id b13so8607558qcw.9 for ; Sat, 01 Nov 2014 15:58:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type; bh=yWYGa6jKBQeQEY2b0BaeJBQ4a9yKZhHCxYjErx9GoS0=; b=tgl1KR6BuimS+GnzHOuFrpfO6Kh9cYhdKDDe2yZVS8jTUYoeEz4KZGgslkrOwrIXyl kAY74Na0d6yRcW3LIzflQ/75ge2UU6x/WceYSfQ1M0OZZQ8T9K2IEzAA4ZPJpfV82B2c /WEkNXrJRb0WNxKwqys5sg1JjoGcFbzgbPzBh+K5oEltT2Y0l5IO6HVu50gRnoZ6H3FF qispoIqtXbeNcTGqfZpDQaTNNvEcxVMBjkhFKwk6/sRmD76QK9oL6JBU84dulw/fbpUZ ktSrYmL3ZKDBaR0wijWOoR8mjxLmaiyJc9HHtSD78vTbumf5N20qmwu1iVBKI/R/wpC4 6PeQ== X-Received: by 10.224.120.67 with SMTP id c3mr50872573qar.84.1414882727605; Sat, 01 Nov 2014 15:58:47 -0700 (PDT) Received: from kan ([2601:6:6780:7d0:226:18ff:fe00:232e]) by mx.google.com with ESMTPSA id e8sm13083705qai.33.2014.11.01.15.58.46 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 01 Nov 2014 15:58:46 -0700 (PDT) Date: Sat, 1 Nov 2014 18:58:40 -0400 From: Alexander Kabaev To: Mark R V Murray 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... Message-ID: <20141101185840.59e24ba8@kan> In-Reply-To: <627C5F71-939A-4579-8A1B-45933662DAED@FreeBSD.org> References: <201410302121.s9ULLsEw055630@svn.freebsd.org> <20141101181536.2b6a5911@kan> <627C5F71-939A-4579-8A1B-45933662DAED@FreeBSD.org> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.22; amd64-portbld-freebsd11.0) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/PG7gzn/8+1ttDIWRlGWKNpx"; protocol="application/pgp-signature" 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:58:49 -0000 --Sig_/PG7gzn/8+1ttDIWRlGWKNpx Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable On Sat, 1 Nov 2014 22:39:17 +0000 Mark R V Murray wrote: > Hi >=20 > I'm not sure what you are showing me here? >=20 > How yo you draw the "not enough entropy" conclusion? >=20 > The writing happens at shutdown; before you do the shutdown could you > please do a 'sysctl kern.random' and post the result? >=20 > Do you have anything random-related in your rc.conf? >=20 > Could you please do a verbose boot on a kernel with "options > RANDOM_DEBUG" set and send me the dmesg output from a failing box. >=20 > M >=20 > > 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 > --=20 > Mark R V Murray Nothing related to random in my rc.conf % sysctl kern.random kern.random.adaptors: yarrow(90),dummy(1) kern.random.active_adaptor: yarrow kern.random.live_entropy_sources:=20 kern.random.yarrow.gengateinterval: 10 kern.random.yarrow.bins: 10 kern.random.yarrow.fastthresh: 96 kern.random.yarrow.slowthresh: 128 kern.random.yarrow.slowoverthresh: 2 kern.random.harvest.mask: 1023 kern.random.harvest.mask_bin: 1111111111 kern.random.harvest.mask_symbolic: UMA_ALLOC,SWI,INTERRUPT,NET_NG,NET_ETHER,NET_TUN,MOUSE,KEYBOARD,ATTACH,CACH= ED --=20 Alexander Kabaev --Sig_/PG7gzn/8+1ttDIWRlGWKNpx Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iD8DBQFUVWWlQ6z1jMm+XZYRAgU6AKDl/7BmncyOUTcVpj02fyyh3W9W5gCfWi9X iHOOhZX5ONxxqjLrp3BB3eA= =GnCF -----END PGP SIGNATURE----- --Sig_/PG7gzn/8+1ttDIWRlGWKNpx--