efi: runtime: Fix potential overflow of soft-reserved region size
authorAndrew Bresticker <abrestic@rivosinc.com>
Fri, 2 Feb 2024 18:07:03 +0000 (10:07 -0800)
committerArd Biesheuvel <ardb@kernel.org>
Fri, 2 Feb 2024 18:31:24 +0000 (19:31 +0100)
commitde1034b38a346ef6be25fe8792f5d1e0684d5ff4
tree80e4fa4a5ae0717606a2b130f1c9f749261aada8
parentaa0e784dea7c1a026aabff9db1cb5d2bd92b3e92
efi: runtime: Fix potential overflow of soft-reserved region size

md_size will have been narrowed if we have >= 4GB worth of pages in a
soft-reserved region.

Signed-off-by: Andrew Bresticker <abrestic@rivosinc.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/arm-runtime.c
drivers/firmware/efi/riscv-runtime.c