Re: [PATCH v3 2/5] efi: stub: use random seed from EFI variable

From: Matthew Garrett
Date: Sun Nov 27 2022 - 20:35:31 EST


On Mon, Nov 28, 2022 at 02:12:38AM +0100, Jason A. Donenfeld wrote:

> Yea this is a bummer. During my first attempt at this, I actually
> overwrote the whole thing with zeros and then deleted it. But Ard
> pointed out that this doesn't make a difference anyway. But, as it turns
> out, that's more or less the same thing that happens with seed files on
> SSDs (nobody calls fstrim after overwriting a seed file). So at the very
> least, it's no worse?

Anyone with the ability to directly read the flash variable store is
almost certainly in a position to do worse things, so I wouldn't worry
about it.