Re: [PATCH v4] random: fix crash on multiple early calls to add_bootloader_randomness()

From: Ivan T. Ivanov
Date: Tue Jan 04 2022 - 10:06:18 EST


On 12-30 19:05, Jason A. Donenfeld wrote:
> Date: Thu, 30 Dec 2021 19:05:23 +0100
> From: "Jason A. Donenfeld" <Jason@xxxxxxxxx>
> To: "Ivan T. Ivanov" <iivanov@xxxxxxx>
> Cc: Dominik Brodowski <linux@xxxxxxxxxxxxxxxxxxxx>, Theodore Ts'o
> <tytso@xxxxxxx>, Ard Biesheuvel <ardb@xxxxxxxxxx>,
> linux-efi@xxxxxxxxxxxxxxx, LKML <linux-kernel@xxxxxxxxxxxxxxx>, Hsin-Yi
> Wang <hsinyi@xxxxxxxxxxxx>
> Subject: Re: [PATCH v4] random: fix crash on multiple early calls to
> add_bootloader_randomness()
> Message-ID: <CAHmME9q6DnMk=p5kL0c1e4TxJOLpdxJpm3RbbgsNE8x1PWwi9g@xxxxxxxxxxxxxx>
>

Hi,

> Hey Ivan,
>
> On Mon, Dec 6, 2021 at 9:14 AM Ivan T. Ivanov <iivanov@xxxxxxx> wrote:
> > Initial bug report could be found here [1]. Comments 14 and onward are
> > probably helpful. To reproduce the issue I have downloaded "assets"
> > from [2] and recreated test environment as found in autoinst-log.txt [3].
> > Search for qemu-img and qemu-system-aarch64 in the log above. Login
> > credentials for the images could be found by searching for "password"
> > in the same file.
> >
> > Regards,
> > Ivan
> >
> >
> > [1] https://bugzilla.suse.com/show_bug.cgi?id=1184924
> > [2] https://openqa.opensuse.org/tests/latest?arch=aarch64&distri=opensuse&flavor=DVD&machine=aarch64&test=extra_tests_in_textmode&version=15.3
> > [3] https://openqa.opensuse.org/tests/2052459/logfile?filename=autoinst-log.txt
>
> After a few rounds, Dominik and I converged on a set of patches that
> are now in the crng/random.git tree. Do you think you could try this
> tree out against your various test environments to confirm it fixes
> the issue SUSE was seeing?
>
> Tree is here: https://git.kernel.org/pub/scm/linux/kernel/git/crng/random.git
>

Sure, once I have result will post back.

Thanks!
Ivan