firmware/efi: Fix a use after bug in efi_mem_reserve_persistent
stable inclusion from stable-5.10.26 commit 80b2787789afef0a98e64eb9a1a9203f4a83ff99 bugzilla: 51363 -------------------------------- commit 9ceee7d0 upstream. In the for loop in efi_mem_reserve_persistent(), prsv = rsv->next use the unmapped rsv. Use the unmapped pages will cause segment fault. Fixes: 18df7577 ("efi/memreserve: deal with memreserve entries in unmapped memory") Signed-off-by:Lv Yunlong <lyl2019@mail.ustc.edu.cn> Signed-off-by:
Ard Biesheuvel <ardb@kernel.org> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by:
Chen Jun <chenjun102@huawei.com> Acked-by:
Weilong Chen <chenweilong@huawei.com> Signed-off-by:
Zheng Zengkai <zhengzengkai@huawei.com>
Loading
Please sign in to comment