mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
mach-k3: security: Propagate verified image addr
The ti_secure_image_check() function may relocate the image during authentication, updating image_addr to point to the verified location. The caller was not updated with this new address, causing it to reference the original unverified location. Update p_image with the verified image address after authentication to ensure subsequent operations use the correct location. Signed-off-by: Philippe Schenker <philippe.schenker@impulsing.ch>
This commit is contained in:
committed by
Tom Rini
parent
40768f5ed3
commit
fe114f3662
@@ -119,6 +119,8 @@ void ti_secure_image_post_process(void **p_image, size_t *p_size)
|
||||
*/
|
||||
*p_size = image_size;
|
||||
|
||||
*p_image = (void *)(uintptr_t)image_addr;
|
||||
|
||||
/*
|
||||
* Output notification of successful authentication to re-assure the
|
||||
* user that the secure code is being processed as expected. However
|
||||
|
||||
Reference in New Issue
Block a user