efi_random_alloc() returning EFI_NOT_FOUND

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Ard, I am finding when trying to decompress a zboot compressed
kernel, efi_random_alloc() is returning EFI_NOT_FOUND to
efi_zboot_entry() which causes it to stop.

I think this is happening because the second for loop in
efi_random_alloc() seems to always break after only one
iteration[1], and the first address it tries to ask for is
reserved on my device. I suspect this behavior is not
intentional--otherwise why have a loop at all. Also, when I block
the break statement with the preceding if (status == EFI_SUCCESS),
decompression proceeds as expected.

Ben

[1] https://web.git.kernel.org/pub/scm/linux/kernel/git/efi/efi.git/tree/drivers/firmware/efi/libstub/randomalloc.c#n133






[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux