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

From: Matthew Garrett
Date: Sun Nov 27 2022 - 16:12:52 EST


On Tue, Nov 22, 2022 at 03:04:01AM +0100, Jason A. Donenfeld wrote:

> + * We delete the seed here, and /hope/ that this causes EFI to
> + * also zero out its representation on disk. This is somewhat

Several implementations I've worked with simply append a deletion marker
or append a new variable value until the variable store fills up
entirely, at which point a garbage collection event is either run or
scheduled for the next reboot. The spec doesn't define how this is
handled so unfortunately I don't think there's any way to get a pony
here.