[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Y/cy5wUtk10OahpO@gondor.apana.org.au>
Date: Thu, 23 Feb 2023 17:33:27 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Li kunyu <kunyu@...china.com>
Cc: davem@...emloft.net, linus.walleij@...aro.org,
linux-arm-kernel@...ts.infradead.org, linux-crypto@...r.kernel.org,
linux-kernel@...r.kernel.org,
linux-stm32@...md-mailman.stormreply.com, mcoquelin.stm32@...il.com
Subject: Re: [PATCH] stm32: stm32-hash: Add kmalloc_array allocation check
On Sat, Feb 25, 2023 at 07:14:29AM +0800, Li kunyu wrote:
>
> hello senior:
> 'rctx->hw_context' is a member of the rctx pointer array object and will pass 'memcpy(out, rctx, sizeof(*rctx)) at the end of the function; ', copied to the out pointer memory, it cannot be released, I think this patch does an allocation check on the 'rctx->hw_context' pointer should help a bit.
Ugh that's completely broken. You can't export pointers.
I guess this driver needs to be disabled.
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