public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Jon Humphreys <j-humphreys@ti.com>
To: Andrew Davis <afd@ti.com>, Neha Malcom Francis <n-francis@ti.com>,
	Vignesh Raghavendra <vigneshr@ti.com>, Nishanth Menon <nm@ti.com>,
	"Simon Glass" <sjg@chromium.org>, Tom Rini <trini@konsulko.com>
Cc: <u-boot@lists.denx.de>, Andrew Davis <afd@ti.com>
Subject: Re: [PATCH] arm: mach-k3: security: Lower verbosity of cert message for GP
Date: Wed, 10 Apr 2024 13:57:24 -0500	[thread overview]
Message-ID: <86o7ahyrjf.fsf@udb0321960.dhcp.ti.com> (raw)
In-Reply-To: <20240410183834.153876-1-afd@ti.com>

Andrew Davis <afd@ti.com> writes:

> When we find a certificate on an image to be booted on a GP device we
> print out a message explaining that the certificate is being skipped.
> This message is rather long and is printed for every image. Shorten
> the message and make the long version into a debug message.
>
> Signed-off-by: Andrew Davis <afd@ti.com>
> ---
>  arch/arm/mach-k3/security.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/mach-k3/security.c b/arch/arm/mach-k3/security.c
> index 22697a263a8..7c46914d9dd 100644
> --- a/arch/arm/mach-k3/security.c
> +++ b/arch/arm/mach-k3/security.c
> @@ -50,7 +50,7 @@ void ti_secure_image_check_binary(void **p_image, size_t *p_size)
>  
>  	if (get_device_type() == K3_DEVICE_TYPE_GP) {
>  		if (ti_secure_cert_detected(*p_image)) {
> -			printf("Warning: Detected image signing certificate on GP device. "
> +			debug("Warning: Detected image signing certificate on GP device. "
>  			       "Skipping certificate to prevent boot failure. "
>  			       "This will fail if the image was also encrypted\n");
>  
> @@ -60,6 +60,7 @@ void ti_secure_image_check_binary(void **p_image, size_t *p_size)
>  				return;
>  			}
>  
> +			printf("Skipping authentication on GP device\n");
>  			*p_image += cert_length;
>  			*p_size -= cert_length;
>  		}
> -- 
> 2.39.2

Would be nice if it only emitted the message once!

Tested-by: Jonathan Humphreys <j-humphreys@ti.com>

  reply	other threads:[~2024-04-10 19:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-10 18:38 [PATCH] arm: mach-k3: security: Lower verbosity of cert message for GP Andrew Davis
2024-04-10 18:57 ` Jon Humphreys [this message]
2024-04-18  3:40 ` Tom Rini

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=86o7ahyrjf.fsf@udb0321960.dhcp.ti.com \
    --to=j-humphreys@ti.com \
    --cc=afd@ti.com \
    --cc=n-francis@ti.com \
    --cc=nm@ti.com \
    --cc=sjg@chromium.org \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=vigneshr@ti.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox