diff mbox series

[2/2] optee: add property no-map to secure reserved memory

Message ID 20200813114650.2.I1b5c7dcf6c43efa10d18b4bc707055fc15fb36ca@changeid
State Changes Requested
Delegated to: Simon Glass
Headers show
Series [1/2] fdtdec: optionally add property no-map to created reserved memory node | expand

Commit Message

Patrice CHOTARD Aug. 13, 2020, 9:46 a.m. UTC
From: Etienne Carriere <etienne.carriere@st.com>

OP-TEE reserved memory node must set property "no-map" to prevent
Linux kernel from mapping secure memory unless what non-secure world
speculative accesses of the CPU can violate the memory firmware

Fixes: 6ccb05eae01b ("image: fdt: copy possible optee nodes to a loaded devicetree")
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>

 lib/optee/optee.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series


diff --git a/lib/optee/optee.c b/lib/optee/optee.c
index 963c2ff430..9e6606568f 100644
--- a/lib/optee/optee.c
+++ b/lib/optee/optee.c
@@ -192,7 +192,7 @@  int optee_copy_fdt_nodes(const void *old_blob, void *new_blob)
 				ret = fdtdec_add_reserved_memory(new_blob,
-								 NULL, false);
+								 NULL, true);
 				if (ret < 0)