]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Mar 2024 12:34:55 +0000 (13:34 +0100)
commitcf3d6813601fe496de7f023435e31bfffa74ae70
treec268bb4e10466bdfdace11a5f30c5cb4b84e3962
parent3dce50ca9939caef0162ecc5d95713963ea78b91
efi: runtime: Fix potential overflow of soft-reserved region size

[ Upstream commit de1034b38a346ef6be25fe8792f5d1e0684d5ff4 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/firmware/efi/arm-runtime.c
drivers/firmware/efi/riscv-runtime.c