Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 Sep 2019 14:06:58 -0000
From:      Justin Hibbits <chmeeedalf@gmail.com>
To:        Ed Maste <emaste@freebsd.org>
Cc:        Conrad Meyer <cem@freebsd.org>, src-committers <src-committers@freebsd.org>, svn-src-all <svn-src-all@freebsd.org>, svn-src-head <svn-src-head@freebsd.org>
Subject:   Re: svn commit: r346250 - in head: share/man/man4 share/man/man9 sys/dev/random sys/kern sys/libkern sys/sys
Message-ID:  <CAHSQbTAfwYcLenBxg4ZB13P03S%2BTYEM1-xy3BYsSWJ49hBWLZA@mail.gmail.com>
In-Reply-To: <CAPyFy2D9NQQKwVx5MhCfasQ82x7C9s6mj5kXuDE1oogrQeoJ5A@mail.gmail.com>
References:  <201904151840.x3FIeaEQ009242@repo.freebsd.org> <CAPyFy2D9NQQKwVx5MhCfasQ82x7C9s6mj5kXuDE1oogrQeoJ5A@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Apr 15, 2019, 18:34 Ed Maste <emaste@freebsd.org> wrote:

> On Mon, 15 Apr 2019 at 14:40, Conrad Meyer <cem@freebsd.org> wrote:
> >
> > Author: cem
> > Date: Mon Apr 15 18:40:36 2019
> > New Revision: 346250
> > URL: https://svnweb.freebsd.org/changeset/base/346250
> >
> > Log:
> >   random(4): Block read_random(9) on initial seeding
>
> Because Gerald (one of the FreeBSD Foundation's co-op students for
> this term) is not on the svn mailing list I'll bring his report from
> GitHub[1] over here:
>
> As probably also seen from the official CI
> (https://ci.freebsd.org/job/FreeBSD-head-riscv64-test/), this commit
> prevents booting on both arm and arm64.
>
> Condensed Error log (arm64 Pine A64-LTS)
>
> random: randomdev_wait_until_seeded unblock wait
> panic: _sleep: curthread not running
> cpuid = 0
> time = 1
> KDB: stack backtrace:
> <...>
> randomdev_wait_until_seeded() at read_random+0x50
> pc = 0xffff00000021b850  lr = 0xffff00000021b930
> sp = 0xffff000000010a00  fp = 0xffff000000010a40
>
> read_random() at arc4rand+0x168
> pc = 0xffff00000021b930  lr = 0xffff00000049ae5c
> sp = 0xffff000000010a50  fp = 0xffff000000010af0
>
> arc4rand() at __stack_chk_init+0x18
> pc = 0xffff00000049ae5c  lr = 0xffff0000003f0558
> sp = 0xffff000000010b00  fp = 0xffff000000010b40
>
> <....>
>
> [1]
> https://github.com/freebsd/freebsd/commit/654aeb58dd40d3db3af91ce26c9c31d1b02cee5f#commitcomment-33187782


Given the discussion over there it would probably also fail on powernv,
which also does not use loader.

- Justin

>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHSQbTAfwYcLenBxg4ZB13P03S%2BTYEM1-xy3BYsSWJ49hBWLZA>