mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2026-07-05 11:48:54 +00:00
This patch introduces a standardized framework for validating SiP SMC arguments in EL3 runtime services to mitigate Privilege-Blind Forwarding (PBF) and TOCTOU race conditions. The framework provides: - Atomic Shadow-Copy with smc_get_mem_range() inline function - Type-safe validation using uintptr_t and size_t - Integer overflow protection for memory range tuples - Architecture-aware register mapping in common/smc_validation.c Change-Id: Icf8f658c16fb25989eb757b71f70668c787c3153 Signed-off-by: Kenneth Kabogo <kennethkabogo2@gmail.com>