# US 2021/0173923 A1 · Electronic device and control method therefor

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0173923 A1
- Document ID: US20210173923A1
- Status: Published application
- Kind: A1
- Application number: 16/760,679
- Filed: 2018-11-07
- Published: 2021-06-10
- Earliest claimed: 2017-11-08
- Assignees: Samsung Electronics Co., Ltd.; Korea Advanced Institute of Science and Technology
- Applicants: Samsung Electronics Co., Ltd.; Korea Advanced Institute of Science and Technology
- Inventors: Dong Uk KIM; Byung Hoon KANG; Seung Hyun HA; Dae Hee JANG; Jin Soo JANG; Seok HONG
- Web page: https://patentgrep.com/patent/US20210173923A1

## CPC

- G06F 12/1491: {in a hierarchical protection system, e.g. privilege levels, memory rings}
- G06F 21/552: {involving long-term monitoring or reporting}
- G06F 3/06: Digital input from, or digital output to, record carriers {, e.g. RAID, emulated record carriers or networked record carriers}
- G06F 9/48: Program initiating; Program switching, e.g. by interrupt
- G06F 9/4881: {Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues}
- G06F 9/545: {where tasks reside in different layers, e.g. user- and kernel-space}
- G06F 12/0802: Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
- G06F 12/0804: with main memory updating (G06F12/0806 takes precedence)
- G06F 12/0831: using a bus scheme, e.g. with bus monitoring or watching means
- G06F 12/1009: using page tables, e.g. page table structures
- G06F 12/14: Protection against unauthorised use of memory {or access to memory}
- G06F 12/1441: {for a range}
- G06F 21/554: {involving event detection and direct action}
- G06F 21/57: Certifying or maintaining trusted computer platforms, e.g. secure boots or power-downs, version controls, system software checks, secure updates or assessing vulnerabilities
- G06F 21/6218: {to a system of files or objects, e.g. local or distributed file system or database}
- G06F 21/74: operating in dual or compartmented mode, i.e. at least one secure mode
- G06F 2212/1052: Security improvement
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An electronic device is disclosed. An electronic device comprises: a first memory in which an operating system and an application program executed on the operating system are stored; a second memory; a processor for loading at least some codes among codes corresponding to an application program from the first memory to the second memory, and when access information of the codes loaded in the second memory is received from a kernel of an operating system, accessing an area in which the loaded codes are stored, on the basis of the received information and executing the application program; and a snoop for monitoring access to an area in which a preset code, the access of which has been limited, from among codes loaded in the second memory is stored.

## Claims

### Claim 1

An electronic device comprising:
a first memory storing an operating system, and an application program executed in the operating system;
a second memory;
a processor configured to:
load some codes among codes corresponding to the application program from the first memory to the second memory, and
based on access information of the codes loaded in the second memory being received from a kernel of the operating system, execute the application program by accessing an area in which the loaded codes are stored, based on the received information; and
a snoop configured to monitor access to an area in which a predetermined code, the access to which has been limited, among the codes loaded in the second memory is stored,
wherein the processor is configured to, based on a first command indicating a start of the predetermined code being executed, transmit a first control signal for stopping the monitoring the access to the area in the second memory in which the predetermined code is stored, to the snoop.

### Claim 2 (depends on 1)

The device according to claim 1, wherein the processor is configured to, based on a second command indicating an end of the predetermined code being executed, transmit a second control signal for restarting the monitoring the access to the area in which the predetermined code is stored, to the snoop.

### Claim 3 (depends on 2)

The device according to claim 2, wherein the processor is configured to comprise a cache memory,
based on the access to the area in which the predetermined code is stored being executed according to the stop of the monitoring the access to the area in which the predetermined code is stored, store data corresponding to the area in which the predetermined code is stored, in the cache memory, and
based on the second command being executed, remove the data stored in the cache memory.

### Claim 4 (depends on 1)

The device according to claim 1, wherein the processor is configured to operate in a first execution mode based on the operating system or a second execution mode based on a secure operating system (OS),
based on a switching code for mode switching being received from the kernel of the operating system according to the execution of the first command in the first execution mode, switch the first execution mode to the second execution mode, and
transmit the first control signal to the snoop in the second execution mode.

### Claim 5 (depends on 4)

The device according to claim 4, wherein the switching code is a secure monitor call (SMC) command executed in the kernel of the operating system,
wherein the kernel of the operating system transmits the SMC command to a virtual monitor module operating in the second execution mode, and
wherein the virtual monitor module is configured to, based on the SMC command being received, switch the first execution mode to the second execution mode.

### Claim 6 (depends on 5)

The device according to claim 5, wherein the SMC command comprises a control signal for transmitting the first control signal to the snoop, and
wherein a snoop driver module operating in the second execution mode is configured to, based on the control signal being received, transmit the first control signal to the snoop based on the control signal.

### Claim 7 (depends on 1)

The device according to claim 1, wherein the processor is configured to
operate in a first execution mode based on the operating system or a second execution mode based on a secure operating system (OS),
based on a switching code for mode switching being received from the kernel of the operating system according to execution of a second command indicating an end of the predetermined code in the first execution mode, switch the first execution mode to the second execution mode, and
transmit a second control signal for restarting the monitoring the access to the area in which the predetermined code is stored to the snoop in the second execution mode.

### Claim 8 (depends on 1)

The device according to claim 1, wherein the snoop is configured to, based on the access to the area in which the predetermined code is stored being detected before the first control signal is received from the processor, block the access or generate and store a log regarding the access.

### Claim 9

A control method of an electronic device comprising a first memory storing an operating system, and an application program executed in the operating system, and a second memory, the method comprising:
loading some codes among codes corresponding to the application program from the first memory to the second memory;
monitoring access to an area in which a predetermined code, the access to which has been limited, among the codes loaded in the second memory is stored, by a snoop included in the electronic device; and
based on access information of the codes loaded in the second memory being received from a kernel of the operating system, executing the application program by accessing the area in which the loaded codes are stored based on the received information,
wherein the executing the application program comprises, based on a first command indicating a start of the predetermined code being received, transmitting a first control signal for stopping the monitoring the access to the area in the second memory in which the predetermined code is stored to the snoop.

### Claim 10 (depends on 9)

The method according to claim 9, wherein the executing the application program comprises, based on a second command indicating an end of the predetermined code being executed, transmitting a second control signal for restarting the monitoring the access to the area in which the predetermined code is stored to the snoop.

### Claim 11 (depends on 10)

The method according to claim 10, wherein the executing the application program comprises:
based on the access to the area in which the predetermined code is stored being executed according to the stop of the monitoring of the access to the area in which the predetermined code is stored, storing data corresponding to the area in which the predetermined code is stored in a cache memory; and
based on the second command being executed, removing the data stored in the cache memory.

### Claim 12 (depends on 9)

The method according to claim 9, wherein the executing the application program comprises:
based on a switching code for mode switching being received from the kernel of the operating system according to the execution of the first command in a first execution mode based on the operating system, switching the first execution mode to a second execution mode based on a secure operating system (OS); and
transmitting the first control signal to the snoop in the second execution mode.

### Claim 13 (depends on 12)

The method according to claim 12, wherein the switching code is a secure monitor call (SMC) command executed in the kernel of the operating system, and
wherein the switching to the second execution mode comprises:
transmitting the SMC command to a virtual monitor module operating in the second execution mode by the kernel of the operating system; and
based on the SMC command being received, switching the first execution mode to the second execution mode by the virtual monitor module.

### Claim 14 (depends on 13)

The method according to claim 13, wherein the SMC command comprises a control signal for transmitting the first control signal to the snoop, and
wherein the transmitting the first control signal to the snoop comprises, based on the control signal being received by a snoop driver module operating in the second execution mode, transmitting the first control signal to the snoop based on the control signal.

### Claim 15 (depends on 9)

The method according to claim 9, wherein the executing the application program comprises:
based on a switching code for mode switching being received from the kernel of the operating system according to execution of a second command indicating an end of the predetermined code in a first execution mode based on the operating system, switching the first execution mode to a second execution mode based on a secure operating system (OS); and
transmitting a second control signal for restarting the monitoring the access to the area in which the predetermined code is stored to the snoop in the second execution mode.
