diff options
| author | Ard Biesheuvel <[email protected]> | 2025-03-14 11:03:33 +0000 |
|---|---|---|
| committer | Ard Biesheuvel <[email protected]> | 2025-03-14 11:21:29 +0000 |
| commit | cb16dfed0093217a68c0faa9394fa5823927e04c (patch) | |
| tree | 86cd78550580a20fa8c3f67e4ebb5ac752216ac4 /rust/helpers | |
| parent | efi/mokvar-table: Avoid repeated map/unmap of the same page (diff) | |
| download | kernel-cb16dfed0093217a68c0faa9394fa5823927e04c.tar.gz kernel-cb16dfed0093217a68c0faa9394fa5823927e04c.zip | |
efi/libstub: Avoid physical address 0x0 when doing random allocation
Ben reports spurious EFI zboot failures on a system where physical RAM
starts at 0x0. When doing random memory allocation from the EFI stub on
such a platform, a random seed of 0x0 (which means no entropy source is
available) will result in the allocation to be placed at address 0x0 if
sufficient space is available.
When this allocation is subsequently passed on to the decompression
code, the 0x0 address is mistaken for NULL and the code complains and
gives up.
So avoid address 0x0 when doing random allocation, and set the minimum
address to the minimum alignment.
Cc: <[email protected]>
Reported-by: Ben Schneider <[email protected]>
Tested-by: Ben Schneider <[email protected]>
Reviewed-by: Ilias Apalodimas <[email protected]>
Signed-off-by: Ard Biesheuvel <[email protected]>
Diffstat (limited to 'rust/helpers')
0 files changed, 0 insertions, 0 deletions
