US 12,301,717 B2
Electronic device and memory protection method using same
Dongwook Shim, Suwon-si (KR); and Donghoon Lee, Seoul (KR)
Assigned to Samsung Electronics Co., Ltd., Suwon-si (KR); and KOREA UNIVERSITY RESEARCH AND BUSINESS FOUNDATION, Seoul (KR)
Filed by Samsung Electronics Co., Ltd., Suwon-si (KR); and KOREA UNIVERSITY RESEARCH AND BUSINESS FOUNDATION, Seoul (KR)
Filed on Feb. 22, 2023, as Appl. No. 18/172,747.
Application 18/172,747 is a continuation of application No. PCT/KR2021/015343, filed on Oct. 28, 2021.
Claims priority of application No. 10-2020-0141764 (KR), filed on Oct. 29, 2020.
Prior Publication US 2023/0198759 A1, Jun. 22, 2023
Int. Cl. H04L 9/32 (2006.01); G06F 3/06 (2006.01)
CPC H04L 9/32 (2013.01) [G06F 3/0622 (2013.01); G06F 3/0637 (2013.01); G06F 3/0673 (2013.01)] 20 Claims
OG exemplary drawing
 
1. An electronic device comprising:
a memory; and
at least one processor configured to be operatively connected to the memory,
wherein the memory stores instructions which, when executed by the at least one processor, cause the processor to:
allocate a first address space and a second address space to the memory in a rich execution environment (REE) based on detecting a request to write data to the memory,
write the data to the first address space of the memory and then detect access to the second address space in the REE,
configure an access permission of a first user virtual memory address space, mapped to the first address space in the memory, in the REE so that write access is deactivated by a trusted execution environment (TEE) manager based on detecting the access to the second address space, and configure an access permission of a second user virtual memory address space, mapped to the second address space, in the REE so that read access is activated and write access is deactivated, and
configure an access permission of a first kernel virtual memory address space, mapped to the first address space in the memory, in the REE so that write access is deactivated by the TEE manager.