[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20130814104937.GC13403@gondor.apana.org.au>
Date: Wed, 14 Aug 2013 20:49:40 +1000
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Marcelo Cerri <mhcerri@...ux.vnet.ibm.com>
Cc: benh@...nel.crashing.org, linux-kernel@...r.kernel.org,
linux-crypto@...r.kernel.org, linuxppc-dev@...ts.ozlabs.org
Subject: Re: [PATCH] crypto: nx - fix concurrency issue
On Mon, Aug 12, 2013 at 06:49:37PM -0300, Marcelo Cerri wrote:
> The NX driver uses the transformation context to store several fields
> containing data related to the state of the operations in progress.
> Since a single tfm can be used by different kernel threads at the same
> time, we need to protect the data stored into the context.
>
> This patch makes use of spin locks to protect the data where a race
> condition can happen.
>
> Reviewed-by: Fionnuala Gunter <fin@...ux.vnet.ibm.com>
> Reviewed-by: Joy Latten <jmlatten@...ux.vnet.ibm.com>
> Signed-off-by: Marcelo Cerri <mhcerri@...ux.vnet.ibm.com>
Patch applied. Thanks a lot!
--
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists