[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20221228093917.zhkjpzc2ok5dc4ga@pengutronix.de>
Date: Wed, 28 Dec 2022 10:39:17 +0100
From: Uwe Kleine-König <u.kleine-koenig@...gutronix.de>
To: Herbert Xu <herbert@...dor.apana.org.au>
Cc: Anders Roxell <anders.roxell@...aro.org>,
Kees Cook <keescook@...omium.org>,
Horia Geantă <horia.geanta@....com>,
Gaurav Jain <gaurav.jain@....com>,
Pankaj Gupta <pankaj.gupta@....com>,
linux-kernel@...r.kernel.org, linux-hardening@...r.kernel.org,
linux-crypto@...r.kernel.org, kernel@...gutronix.de,
"David S. Miller" <davem@...emloft.net>,
kernel test robot <lkp@...el.com>
Subject: Re: [PATCH] crypto: caam - Avoid GCC memset bug warning
On Wed, Dec 28, 2022 at 04:46:39PM +0800, Herbert Xu wrote:
> Certain versions of gcc don't like the memcpy with a NULL dst
> (which only happens with a zero length). This only happens
> when debugging is enabled so add an if clause to work around
> these warnings.
>
> A similar warning used to be generated by sparse but that was
> fixed years ago.
>
> Link: https://lore.kernel.org/lkml/202210290446.qBayTfzl-lkp@intel.com
> Reported-by: kernel test robot <lkp@...el.com>
> Reported-by: Kees Cook <keescook@...omium.org>
> Reported-by: Uwe Kleine-K�nig <u.kleine-koenig@...gutronix.de>
Huh, broken encoding in the mail. I'd appreciate someone to doublecheck
it's fine in the final commit.
Tested-by: Uwe Kleine-König <u.kleine-koenig@...gutronix.de>
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | https://www.pengutronix.de/ |
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists