Skip to content
Snippets Groups Projects
Commit 3f680876 authored by Heiner Kallweit's avatar Heiner Kallweit Committed by Yang Yingliang
Browse files

efi: Allow EFI_MEMORY_XP and EFI_MEMORY_RO both to be cleared


stable inclusion
from linux-4.19.194
commit 5fdb418b14e41b33880b949db64b18f1f448916b

--------------------------------

[ Upstream commit 45add3cc99feaaf57d4b6f01d52d532c16a1caee ]

UEFI spec 2.9, p.108, table 4-1 lists the scenario that both attributes
are cleared with the description "No memory access protection is
possible for Entry". So we can have valid entries where both attributes
are cleared, so remove the check.

Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Fixes: 10f0d2f5 ("efi: Implement generic support for the Memory Attributes table")
Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 04197a72
No related branches found
No related tags found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment