Skip to content
Snippets Groups Projects
Commit 94927930 authored by Dylan Aïssi's avatar Dylan Aïssi
Browse files

Refresh imx6_hab/0009-i.mx6-HAB-prevent-from-booting-with-legacy-image.patch

parent e950b778
No related branches found
No related tags found
2 merge requests!92Backport Debian Bullseye Security/Updates,!90Update from debian/sid for apertis/v2024dev1
......@@ -10,11 +10,9 @@ Signed-off-by: Denis Pynkin <denis.pynkin@collabora.com>
arch/arm/mach-imx/hab.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/arm/mach-imx/hab.c b/arch/arm/mach-imx/hab.c
index cd57a72..6b4396e 100644
--- a/arch/arm/mach-imx/hab.c
+++ b/arch/arm/mach-imx/hab.c
@@ -588,6 +588,11 @@ static ulong get_image_ivt_offset(ulong img_addr)
@@ -589,6 +589,11 @@
switch (genimg_get_format(buf)) {
#if CONFIG_IS_ENABLED(LEGACY_IMAGE_FORMAT)
case IMAGE_FORMAT_LEGACY:
......@@ -23,6 +21,6 @@ index cd57a72..6b4396e 100644
+ printf("i.MX HAB: legacy images are prohibited on closed devices\n");
+ return 0;
+ }
return (image_get_image_size((image_header_t *)img_addr)
return (image_get_image_size((struct legacy_img_hdr *)img_addr)
+ 0x1000 - 1) & ~(0x1000 - 1);
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment