From owner-svn-src-all@FreeBSD.ORG Sat Nov 1 23:09:10 2014 Return-Path: Delivered-To: svn-src-all@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 BEF339BE; Sat, 1 Nov 2014 23:09:10 +0000 (UTC) Received: from mho-01-ewr.mailhop.org (mho-03-ewr.mailhop.org [204.13.248.66]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 77FAF257; Sat, 1 Nov 2014 23:09:10 +0000 (UTC) Received: from [73.34.117.227] (helo=ilsoft.org) by mho-01-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1XkhnB-000I21-7z; Sat, 01 Nov 2014 23:09:09 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by ilsoft.org (8.14.9/8.14.9) with ESMTP id sA1N980d088184; Sat, 1 Nov 2014 17:09:08 -0600 (MDT) (envelope-from ian@FreeBSD.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 73.34.117.227 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1+g92vZD6F+D1rf8eBfdMf6 X-Authentication-Warning: paranoia.hippie.lan: Host revolution.hippie.lan [172.22.42.240] claimed to be [172.22.42.240] 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... From: Ian Lepore To: Mark R V Murray 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> Content-Type: text/plain; charset="windows-1251" Date: Sat, 01 Nov 2014 17:09:08 -0600 Message-ID: <1414883348.17308.223.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by ilsoft.org id sA1N980d088184 Cc: "svn-src-head@freebsd.org" , "svn-src-all@freebsd.org" , Adrian Chadd , "src-committers@freebsd.org" , Alexander Kabaev X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18-1 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: Sat, 01 Nov 2014 23:09:11 -0000 On Sat, 2014-11-01 at 22:39 +0000, Mark R V Murray wrote: > Hi >=20 > I=92m not sure what you are showing me here? >=20 > How yo you draw the =93not enough entropy=94 conclusion? >=20 > The writing happens at shutdown; before you do the shutdown could you p= lease do a =91sysctl kern.random=92 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 =93options RANDOM_D= EBUG=94 set and send me the dmesg output from a failing box. >=20 > M Nothing related to random in rc.conf for me. Here's a verbose dmesg: Type '?' for a list of commands, 'help' for more detailed help. loader> set boot_verbose=3D1 loader> boot Using DTB compiled into kernel. Waiting for Ethernet connection... done. Kernel entry at 0x100100... Kernel args: (null) KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2014 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 11.0-CURRENT #1 r273952: Sat Nov 1 16:55:50 MDT 2014 ilepore@revolution.hippie.lan:/local/build/staging/freebsd/rpi/obj/arm.ar= mv6/local/build/staging/freebsd/rpi/src/sys/RPI-B-serial arm FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512 Preloaded elf kernel "/boot/kernel/kernel" at 0xc066d000. CPU: ARM1176JZ-S rev 7 (ARM11J core) Supported features: ARM_ISA THUMB2 JAZELLE ARMv4 Security_Ext WB enabled LABT branch prediction enabled 16KB/32B 4-way instruction cache 16KB/32B 4-way write-back-locking-C data cache real memory =3D 134213632 (127 MB) avail memory =3D 123449344 (117 MB) Physical memory chunk(s): 0x00001000 - 0x07ffffff, 127 MB ( 32767 pages) Excluded memory regions: 0x00100000 - 0x007a4fff, 6 MB ( 1701 pages) NoAlloc=20 0x08000000 - 0x0fffffff, 128 MB ( 32768 pages) NoAlloc NoDump Static device mappings: 0x20000000 - 0x20ffffff mapped at VA 0xfef00000 random device not loaded/active; using insecure pseudo-random number generator random: entropy device infrastructure driver random: random_adaptors_init random: selecting highest priority adaptor random: random_adaptor_choose - changing from NULL to Dummy random: dummy_random_init openfirm: random: SOFT: yarrow init() random: selecting highest priority adaptor random: random_adaptor_choose - changing from Dummy to Yarrow random: random_harvestq_init mem: nfslock: pseudo-device null: random: device_attach(): feeding 4 bit(s) of entropy from nexus0 ofwbus0: simplebus0: mem 0x20000000-0x20ffffff on ofwbus0 random: device_attach(): feeding 4 bit(s) of entropy from simplebus0 random: device_attach(): feeding 4 bit(s) of entropy from ofwbus0 ofwbus0: type unknown (no driver attached) intc0: mem 0xb200-0xb3ff on simplebus0 random: device_attach(): feeding 4 bit(s) of entropy from intc0 systimer0: mem 0x3000-0x3fff irq 8,9,10,11 on simplebus0 Event timer "BCM2835 Event Timer 3" frequency 1000000 Hz quality 1000 Timecounter "BCM2835 Timecounter" frequency 1000000 Hz quality 1000 random: device_attach(): feeding 4 bit(s) of entropy from systimer0 simplebus0: mem 0xb400-0xb423 irq 0 compat broadcom,bcm2835-sp804 (no driver attached) bcmwd0: mem 0x10001c-0x100027 on simplebus0 random: device_attach(): feeding 4 bit(s) of entropy from bcmwd0 gpio0: mem 0x200000-0x2000af irq 57,59,58,60 on simplebus0 gpio0: read-only pins: 46,47,48,49,50,51,52,53. gpio0: reserved pins: 48,49,50,51,52,53. gpioc0: on gpio0 random: device_attach(): feeding 4 bit(s) of entropy from gpioc0 gpiobus0: on gpio0 gpioled0: at pin(s) 16 on gpiobus0 random: device_attach(): feeding 4 bit(s) of entropy from gpioled0 random: device_attach(): feeding 4 bit(s) of entropy from gpiobus0 random: device_attach(): feeding 4 bit(s) of entropy from gpio0 simplebus0: mem 0x205000-0x20501f irq 61 compat broadcom,bcm2835-bsc (no driver attached) simplebus0: mem 0x804000-0x80401f irq 61 compat broadcom,bcm2835-bsc (no driver attached) simplebus0: mem 0x204000-0x20401f irq 62 compat broadcom,bcm2835-spi (no driver attached) bcm_dma0: mem 0x7000-0x7fff,0xe05000-0xe05fff irq 24,25,26,27,28,29,30,31,32,33,34,35,36 on simplebus0 random: device_attach(): feeding 4 bit(s) of entropy from bcm_dma0 mbox0: mem 0xb880-0xb8bf irq 1 on simplebus0 random: device_attach(): feeding 4 bit(s) of entropy from mbox0 sdhci_bcm0: mem 0x300000-0x3000ff irq 70 on simplebus0 sdhci_bcm0-slot0: 50MHz HS 4bits 3.3V 1.8V PIO sdhci_bcm0-slot0: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D REGISTER DUM= P =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D sdhci_bcm0-slot0: Sys addr: 0x00000000 | Version: 0x00009902 sdhci_bcm0-slot0: Blk size: 0x00000000 | Blk cnt: 0x00000000 sdhci_bcm0-slot0: Argument: 0x00000000 | Trn mode: 0x00000000 sdhci_bcm0-slot0: Present: 0x01ff0000 | Host ctl: 0x00000000 sdhci_bcm0-slot0: Power: 0x00000000 | Blk gap: 0x00000000 sdhci_bcm0-slot0: Wake-up: 0x00000000 | Clock: 0x00000000 sdhci_bcm0-slot0: Timeout: 0x00000000 | Int stat: 0x00000000 sdhci_bcm0-slot0: Int enab: 0x01ff00fb | Sig enab: 0x01ff00fb sdhci_bcm0-slot0: AC12 err: 0x00000000 | Slot int: 0x00000000 sdhci_bcm0-slot0: Caps: 0x00000000 | Max curr: 0x00000001 sdhci_bcm0-slot0: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D mmc0: on sdhci_bcm0 random: device_attach(): feeding 4 bit(s) of entropy from mmc0 random: device_attach(): feeding 4 bit(s) of entropy from sdhci_bcm0 uart0: mem 0x201000-0x201fff irq 65 on simplebus0 uart0: console (115200,n,8,1) uart0: fast interrupt random: device_attach(): feeding 4 bit(s) of entropy from uart0 simplebus0: mem 0xb800-0xb84f irq 2 compat broadcom,bcm2835-vchiq (no driver attached) dwcotg0: mem 0x980000-0x99ffff irq 17 on simplebus0 usbus0 on dwcotg0 dwcotg0: usbpf: Attached random: device_attach(): feeding 4 bit(s) of entropy from usbus0 random: device_attach(): feeding 4 bit(s) of entropy from dwcotg0 ofwbus0: type unknown (no driver attached) ofwbus0: type unknown (no driver attached) ofwbus0: type unknown (no driver attached) ofwbus0: type unknown (no driver attached) Timecounters tick every 10.000 msec tcp_init: net.inet.tcp.tcbhashsize auto tuned to 1024 lo0: bpf attached sdhci_bcm0-slot0: Divider 63 for freq 396825 (max 50000000) mmc0: Probing bus usbus0: 480Mbps High Speed USB v2.0 mmc0: SD 2.0 interface conditions: OK mmc0: SD probe: OK (OCR: 0x00ff8000) mmc0: Current OCR: 0x00ff8000 ugen0.1: at usbus0 uhub0: on usbus0 mmc0: Probing cards mmc0: New card detected (CID 02544d5341303847049cce24e3009a00) mmc0: New card detected (CSD 400e00325b5900003b677f800a400000) mmc0: Card at relative address 0x1234 added: mmc0: card: SDHC SA08G 0.4 SN 9CCE24E3 MFG 10/2009 by 2 TM mmc0: bus: 4bit, 50MHz, high speed timing mmc0: memory: 15572992 blocks, erase sector 8192 blocks mmc0: setting transfer rate to 50.000MHz (high speed timing) sdhci_bcm0-slot0: Divider 0 for freq 50000000 (max 50000000) mmcsd0: 8GB at mmc0 50.0MHz/4bit/65535-block random: device_attach(): feeding 4 bit(s) of entropy from mmcsd0 bootpc_init: wired to interface 'ue0' GEOM: new disk mmcsd0 mmc0: setting bus width to 4 bits mmcsd0: Error indicated: 2 Bad CRC uhub_attach: Turning port 1 power on uhub0: 1 port with 1 removable, self powered random: device_attach(): feeding 4 bit(s) of entropy from uhub0 ugen0.2: at usbus0 uhub1: on usbus0 uhub1: MTT enabled uhub_attach: Turning port 1 power on uhub_attach: Turning port 2 power on uhub_attach: Turning port 3 power on uhub1: 3 ports with 2 removable, self powered random: device_attach(): feeding 4 bit(s) of entropy from uhub1 ugen0.3: at usbus0 smsc0: on usbus0 random: device_attach(): feeding 4 bit(s) of entropy from smsc0 smsc0: chip 0xec00, rev. 0002 miibus0: on smsc0 ukphy0: PHY 1 on miibus0 ukphy0: OUI 0x00800f, model 0x000c, rev. 3 ukphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto random: device_attach(): feeding 4 bit(s) of entropy from ukphy0 random: device_attach(): feeding 4 bit(s) of entropy from miibus0 ue0: on smsc0 ue0: bpf attached ue0: Ethernet address: f6:00:e5:4b:c0:fb smsc0: chip 0xec00, rev. 0002 ue0: link state changed to DOWN Sending DHCP Discover packet from interface ue0 (f6:00:e5:4b:c0:fb) ue0: link state changed to UP Received DHCP Offer packet on ue0 from 0.0.0.0 (accepted) Sending DHCP Request packet from interface ue0 (f6:00:e5:4b:c0:fb) Received DHCP Ack packet on ue0 from 0.0.0.0 (accepted) ue0 at 172.22.42.29 server 0.0.0.0 subnet mask 255.255.255.0 router 172.22.42.254 rootfs 172.22.42.240:/rpi=20 Adjusted interface ue0 Trying to mount root from nfs:172.22.42.240:/rpi [ro,noatime]... NFS ROOT: 172.22.42.240:/rpi warning: no time-of-day clock registered, system time will not be set accurately warning: no time-of-day clock registered, system time will not be set accurately start_init: trying /sbin/init Interface ue0 IP-Address 172.22.42.29 Broadcast 172.22.42.255=20 Setting hostuuid: 1d295353-1dd2-11b2-9f30-653cd80a9fc4. Setting hostid: 0x2896f513. No suitable dump device was found. Starting file system checks: mount_nfs: can't update /var/db/mounttab for 172.22.42.240:/rpi Mounting local file systems:. Writing entropy file: It hangs forever here. If I break into the debugger it's in cpu_idle(). -- Ian