首页> 外国专利> Data processing apparatus and method for protecting secure data and program code from insecure access when switching between secure and less secure domains

Data processing apparatus and method for protecting secure data and program code from insecure access when switching between secure and less secure domains

机译:当在安全域和次安全域之间切换时,用于保护安全数据和程序代码免受不安全访问的数据处理设备和方法

摘要

A data processing apparatus and method are provided for processing data. The data processing apparatus includes a processing circuit for executing a data processing operation in response to a program code, and a data store for storing data. The data store includes a safe area and a more secure data store. A plurality of regions including a low region. The secure area is configured to store sensitive data that is accessible by the processing circuit when operating in the secure domain and not accessible by the processing circuit when operating in the less secure domain. The data store also comprises a plurality of stacks including a secure stack in a secure area. The processing circuit includes a stack access circuit configured to store a predetermined processing state in the secure stack in response to an event that requires a transition from a secure domain to a less secure domain. Specifically, if the event is a first type event, the predetermined processing state stored by the stack access circuit is at least one return address stored at a predetermined relative location in the secure stack. Prepare. Conversely, if the event is a second event type, the predetermined processing state stored by the stack access circuit includes at least one first value stored at a predetermined relative position, The value of is not a valid address for program code. When the processing circuit receives a return of the first event type from the less secure domain to the secure domain, the processing circuit receives a first fault if the data stored at the predetermined relative position is the first value. It further comprises a fault check circuit configured to identify the condition. Such an approach provides protection against attacks from less secure domains that attempt to use a false return method, for example, performing a function call return from an exception, or an exception return from a function call.
机译:提供了一种用于处理数据的数据处理设备和方法。该数据处理设备包括:处理电路,用于响应于程序代码而执行数据处理操作;以及数据存储器,用于存储数据。数据存储区包括一个安全区域和一个更安全的数据存储区。包括低区域的多个区域。安全区域被配置为存储敏感数据,当在安全域中进行操作时,处理电路可访问该敏感数据,而在安全性较低的域中进行操作时,处理电路将不可访问的敏感数据。数据存储器还包括多个堆栈,这些堆栈包括在安全区域中的安全堆栈。处理电路包括堆栈访问电路,该堆栈访问电路被配置为响应于需要从安全域到次安全域的转变的事件而将预定处理状态存储在安全堆栈中。具体地,如果该事件是第一类型事件,则由堆栈访问电路存储的预定处理状态是存储在安全堆栈中的预定相对位置处的至少一个返回地址。准备。相反,如果事件是第二事件类型,则由堆栈访问电路存储的预定处理状态包括存储在预定相对位置的至少一个第一值。该值不是用于程序代码的有效地址。当处理电路接收到从次安全域到安全域的第一事件类型的返回时,如果存储在预定相对位置处的数据是第一值,则处理电路接收第一故障。它还包括配置成识别状况的故障检查电路。这种方法提供了针对来自较不安全域的攻击的保护,这些安全域试图使用错误的返回方法,例如,从异常执行函数调用返回,或者从函数调用执行异常返回。

著录项

相似文献

  • 专利
  • 外文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号