arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1905.08240cs.SEcs.CRcs.ITcs.PLmath.IT
收藏

隐藏确定性硬件混叠的安全混沌编译

Safe and Chaotic Compilation for Hidden Deterministic Hardware Aliasing

Peter T. Breuer

摘要:

当同一个逻辑地址可以访问不同的物理内存位置时,就会发生硬件别名。这对于一些嵌入式系统上的软件来说是一个问题,更普遍的是当硬件在不可恢复的位置(如火星着陆器上)出现故障时。我们展示了如何用软件逻辑来解决硬件问题,编译代码,使其在任何具有隐藏确定性的硬件别名的平台上都能工作。也就是说:(i)地址的副本访问相同的位置,以及(ii)重复地址计算将再次重复相同的访问。卡住的位可能意味着,即使在地址中添加零,也会在该环境中产生差异,因此只有系统化的方法才有可能奏效。该技术被扩展到生成别名以及补偿它,在所谓的混沌编译,并包括一个草图证明,以显示它可能会产生目标代码,是安全的程序员的意图的发现。实现该技术的原型编译器涵盖了除longjmp/setjmp之外的所有ANSI C语言。

英文摘要:

Hardware aliasing occurs when the same logical address can access different physical memory locations. This is a problem for software on some embedded systems and more generally when hardware becomes faulty in irretrievable locations, such as on a Mars Lander. We show how to work around the hardware problem with software logic, compiling code so it works on any platform with hardware aliasing with hidden determinism. That is: (i) a copy of an address accesses the same location, and (ii) repeating an address calculation exactly will repeat the same access again. Stuck bits can mean that even adding zero to an address can make a difference in that environment so nothing but a systematic approach has a chance of working. The technique is extended to generate aliasing as well as compensate for it, in so-called chaotic compilation, and a sketch proof is included to show it may produce object code that is secure against discovery of the programmer's intention. A prototype compiler implementing the technology covers all of ANSI C except longjmp/setjmp.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑