ARM-software / tf-issues

Issue tracking for the ARM Trusted Firmware project
37 stars 16 forks source link

BL31 arg0 potentially clobbered by init_c_runtime? #626

Closed GrqPnegre closed 5 years ago

GrqPnegre commented 6 years ago

In arm_bl31_early_plaform_setup for LOAD_IMAGE_V2, a portion of the BL2 address space is copied into BL31's: /*

soby-mathew commented 6 years ago

Hi @grqpnegre,

The commit c099cd3 allowed BL31 to overlay BL2 for ARM platforms to enable more space for BL31. Currently the bl_params list in BL2 data section does not get corrupted by BL31 overlay, but there needs to be assertion check that BL31 will not clobber this region.

Thanks for bringing this to notice.

soby-mathew commented 6 years ago

Internal ref: https://jira.arm.com/browse/GENFW-2661