"random device not loaded; using insecure entropy" during boot

Andriy Gapon avg at FreeBSD.org
Thu May 17 20:38:29 UTC 2012

on 14/05/2012 21:17 Bruce Cran said the following:
> While booting -current I noticed a new warning introduced in r230230**
> <http://svnweb.freebsd.org/base?view=revision&revision=230230> (though it's not
> in 'dmesg' once booted):
> FreeBSD/SMP: 1 package(s) x 2 core(s) x 2 SMT threads
>  cpu0 (BSP): APIC ID:  0
>  cpu1 (AP): APIC ID: 1
>  cpu2 (AP): APIC ID: 4
>  cpu3 (AP): APIC ID: 5
> random device not loaded; using insecure entropy
> I guess something's wanting random data before its been initialized?   Once
> booted kern.random shows that it is loaded and working.

It seems that the message is triggered by __stack_chk_init.  I am not sure if we
really need a "secure" random value there.

Andriy Gapon

More information about the freebsd-current mailing list