[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200804042215.GA10939@gondor.apana.org.au>
Date: Tue, 4 Aug 2020 14:22:15 +1000
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Liwei Song <liwei.song@...driver.com>
Cc: Tom Lendacky <thomas.lendacky@....com>,
Gary Hook <gary.hook@....com>, David <davem@...emloft.net>,
linux-crypto@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] crypto: ccp - zero the cmd data after use it
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.
Cheers,
--
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