Page MenuHomePhabricator

Fix memory unaligned access issue
Closed, ResolvedPublic

Description

TF-M build with AN519 image can crash due to memory unaligned access:

  • The shared data b/w boot loader and runtime SW is stored in TLV format.
  • The length of a TLV entry can be arbitrary. The TLVs are packed there is no padding between them. Therefore the start address of a TLV entry can be on an odd address in the memory.
  • Pointer referencing on unaligned memory can cause an unaligned access usage fault such an architectures, which are not supporting unaligned access.