efi/memreserve: deal with memreserve entries in unmapped memory
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Sun, 9 Jun 2019 18:17:44 +0000 (20:17 +0200)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 11 Jun 2019 14:07:19 +0000 (16:07 +0200)
commit18df7577adae6c6c778bf774b3aebcacbc1fb439
treecce8336e8bbd24c5ab1212df1b829e35c37bc769
parentd1fdb6d8f6a4109a4263176c84b899076a5f8008
efi/memreserve: deal with memreserve entries in unmapped memory

Ensure that the EFI memreserve entries can be accessed, even if they
are located in memory that the kernel (e.g., a crashkernel) omits from
the linear map.

Fixes: 80424b02d42b ("efi: Reduce the amount of memblock reservations ...")
Cc: <stable@vger.kernel.org> # 5.0+
Reported-by: Jonathan Richardson <jonathan.richardson@broadcom.com>
Reviewed-by: Jonathan Richardson <jonathan.richardson@broadcom.com>
Tested-by: Jonathan Richardson <jonathan.richardson@broadcom.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
drivers/firmware/efi/efi.c