Method for reprogramming data of software functions executed by a computer having an execution core, a security core and a non-volatile memory

The reinitialization request is coordinated between the HOST execution core and the HSM security core through a bidirectional communication channel, which solves the problem of data erasure and initialization in multi-core computers, realizes data security programming and system controllability, and improves vehicle anti-theft devices. and other security-related applications.

CN111936978BActive Publication Date: 2024-10-18VTESCO TECH GMBH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN201980008503.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-01-15
Publication Date
2024-10-18
Estimated Expiration
2039-01-15

AI Technical Summary

Technical Problem

In multi-core computers with non-volatile memory, especially in security-related applications such as vehicle anti-theft devices, it is difficult to coordinate the data re-initialization process between the HSM security core and the HOST execution core with the existing technology, resulting in the inability to effectively erase the data. Removal or modification will affect the reset and security of the system.

Method used

Reinitialization requests are sent between the HOST execution core and HSM security core through a bidirectional communication channel, and initialization events are simulated through management functions to ensure that data can be safely erased or initialized when reprogramming requests are made, and management functions are separated to avoid unauthorized access data modification.

Benefits of technology

Realizes data re-initialization and programming between the HSM security core and the non-volatile memory managed by the HOST execution core, ensuring data security and system controllability, avoiding data loss or unauthorized modification, and improving improve the security and reliability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111936978B_ABST
    Figure CN111936978B_ABST
Patent Text Reader

Abstract

A method for reprogramming data of software functions executed by at least one execution core and at least one security core, the data to be reprogrammed being present in at least two physically separated non-volatile memories each managed by one of the execution cores or the security core, the method comprising the following steps: • upon receiving a reprogramming request, storing a second value in a first Boolean value, determining whether the first Boolean value is equal to the second value and whether the second Boolean value is equal to the first value, and if so, • causing the execution core to send at least one reinitialization request to at least one security core via a bidirectional communication channel, and to send an initialization request for at least a portion of the first non-volatile memory to each group of management functions of the non-volatile memory managed by the execution core, • after a predetermined duration, storing the second value in a second Boolean value, • determining whether a predetermined reprogramming event has occurred, and if so, storing the first value in the first Boolean value while maintaining the second value in the second Boolean value, and causing each security core to send a request to write the stored predetermined value to the group of memory management functions associated with the non-volatile memory managed by the security core.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The technical field of the present invention is the security of a multi-core computer with non-volatile memory, and more particularly, the security of a multi-core computer with non-volatile memory provided with a secure core. Background Art

[0002] Current motor vehicles include computers making it possible to manage an increasing number of functions, in particular engine control, route control or human-machine interface.

[0003] A computer includes at least one memory and at least one processor. The processor has at least one execution core, called a HOST execution core.

[0004] Each memory may include at least one storage area in which the HOST execution core may store or read data.

[0005] The memory may be of NVMY (English acronym for “Non Volatile Memory”) non-volatile type, which has a characteristic of retaining stored data without power supply. The stored data may be a program, or data set by program parameters, or data obtained by program execution.

[0006] An execution core of a processor executes a program or part of a program, such as a function, independently or in conjunction with other cores.

[0007] The memory and the execution core are vulnerable to tampering by intrusion from outside the system, which is unacceptable for certain security-related applications, especially vehicle immobilizers.

[0008] For these applications, HSM (English acronym for "Hardware Security Management") security cores are added to the system to protect the most critical parts of these applications. This security protection is defined by protected memory areas, where only the HSM security core can read and write. These protected memory areas are physically separated from the memory areas of the execution core.

[0009] When developing a vehicle, it is sometimes necessary to reinitialize a memory area associated with a function to a state similar to the factory state, i.e., to make the memory area blank or have default values. Such a reset involves erasing or shredding the memory area associated with the function and located in the non-volatile memory, implemented by at least one HOST execution core upon receipt of a specific reinitialization request.

[0010] Generally speaking, data stored in NVMY non-volatile memory is grouped in regions or channels (the term is derived from the common English term “Channel”). For each channel, specific properties are defined according to the needs of the execution cores that access them.

[0011] One of these properties relates to erasure resistance and may take the value RESISTANT or the value NON-RESISTANT.

[0012] A "resistant" channel will not be erased during reinitialization. The data it contains will be preserved.

[0013] A "less resistant" channel is erased during reinitialization. Any data it contains is lost during reinitialization.

[0014] Data stored in the "less resistant" channel of the NVMY non-volatile memory associated with the HOST execution core can be erased during software reinitialization.

[0015] For each channel, an initialization function can be defined. This function makes it possible to initialize the data it contains to specific values ​​and / or to carry out predefined processing.

[0016] Such re-initialization is made more difficult by the presence of the HSM secure core and data associated therewith in protected storage areas of non-volatile memory.

[0017] In fact, the data in the non-volatile protected memory managed by the HSM core cannot be modified or deleted by requests from outside the HSM core. Therefore, the data cannot be erased or shredded by the HOST core executing a reinitialization request.

[0018] However, certain security functions include data located in storage areas managed by the HOST execution core as well as in storage areas managed by the HSM security core.

[0019] Data of a function included in at least one non-volatile memory needs to be reinitialized, a portion of the data being managed by the HOST execution core and another portion of the data being managed by the HSM security core. Summary of the invention

[0020] The object of the present invention is a method for reprogramming data of software functions executed by at least one execution core and at least one safety core, the data to be reprogrammed being present in at least one non-volatile memory managed by the execution core and in at least one non-volatile memory managed by the safety core, the at least one non-volatile memory managed by the execution core being physically separated from the at least one non-volatile memory managed by the safety core, each non-volatile memory being managed by a set of management functions. The method comprises the following steps:

[0021] • Upon receiving a reprogramming request,

[0022] • Store the second value in the first Boolean value,

[0023] • Determine whether the first Boolean value is equal to the second value and whether the second Boolean value is equal to the first value,

[0024] • if this is the case, causing the execution core to send, through a bidirectional communication channel, at least one reinitialization request to at least one security core managing a non-volatile memory comprising data to be reprogrammed, and at least one initialization request to each group of management functions of a non-volatile memory managed by the execution core comprising data to be reprogrammed,

[0025] • after a predetermined duration has elapsed since the time at least one reinitialization request was sent,

[0026] • store the second value in the second Boolean value,

[0027] • Determine if a scheduled reprogramming event has occurred,

[0028] • If this is the case, the first value is stored in the first Boolean value while the second value in the second Boolean value is maintained, and at least one security core that manages a non-volatile memory including the data to be reprogrammed sends a request to write the stored predetermined value to the group of memory management functions associated with the non-volatile memory managed by the at least one security core, so that the stored predetermined value associated with the software function, which is considered blank, is written to the non-volatile memory managed by the at least one security core including the data to be reprogrammed.

[0029] It may be determined whether a predetermined initialization event occurred prior to receiving the reprogram request, and if so, the first Boolean value and the second Boolean value may be initialized with the first value.

[0030] The initialization event may be selected from: establishment of power to at least one execution core, at least one security core, non-volatile memory, and associated management functions, and a predetermined timing.

[0031] The reprogramming request may include the software version number after reinitialization, and after sending at least one reinitialization request to at least one security core through a bidirectional communication channel, the software version after reinitialization may be stored, and the second Boolean value may be changed to adopt a second value, so as to determine whether a subsequent reinitialization request is the first request for the current version number.

[0032] The reprogramming event may be selected from: stopping and then restoring power to at least one execution core and at least one security core, non-volatile memory, and associated management functions, a predetermined timing corresponding to an estimated duration of processing of at least one reinitialization request. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Other objects, characteristics and advantages of the present invention will become more apparent on reading the following description, which is given by way of non-limiting example only and is made with reference to the accompanying drawings, in which:

[0034] - Figure 1 shows the main hardware components involved in the reprogramming method according to the present invention, and

[0035] - Figure 2 The main steps of the reprogramming method according to the present invention are shown. DETAILED DESCRIPTION

[0036] In order to solve this technical problem, a two-part reprogramming method is proposed, which enables reinitialization under the condition of a controlled request for data of the function, part of which is in a non-volatile storage area managed by at least one HOST execution core, and the other part is in a non-volatile storage area managed by the HSM security core.

[0037] The following description is for data managed by one HOST execution core and one HSM security core. Those skilled in the art can make the exchange between the HOST execution core and the HSM security core conform to the following description by increasing the number of messages, requests, and Boolean values ​​without creatively applying the teaching to data managed by multiple HOST execution cores and at least one HSM security core.

[0038] exist Figure 1 As can be seen in the figure, the first part of the reprogramming method is executed by the HOST execution core marked as 1 in the figure, while the second part of the method is executed by the HSM security core marked as 2 in the figure.

[0039] The method is made possible because the HOST execution core 1 and the HSM security core 2 can communicate by defining a bidirectional communication channel 3 enabling the exchange of messages. The content of the message is predefined and can include a requirement to execute a function with a parameter list.

[0040] In order to enable the two parts of the method to communicate securely in order to reinitialize the data in the non-volatile memory managed by the HSM secure core 2, an additional message is added in the communication channel between the HOST execution core 1 and the HSM secure core 2. This additional message is specific to this reprogramming method to avoid misappropriation for invasive purposes or untimely reinitialization.

[0041] In addition to the explanation of the data in the NVMY memory given in the introduction, it is also clear that the data managed by the HOST execution core 1 is included in the "not strong resistance" channel 4a or the "strong resistance" channel 4b of the first NVMY memory 4. "Strong resistance" or "not strong resistance" is understood to be strong resistance or weak resistance to reprogramming, respectively. The data managed by the HSM security core 2 is included in the "strong resistance" channel of the second NVMY memory 5 separated from the first NVMY memory 4.

[0042] For each of these channels, when there is no data, such as is the case at first startup, an NVMY memory initialization function is associated. There is also a data writing function. These initialization and writing functions cannot be called by function calls, but can be called by the management functions of the NVMY memory. In this way, there is a first set of management functions for the NVMY memory associated with the first NVMY non-volatile memory 4, referenced as 6, and a second set of management functions for the NVMY memory associated with the second NVMY non-volatile memory 5, referenced as 7. The reprogramming request processed by the HOST execution core constitutes an initialization request req_init, the destination of which is the first set of management functions 6 for the NVMY memory, which operates to initialize the data in the first non-volatile memory managed by the HOST execution core according to the format of the initialization request req_init and the "strong resistance" or "weak resistance" nature of the storage channel ( Figure 1 The figure is marked as “initialization”).

[0043] Furthermore, although the function for initializing the data in the first NVMY non-volatile memory 4 managed by the HOST execution core can be called at any time, the function for initializing the protected memory managed by the HSM security core 2 can be called only when there is no data in the second NVMY non-volatile memory 5 managed by the HSM security core 2 during the first initialization. No other conditions are specified in the initialization function, and it is not specified that the HSM security core 2 can receive initialization requests other than the first initialization request.

[0044] Thus, it is necessary to simulate initialization as follows: by having the HSM core 2 send a write request req_write to a set of management functions 7 of the NVMY memory related to the second NVMY non-volatile memory 5 managed by the HSM security core 2, so that the second NVMY non-volatile memory 5 is in a state similar to the state it will obtain at the end of initialization. This simulation is performed by writing the stored predetermined blank value ( Figure 1 (marked as “write” in the figure) into the second NVMY non-volatile memory 5.

[0045] We will now describe Figure 2 The steps of the reprogramming method are shown.

[0046] The method starts with a first step E1 in which the occurrence of an initialization event is determined, followed by initialization of a Boolean value with a first value. In one embodiment, the initialization event is the establishment of power to the HOST core 1, the HSM core 2, the non-volatile memory and associated management functions.

[0047] When the HOST execution core 1 receives a reprogramming request req_repro for a software function having data in the first non-volatile memory 4 and in the second non-volatile memory 5 , in a second step E2 , the first Boolean value is changed so that it adopts a second value.

[0048] When the first Boolean value is equal to the second value, if the second Boolean value is equal to the first value, and if the software version number of the reprogramming request req_repro is different from the version stored in the "strongly resistant" channel managed by the HOST core, then in a third step E3, the HOST core 1 sends a reinitialization request req_reinit to the HSM security core 2 through the bidirectional communication channel 3, and sends an initialization request req_init to a group of management functions 6 of the NVMY memory associated with the first NVMY non-volatile memory 4.

[0049] In a fourth step E4, after the reinitialization request has actually been sent, the software version of the reprogramming request is stored and the second Boolean value is changed so that it adopts the second value. Consider that the reinitialization request has actually been sent when a duration equal to the duration between two execution cycles has elapsed, for example 10 ms.

[0050] Storing the software version of the reprogramming request enables subsequent comparison with the software version associated with a subsequent reprogramming request to determine whether the subsequent reprogramming request is the first request for the current version number.

[0051] Changing the second Boolean value to the second value in combination with changing the first Boolean value to the second value enables storing that a reinitialization request has been sent.

[0052] Storing the software version and changing the value of the second Boolean value makes it possible to avoid that a subsequent reinitialization request is transmitted to the HSM secure core while a first reinitialization request is being processed.

[0053] After a reprogramming event, such as a power supply to the HOST core 1 and the HSM core 2 being stopped and then restored, in a fifth step E5 , the first value is stored in the first Boolean value, while the second value in the second Boolean value is maintained.

[0054] In this way, it is stored that a reinitialization request has previously occurred.

[0055] After a predetermined duration, such as the duration between two execution cycles (e.g. 10 ms), in a sixth step E6 the first value is stored in the second Boolean value while the first Boolean value is kept at the first value. In this way, the normal situation is returned and a new reprogramming request is awaited.

[0056] The method continues with a seventh step E7 executed by the HSM security core, in which, upon receipt of a reinitialization request req_reinit through the bidirectional communication channel 3, an initialization function associated with the second NVMY non-volatile memory 5 managed by the HSM security core 2 is simulated. In fact, as mentioned above, this initialization function cannot be called by a function whose data are to be reinitialized, nor by a set of NVMY management functions 6 that have undergone a first initialization, having to resort to simulation.

[0057] The simulation is understood to be causing the HSM core 2 to send a write request req_write to the write function of the second group of management functions 7 of the NVMY memory associated with the second NVMY non-volatile memory 5, so that a stored predetermined value, considered as blank, is written into the second non-volatile memory 5 managed by the HSM security core 2. In this way, at the end of the write operation (referenced “write”), a second NVMY non-volatile memory 5 is obtained that is in a state similar to the state resulting from the first initialization. A blank value is understood to be a predetermined value stored in a “resistant” channel of the HSM core 2 or of the second NVMY non-volatile memory 5. Furthermore, the data of the functions in the first NVMY non-volatile memory 4 can be reinitialized after an explicit request to erase the data in the NVMY non-volatile memory or after a reinitialization of a new software version.

[0058] In the first case, all "less resistant" channels in the first NVMY non-volatile memory 4 are erased.

[0059] In the second case, the "less resistant" channels in the first NVMY non-volatile memory 4 are erased only if the software version number stored in the reprogramming request is different from the version number stored in the "strong" channels of the first NVMY non-volatile memory 4. This is especially true when it is desired to set default values ​​without changing the software version.

[0060] In addition to the above described embodiments, it is noted that by changing one and / or the other of the initialization event and the reprogramming event, a number of alternative embodiments are obtained.

[0061] In a first alternative embodiment, a first initialization event distinct from establishment of power to the core is considered, such as a predetermined timing.

[0062] In a second alternative embodiment, a second reprogramming event distinct from a series of interruptions / restorations of power to the core is considered, such as a predetermined timing corresponding to an estimated duration of processing of a reinitialization request, or a message confirming processing of a reinitialization request sent by the HSM security core 2 and received by the HOST execution core 1.

[0063] When the first and second reprogramming events are timed, those skilled in the art will understand that the method is executed by the corresponding core loops, the seventh step is then executed by the HSM security core 2 loop, and the first to sixth steps are executed by the HOST execution core 1 loop.

[0064] Those skilled in the art will also appreciate that the first and second alternative embodiments may be combined.

[0065] When the software function is executed by multiple execution cores and multiple safety cores, the reprogramming request req_repro is received by one execution core. The execution core that receives the request applies the various steps of the method as described above. However, in parallel with the initialization request for a group of management functions of the non-volatile memory managed by itself, it sends the initialization request to each group of management functions of the non-volatile memory managed by other execution cores. Similarly, the execution core that receives the reprogramming request sends the reinitialization request to each safety core through different bidirectional communication channels.

[0066] The above describes the operation mode of the reprogramming method when more than one execution core and more than one security core are involved in the case of master-slave operation. However, other communication and supervision modes, such as decentralized or step-by-step communication modes, may be adopted while still remaining within the scope of the present invention, as long as each group of management functions of the non-volatile memory in which the data of the software function to be reprogrammed is stored receives the initialization request req_init or the write request req_write.

Claims

1. A method for reprogramming data of a software function executed by at least one execution core (1) and at least one safety core (2), the data to be reprogrammed being present in at least one non-volatile memory (4) managed by the execution core (1) and in at least one non-volatile memory (5) managed by the safety core (2), the at least one non-volatile memory (4) managed by the execution core (1) being physically separated from the at least one non-volatile memory (5) managed by the safety core (2), each non-volatile memory being managed by a set of management functions, characterized in that The method comprises the following steps: Upon receiving a reprogramming request, · store the second value in the first Boolean value, Determine whether a first Boolean value is equal to a second value and whether the second Boolean value is equal to the first value, if this is the case, causing the execution core (1) to send, via a bidirectional communication channel (3), at least one reinitialization request to at least one security core (2) managing a non-volatile memory comprising data to be reprogrammed, and at least one initialization request to each group of management functions (6) of non-volatile memories managed by the execution core (1) comprising data to be reprogrammed, after a predetermined duration has elapsed since the moment of sending the at least one reinitialization request, storing a second value in the second Boolean value, Determine if a scheduled reprogramming event has occurred, If this is the case, the first value is stored in the first Boolean value while the second value in the second Boolean value is maintained, and at least one security core (2) managing a non-volatile memory including data to be reprogrammed sends a request to write the stored predetermined value to a set of memory management functions (7) associated with the non-volatile memory (5) managed by the at least one security core (2), so that the stored predetermined value associated with the software function, which is considered to be blank, is written to the non-volatile memory (5) managed by the at least one security core (2) including data to be reprogrammed.

2. The method according to claim 1, wherein: A determination is made as to whether a predetermined initialization event occurred prior to receiving the reprogram request, and if so, the first Boolean value and the second Boolean value are initialized with the first value.

3. The method according to claim 2, wherein: The initialization event is selected from: establishment of power to at least one execution core (1), at least one security core (2), non-volatile memory and associated management functions, and a predetermined timing.

4. The method according to any one of claims 1 to 3, wherein: The reprogramming request includes the software version number after reinitialization, and after sending at least one reinitialization request to at least one security core (2) through a bidirectional communication channel (3), the software version after reinitialization is stored and the second Boolean value is changed to adopt a second value, so as to determine whether the subsequent reinitialization request is the first request for the current version number.

5. The method according to any one of claims 1 to 3, wherein: The reprogramming event is selected from: stopping and then restoring power to at least one execution core (1) and at least one security core (2), non-volatile memory, and associated management functions, and a predetermined timing corresponding to an estimated duration of processing of at least one reinitialization request.

Citation Information

Patent Citations

  • Secure environment management during switches between different modes of multicore systems

    CN102844762A

  • Firmware security key upgrade algorithm

    US20030028766A1