efi: runtime: Fix potential overflow of soft-reserved region size
JIRA: https://issues.redhat.com/browse/RHEL-33098
CVE: 2024-26843
Conflicts:
drivers/firmware/efi/riscv-runtime.c
-Excluding changes for unsupported arch by RHEL9.
commit de1034b38a346ef6be25fe8792f5d1e0684d5ff4
Author: Andrew Bresticker abrestic@rivosinc.com
Date: Fri Feb 2 10:07:03 2024 -0800
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>
Signed-off-by: Lenny Szubowicz lszubowi@redhat.com