Re: [PATCH] crypto: ccp - zero the cmd data after use it

From: Herbert Xu
Date: Tue Aug 04 2020 - 00:22:31 EST

On Tue, Aug 04, 2020 at 12:20:21PM +0800, Liwei Song wrote:
> Yes, the other process should do this zero work, but the case I met is
> this address will appear in the slab_alloc_node() as freelist pointer of slub,
> and before slub do zero wrok, even kzalloc() doesn't work with this address.

That would be memory corruption which has nothing to do with your
patch. If it is occurring then you should fix the place that is
corrupting the memory and not work around it like this.

Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page:
PGP Key: