[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aA9sVtg4dLqBGdg7@gondor.apana.org.au>
Date: Mon, 28 Apr 2025 19:53:58 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Kees Cook <kees@...nel.org>
Cc: Kristen Accardi <kristen.c.accardi@...el.com>,
Vinicius Costa Gomes <vinicius.gomes@...el.com>,
"David S. Miller" <davem@...emloft.net>,
linux-crypto@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-hardening@...r.kernel.org
Subject: Re: [PATCH] crypto: iaa: Adjust workqueue allocation type
On Fri, Apr 25, 2025 at 11:11:31PM -0700, Kees Cook wrote:
> In preparation for making the kmalloc family of allocators type aware,
> we need to make sure that the returned type from the allocation matches
> the type of the variable being assigned. (Before, the allocator would
> always return "void *", which can be implicitly cast to any pointer type.)
>
> The assigned type is "struct idxd_wq **", but the returned type will be
> "struct wq **". These are the same size allocation (pointer sized), but
> the types don't match. Adjust the allocation type to match the assignment.
>
> Signed-off-by: Kees Cook <kees@...nel.org>
> ---
> Cc: Kristen Accardi <kristen.c.accardi@...el.com>
> Cc: Vinicius Costa Gomes <vinicius.gomes@...el.com>
> Cc: Herbert Xu <herbert@...dor.apana.org.au>
> Cc: "David S. Miller" <davem@...emloft.net>
> Cc: <linux-crypto@...r.kernel.org>
> ---
> drivers/crypto/intel/iaa/iaa_crypto_main.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Patch 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