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:
Philippe Schenker
2025-11-11 08:16:28 +01:00
committed by Tom Rini
parent 40768f5ed3
commit fe114f3662

View File

@@ -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