Date: Sat, 01 Nov 2014 17:09:08 -0600 From: Ian Lepore <ian@FreeBSD.org> To: Mark R V Murray <markm@FreeBSD.org> Cc: "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, Adrian Chadd <adrian@freebsd.org>, "src-committers@freebsd.org" <src-committers@freebsd.org>, Alexander Kabaev <kabaev@gmail.com> 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: <1414883348.17308.223.camel@revolution.hippie.lan> In-Reply-To: <627C5F71-939A-4579-8A1B-45933662DAED@FreeBSD.org> References: <201410302121.s9ULLsEw055630@svn.freebsd.org> <CAJ-Vmo=3At6wagbo1iqc_KAB3BvCh8cYcvPOD%2BppvNgmg7gXLg@mail.gmail.com> <20141101181536.2b6a5911@kan> <627C5F71-939A-4579-8A1B-45933662DAED@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <Dummy> random: random_adaptor_choose - changing from NULL to Dummy random: dummy_random_init openfirm: <Open Firmware control device> random: SOFT: yarrow init() random: selecting highest priority adaptor <Yarrow> random: random_adaptor_choose - changing from Dummy to Yarrow random: random_harvestq_init mem: <memory> nfslock: pseudo-device null: <full device, null device, zero device> random: device_attach(): feeding 4 bit(s) of entropy from nexus0 ofwbus0: <Open Firmware Device Tree> simplebus0: <Flattened device tree simple bus> 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: <cpus> type unknown (no driver attached) intc0: <BCM2835 Interrupt Controller> mem 0xb200-0xb3ff on simplebus0 random: device_attach(): feeding 4 bit(s) of entropy from intc0 systimer0: <BCM2835 System Timer> 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: <armtimer> mem 0xb400-0xb423 irq 0 compat broadcom,bcm2835-sp804 (no driver attached) bcmwd0: <BCM2708/2835 Watchdog> mem 0x10001c-0x100027 on simplebus0 random: device_attach(): feeding 4 bit(s) of entropy from bcmwd0 gpio0: <BCM2708/2835 GPIO controller> 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: <GPIO controller> on gpio0 random: device_attach(): feeding 4 bit(s) of entropy from gpioc0 gpiobus0: <OFW GPIO bus> on gpio0 gpioled0: <GPIO led> 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: <bsc0> mem 0x205000-0x20501f irq 61 compat broadcom,bcm2835-bsc (no driver attached) simplebus0: <bsc1> mem 0x804000-0x80401f irq 61 compat broadcom,bcm2835-bsc (no driver attached) simplebus0: <spi0> mem 0x204000-0x20401f irq 62 compat broadcom,bcm2835-spi (no driver attached) bcm_dma0: <BCM2835 DMA Controller> 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: <BCM2835 VideoCore Mailbox> mem 0xb880-0xb8bf irq 1 on simplebus0 random: device_attach(): feeding 4 bit(s) of entropy from mbox0 sdhci_bcm0: <Broadcom 2708 SDHCI controller> 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: <MMC/SD bus> 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: <PrimeCell UART (PL011)> 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: <vchiq> mem 0xb800-0xb84f irq 2 compat broadcom,bcm2835-vchiq (no driver attached) dwcotg0: <DWC OTG 2.0 integrated USB controller> 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: <system> type unknown (no driver attached) ofwbus0: <display> type unknown (no driver attached) ofwbus0: <leds> type unknown (no driver attached) ofwbus0: <regulator> 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: <DWCOTG> at usbus0 uhub0: <DWCOTG OTG Root HUB, class 9/0, rev 2.00/1.00, addr 1> 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 <SDHC SA08G 0.4 SN 9CCE24E3 MFG 10/2009 by 2 TM> 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: <vendor 0x0424> at usbus0 uhub1: <vendor 0x0424 product 0x9512, class 9/0, rev 2.00/2.00, addr 2> 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: <vendor 0x0424> at usbus0 smsc0: <vendor 0x0424 product 0xec00, rev 2.00/2.00, addr 3> on usbus0 random: device_attach(): feeding 4 bit(s) of entropy from smsc0 smsc0: chip 0xec00, rev. 0002 miibus0: <MII bus> on smsc0 ukphy0: <Generic IEEE 802.3u media interface> 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: <USB Ethernet> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1414883348.17308.223.camel>