lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Z91ICAzFbHIzLjhA@gondor.apana.org.au>
Date: Fri, 21 Mar 2025 19:05:44 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Arnd Bergmann <arnd@...nel.org>
Cc: Akhil R <akhilrajeev@...dia.com>,
	"David S. Miller" <davem@...emloft.net>,
	Thierry Reding <thierry.reding@...il.com>,
	Jonathan Hunter <jonathanh@...dia.com>,
	Arnd Bergmann <arnd@...db.de>, Chen Ridong <chenridong@...wei.com>,
	linux-crypto@...r.kernel.org, linux-tegra@...r.kernel.org,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH] crypto: tegra: fix size_t format string

On Fri, Mar 14, 2025 at 04:59:59PM +0100, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@...db.de>
> 
> Printing size_t as %lu causes a warning when it is defined as 'unsigned int':
> 
> drivers/crypto/tegra/tegra-se-hash.c:344:22: error: format specifies type 'unsigned long' but the argument has type 'ssize_t' (aka 'int') [-Werror,-Wformat]
>   343 |         dev_dbg(se->dev, "msg len %llu msg left %llu sz %lu cfg %#x",
>       |                                                         ~~~
>       |                                                         %zd
> 
> Use %zu as the proper format string.
> 
> Fixes: ff4b7df0b511 ("crypto: tegra - Fix HASH intermediate result handling")
> Signed-off-by: Arnd Bergmann <arnd@...db.de>
> ---
>  drivers/crypto/tegra/tegra-se-hash.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

A similar patch has already been applied.  Thanks.
-- 
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ