kennethkabogo 92d6ae607e feat(common): introduce SMC validation framework
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>
2026-05-05 18:28:45 +03:00
..
2025-08-18 11:01:23 +05:30