All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Yann E. MORIN" <yann.morin.1998@free.fr>
To: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Cc: Alexander Sverdlin <alexander.sverdlin@gmail.com>,
	Anand Gadiyar <gadiyar@ti.com>, Asaf Kahlon <asafka7@gmail.com>,
	Xuanhao Shi <X15000177@gmail.com>,
	James Hilliard <james.hilliard1@gmail.com>,
	Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
	buildroot@buildroot.org, Romain Naour <romain.naour@smile.fr>,
	michael@amarulasolutions.com, linux-amarula@amarulasolutions.com,
	bryce@redpinelabs.com, Andreas Dannenberg <dannenberg@ti.com>
Subject: Re: [Buildroot] [PATCH v9 05/22] boot/ti-k3-r5-loader: bump to version 2024.01
Date: Tue, 19 Mar 2024 23:09:32 +0100	[thread overview]
Message-ID: <ZfoNHD-DlqkkYCRh@landeda> (raw)
In-Reply-To: <20240304153253.732708-6-dario.binacchi@amarulasolutions.com>

Dario, All,

On 2024-03-04 16:32 +0100, Dario Binacchi spake thusly:
> All in-tree configs with the ti-k3-r5 bootloader use a custom version,
> so this patch is mostly for the menuconfig default version
> 
> Suggested-by: Romain Naour <romain.naour@smile.fr>
> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
[--SNIP--]
> diff --git a/boot/ti-k3-r5-loader/ti-k3-r5-loader.hash b/boot/ti-k3-r5-loader/ti-k3-r5-loader.hash
> index c5d1cb8e09f0..fbe5d215409d 100644
> --- a/boot/ti-k3-r5-loader/ti-k3-r5-loader.hash
> +++ b/boot/ti-k3-r5-loader/ti-k3-r5-loader.hash
> @@ -1,3 +1,3 @@
>  # Locally computed:
> -sha256  50b4482a505bc281ba8470c399a3c26e145e29b23500bc35c50debd7fa46bdf8  u-boot-2022.10.tar.bz2

Removing this hash means that defconfigs that still reference the
2022.10 version, no longer have a hash to validate the download against,
which make it susceptible to CVE-2023-43608 [0] [1].

That was already the case for the two ti-am6?x defconfig in the the two
previous patches, as they already used a custom kernel, a custm ATF, a
custom u-boot: the hashes can't be checked for those versions, so the
two ti am?x defconfigs already hit CVE-2023-43608.

We already fixed another defconfig for a similar issue, see commit
9ebbfeff387 (configs/rock5b: add hash for custom kernel).

Could you look into doing the same for those to TI am6?x defconfig,
please?

In the meantime, I kept the hash for 2022.10 for ti-k3-r5-loader
(really, for uboot), to abvoid the issue at least for ti-k3-r5-loader.

Speaking of that, by the way, ti-k3-r5-loader really is uboot, so I
think that it should share:

 1. the same DL_DIR:   TI_K3_R5_LOADER_DL_SUBDIR = uboot

 2. the same hash file:  have ti-k3-r5-loader.hash be a symlink to
    uboot.hash  (and have a xomment at the top of that hash file that it
    is shared and that old hashes should/can be kept)

Do you think that makes sense? If so, would you like to look into it?

[0] https://cve.mitre.org/cgi-bin/cvename.cgi?name=2023-43608
[1] https://talosintelligence.com/vulnerability_reports/TALOS-2023-1844

Regards,
Yann E. MORIN.

> +sha256  b99611f1ed237bf3541bdc8434b68c96a6e05967061f992443cb30aabebef5b3  u-boot-2024.01.tar.bz2
>  sha256  8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643  Licenses/gpl-2.0.txt
> -- 
> 2.43.0
> 
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2024-03-19 22:09 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-04 15:32 [Buildroot] [PATCH v9 00/22] Add support for AM62x-SK HS-FS devices Dario Binacchi
2024-03-04 15:32 ` [Buildroot] [PATCH v9 01/22] configs/ti_am62x_sk_defconfig: fix BR2_TARGET_OPTEE_OS_PLATFORM setting Dario Binacchi
2024-03-19 21:37   ` Yann E. MORIN
2024-03-04 15:32 ` [Buildroot] [PATCH v9 02/22] configs/ti_am64x_sk_defconfig: " Dario Binacchi
2024-03-19 21:38   ` Yann E. MORIN
2024-03-04 15:32 ` [Buildroot] [PATCH v9 03/22] configs/ti_am62x_sk_defconfig: explicitly set the ti-k3-r5-loader version Dario Binacchi
2024-03-19 21:40   ` Yann E. MORIN
2024-03-04 15:32 ` [Buildroot] [PATCH v9 04/22] configs/ti_am64x_sk_defconfig: " Dario Binacchi
2024-03-19 21:40   ` Yann E. MORIN
2024-03-04 15:32 ` [Buildroot] [PATCH v9 05/22] boot/ti-k3-r5-loader: bump to version 2024.01 Dario Binacchi
2024-03-19 22:09   ` Yann E. MORIN [this message]
2024-03-20  2:18     ` Andreas Dannenberg via buildroot
2024-03-20  6:14       ` Yann E. MORIN
2024-03-20  9:17         ` Andreas Dannenberg via buildroot
2024-03-24 16:22     ` Dario Binacchi
2024-03-26  7:22       ` Andreas Dannenberg via buildroot
2024-03-04 15:32 ` [Buildroot] [PATCH v9 06/22] package/python-attrs: add host variant Dario Binacchi
2024-03-04 15:32 ` [Buildroot] [PATCH v9 07/22] package/python-rpds-py: " Dario Binacchi
2024-03-04 15:32 ` [Buildroot] [PATCH v9 08/22] package/python-referencing: " Dario Binacchi
2024-03-04 15:32 ` [Buildroot] [PATCH v9 09/22] package/python-jsonschema-specifications: " Dario Binacchi
2024-03-04 15:32 ` [Buildroot] [PATCH v9 10/22] package/python-jsonschema: " Dario Binacchi
2024-03-04 15:32 ` [Buildroot] [PATCH v9 11/22] boot/ti-k3-r5-loader: set binman environment Dario Binacchi
2024-03-19 15:16   ` Bryan Brattlof via buildroot
2024-04-03  8:28     ` Romain Naour
2024-04-03  8:34       ` Michael Nazzareno Trimarchi
2024-04-03  9:37         ` Romain Naour
2024-04-03  9:46           ` Michael Nazzareno Trimarchi
2024-03-04 15:32 ` [Buildroot] [PATCH v9 12/22] boot/uboot: add BR2_TARGET_UBOOT_USE_BINMAN option Dario Binacchi
2024-03-04 15:32 ` [Buildroot] [PATCH v9 13/22] package/ti-k3: move TI_K3_{SECTYPE, SOC} out of the image-gen scope Dario Binacchi
2024-03-04 15:32 ` [Buildroot] [PATCH v9 14/22] package/ti-k3: disable HS-FS for AM65 SOC Dario Binacchi
2024-03-04 15:32 ` [Buildroot] [PATCH v9 15/22] boot/ti-k3/ti-k3-r5-loader: install tiboot3.bin Dario Binacchi
2024-03-19 15:11   ` Bryan Brattlof via buildroot
2024-03-20  9:20     ` Andreas Dannenberg via buildroot
2024-03-04 15:32 ` [Buildroot] [PATCH v9 16/22] configs/ti_am62x_sk_defconfig: bump U-Boot version to 2024.01 Dario Binacchi
2024-03-04 15:32 ` [Buildroot] [PATCH v9 17/22] configs/ti_am62x_sk_defconfig: bump Linux version to 6.6.18 Dario Binacchi
2024-03-04 15:32 ` [Buildroot] [PATCH v9 18/22] board/ti/am62x-sk: generalize post-build.sh Dario Binacchi
2024-03-04 15:32 ` [Buildroot] [PATCH v9 19/22] board/ti/am62x-sk: move post-{build, image}.sh to board/ti/common/am6xx Dario Binacchi
2024-03-13 10:56   ` Romain Naour
2024-03-13 11:29     ` Michael Nazzareno Trimarchi
2024-03-04 15:32 ` [Buildroot] [PATCH v9 20/22] configs/ti_am64x_sk_defconfig: bump U-Boot version to 2024.01 Dario Binacchi
2024-03-04 15:32 ` [Buildroot] [PATCH v9 21/22] configs/ti_am64x_sk_defconfig: bump Linux version to 6.6.18 Dario Binacchi
2024-03-04 15:32 ` [Buildroot] [PATCH v9 22/22] boot/ti-k3-image-gen: remove package Dario Binacchi
2024-03-13 11:00   ` Romain Naour
2024-03-13 11:28     ` Michael Nazzareno Trimarchi
2024-03-24 17:20     ` Dario Binacchi
2024-03-27 14:55       ` Romain Naour
2024-03-28 14:32         ` Heiko Thiery
2024-03-18  7:35   ` Michael Nazzareno Trimarchi
2024-03-12  6:42 ` [Buildroot] [PATCH v9 00/22] Add support for AM62x-SK HS-FS devices Andreas Dannenberg via buildroot
2024-03-19 22:24 ` Yann E. MORIN

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZfoNHD-DlqkkYCRh@landeda \
    --to=yann.morin.1998@free.fr \
    --cc=X15000177@gmail.com \
    --cc=alexander.sverdlin@gmail.com \
    --cc=asafka7@gmail.com \
    --cc=bryce@redpinelabs.com \
    --cc=buildroot@buildroot.org \
    --cc=dannenberg@ti.com \
    --cc=dario.binacchi@amarulasolutions.com \
    --cc=gadiyar@ti.com \
    --cc=james.hilliard1@gmail.com \
    --cc=linux-amarula@amarulasolutions.com \
    --cc=michael@amarulasolutions.com \
    --cc=romain.naour@smile.fr \
    --cc=thomas.petazzoni@bootlin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.